Function at 0x10059a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov edi, dword [ebx + 8]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
cmp edi, eax
je 0x1005a5a3
mov edx, dword [ebp + 0xc]
cmp edx, eax
mov eax, 0x65
je 0x10059ab7
movzx eax, byte [edx]
mov dword [esp + 0x20], eax
add eax, 0xffffffed
cmp eax, 0x8c
ja case.0x10059ad0.21
movzx eax, byte [eax + 0x1005a930]
jmp dword [eax*4 + 0x1005a8c8]
movsx ecx, word [edx + 0x22]
mov eax, dword [edx + 0x28]
cmp byte [eax], 0
mov esi, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
lea ecx, [esi + ecx*8]
jne 0x10059afc
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x2c], edx
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [eax + 1], 0
je case.0x10059ad0.154
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0xc]
push edx
mov edx, dword [eax + 8]
push ecx
push edx
push 0x2f
mov esi, edi
call fcn.10044490
mov eax, dword [esp + 0x3c]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x1c]
test eax, eax
jns 0x10059b47
mov esi, dword [ebx + 0x5c]
test esi, esi
jle 0x10059b44
movsx eax, word [edx + 0x20]
add eax, esi
mov dword [esp + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x60]
mov ecx, edx
movzx edx, byte [ecx + 0x26]
push edx
mov edx, dword [ebp + 0x10]
push edx
push eax
movsx eax, word [ecx + 0x20]
mov ecx, dword [ecx + 0x2c]
push eax
push ecx
mov edi, ebx
call fcn.100598a0
add esp, 0x14
mov dword [esp + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
xor ecx, ecx
mov eax, edx
call fcn.100592d0
mov eax, dword [esp + 0x34]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov edx, esi
push edx
push 0
call fcn.100591c0
mov eax, dword [esp + 0x34]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov ecx, edx
mov edx, dword [ecx + 8]
push edx
push 0
mov eax, esi
push eax
push 0
push 0x61
mov esi, edi
call fcn.10044600
mov eax, dword [esp + 0x44]
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
push ecx
push 0
push 0x1c
mov esi, edi
call fcn.100445a0
mov eax, dword [esp + 0x38]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [edx + 8]
add edi, 2
mov ecx, edi
call fcn.100288f0
mov esi, dword [esp + 0x28]
mov ecx, dword [esi]
lea ebx, [eax - 1]
push ebx
call fcn.10029a90
add esp, 4
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0x10]
push 0
push eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
push 0x1e
call fcn.10044600
mov eax, dword [esp + 0x44]
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [edx + 0x20]
mov ecx, esi
push ecx
push eax
push 0x1f
mov esi, edi
call fcn.100445a0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
add esp, 0xc
cmp byte [edx + 1], 0
je 0x10059e0d
mov edx, dword [ebx + 0x1d8]
mov eax, ecx
movsx ecx, word [eax + 0x20]
mov eax, dword [edi + 4]
mov ebx, dword [edx + ecx*4 - 4]
mov edx, dword [edi]
test eax, eax
je 0x10059cb4
cmp byte [edx + 0x41], 0
jne 0x10059cb4
mov edi, dword [edi + 0x20]
lea ecx, [edi + edi*4 - 5]
lea esi, [eax + ecx*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.10044af0
xor eax, eax
mov dword [esi + 0x10], eax
cmp ebx, eax
jne 0x10059ca2
mov dword [esi + 0x10], eax
mov byte [esi + 1], al
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xfe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
mov eax, 0xfffffffe
call fcn.10044af0
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x2c], edx
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0xc]
push esi
push eax
push ebx
call fcn.10059a70
add esp, 0xc
mov dword [esp + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0xc]
push esi
push ecx
push ebx
call fcn.10059a70
add esp, 0xc
mov dword [esp + 0x2c], eax
cmp eax, esi
je 0x10059d21
mov edx, esi
push edx
push eax
push 0x22
mov esi, edi
call fcn.100445a0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
xor edi, edi
call fcn.10061670
mov esi, dword [esp + 0x28]
movsx edx, al
mov eax, dword [ebp + 0x10]
push edx
push eax
push 0x28
call fcn.100445a0
lea ecx, [edi + 1]
mov edi, dword [esp + 0x38]
add esp, 0xc
mov eax, ebx
call fcn.10059510
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x18]
mov edi, edx
mov eax, dword [edi + 0xc]
push ecx
mov esi, ebx
call fcn.1005aa20
lea edx, [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x10]
push edx
call fcn.1005aa20
mov ecx, dword [ebp + 0x10]
add esp, 4
push 0x20
push ecx
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 0xc]
push edx
push eax
mov eax, dword [edi + 0x10]
push ebx
call fcn.10056350
add esp, 0x18
mov esi, dword [esp + 0x18]
test esi, esi
je 0x10059ddc
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0x10059ddc
xor eax, eax
lea ecx, [ebx + 0x74]
jmp 0x10059dc0
cmp dword [ecx + 0xc], esi
je 0x1005a8ae
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x10059dc0
movzx ecx, dl
mov dword [ebx + ecx*4 + 0x18], esi
inc byte [ebx + 0x13]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10059e0d
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0x10059e0d
xor eax, eax
lea ecx, [ebx + 0x74]
cmp dword [ecx + 0xc], esi
je 0x1005a8b7
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x10059df1
movzx edx, dl
mov dword [ebx + edx*4 + 0x18], esi
inc byte [ebx + 0x13]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x18]
mov edi, edx
mov eax, dword [edi + 0xc]
push ecx
mov esi, ebx
call fcn.1005aa20
lea edx, [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x10]
push edx
call fcn.1005aa20
mov ecx, dword [ebp + 0x10]
add esp, 4
push 0xa0
push ecx
push eax
xor eax, eax
cmp dword [esp + 0x2c], 0x49
sete al
add eax, 0x4e
jmp 0x10059d8e
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov esi, ebx
call fcn.1005aa20
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
add esp, 4
push eax
mov eax, dword [ecx + 0x10]
call fcn.1005aa20
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
add esp, 4
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
mov esi, edi
call fcn.10044490
add esp, 0x10
jmp 0x10059da3
mov eax, dword [edx + 0xc]
mov cl, byte [eax]
cmp cl, 0x84
jne 0x10059ec8
push esi
push ebx
mov ecx, 1
call fcn.100592d0
mov edx, dword [ebp + 0x10]
add esp, 8
mov dword [esp + 0x2c], edx
jmp 0x10059da3
cmp cl, 0x85
jne 0x10059ee9
mov ecx, esi
push ecx
mov ecx, dword [eax + 8]
push 1
call fcn.100591c0
mov edx, dword [ebp + 0x10]
add esp, 8
mov dword [esp + 0x2c], edx
jmp 0x10059da3
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
mov esi, ebx
mov byte [esp + 0x3c], 0x84
mov dword [esp + 0x40], 0x4400
mov dword [esp + 0x44], 0
call fcn.1005aa20
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
add esp, 4
push eax
mov eax, dword [ecx + 0xc]
call fcn.1005aa20
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
add esp, 4
push edx
push ecx
push eax
push 0x5a
mov esi, edi
call fcn.10044490
mov edx, dword [ebp + 0x10]
add esp, 0x10
mov dword [esp + 0x2c], edx
jmp 0x10059da3
lea eax, [esp + 0x18]
mov ecx, edx
push eax
mov eax, dword [ecx + 0xc]
mov esi, ebx
call fcn.1005aa20
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x24]
add esp, 4
push ecx
push eax
push edx
mov esi, edi
mov dword [esp + 0x38], ecx
call fcn.100445a0
add esp, 0xc
jmp 0x10059da3
mov eax, esi
push eax
push 1
push 0x19
mov esi, edi
call fcn.100445a0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x24]
add esp, 0xc
push ecx
mov esi, ebx
call fcn.1005aa20
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push eax
mov esi, edi
call fcn.10044540
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0x19
mov dword [esp + 0x24], eax
call fcn.100445a0
mov eax, dword [esp + 0x24]
add esp, 0x14
mov edx, edi
call fcn.10044ad0
jmp 0x10059da3
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x10059ff6
mov edx, dword [edx + 8]
push edx
push str.misuse_of_aggregate:__s__
push ebx
call fcn.100289d0
mov eax, dword [esp + 0x38]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx ecx, word [edx + 0x22]
mov edx, dword [eax + 0x28]
add ecx, ecx
mov eax, dword [edx + ecx*8 + 8]
mov dword [esp + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [ecx + 0x3e]
xor eax, eax
test dword [edx + 4], 0x4000
mov dword [esp + 0xc], 0
mov byte [esp + 0x20], cl
mov dword [esp + 0x24], eax
je 0x1005a139
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 8]
mov ecx, esi
call fcn.100288f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push ecx
push edx
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.10066eb0
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
je 0x1005a370
mov edx, eax
cmp dword [edx + 0xc], 0
je 0x1005a370
movzx eax, word [edx + 2]
test eax, 0x200
je 0x1005a153
mov eax, dword [esp + 0x28]
call fcn.10044800
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax]
push ecx
push ebx
call fcn.1005abc0
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, 1
jle 0x1005a11d
dec eax
mov dword [esp + 0x10], 0x18
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x24]
mov edi, dword [ebp + 0x10]
mov esi, dword [esp + 0x28]
push edx
push edi
push 0x4d
call fcn.100445a0
add esp, 0xc
mov ecx, 1
mov eax, ebx
call fcn.10059510
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x10]
mov edi, 1
add dword [ebx + 0x64], edi
mov edx, dword [ecx + 4]
push eax
mov eax, dword [esi + edx]
push eax
push ebx
call fcn.1005abc0
add esp, 0xc
mov eax, ebx
call fcn.10059610
add esi, 0x18
sub dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
jne 0x1005a0c2
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.10044850
mov eax, dword [esp + 0x30]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0x14]
mov dword [esp + 0x18], edx
cmp edx, eax
je 0x1005a034
mov edx, dword [edx]
mov dword [esp + 0x1c], edx
jmp 0x1005a038
test eax, 0x400
je 0x1005a17c
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [ecx]
push edx
push ebx
call fcn.1005abc0
mov eax, dword [esp + 0x38]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
xor esi, esi
lea edi, [esi + 1]
test eax, eax
jle 0x1005a1f8
mov dword [esp + 0x14], esi
lea ecx, [ecx]
cmp esi, 0x20
jge 0x1005a1b8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx]
push eax
call fcn.10057d60
add esp, 4
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x1005a1b8
or dword [esp + 0xc], edi
mov ecx, dword [esp + 0x20]
test byte [ecx + 2], 0x20
je 0x1005a1e8
cmp dword [esp + 0x24], 0
jne 0x1005a1e8
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov ecx, dword [eax + ecx]
push ebx
call fcn.10056120
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
add esp, 4
add dword [esp + 0x14], 0x18
inc esi
rol edi, 1
cmp esi, eax
jl 0x1005a190
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], 0
je 0x1005a272
cmp dword [esp + 0xc], 0
je 0x1005a217
mov ecx, dword [ebx + 0x48]
lea esi, [ecx + 1]
add ecx, eax
mov dword [esp + 0x14], esi
mov dword [ebx + 0x48], ecx
jmp 0x1005a228
mov esi, eax
mov ecx, ebx
call fcn.1005c030
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test byte [edx + 2], 0xc0
je 0x1005a24c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov cl, byte [eax]
cmp cl, 0x9a
je 0x1005a243
cmp cl, 0x9c
jne 0x1005a24c
mov dl, byte [edx + 2]
and dl, 0xc0
mov byte [eax + 0x26], dl
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
inc dword [ebx + 0x64]
push eax
push ebx
mov cl, 3
mov edx, esi
call fcn.1005ada0
add esp, 8
mov eax, ebx
call fcn.10059610
mov eax, dword [esp + 0x1c]
jmp 0x1005a27e
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], 0
cmp eax, 2
jl 0x1005a2a9
mov ecx, dword [ebp + 0xc]
test byte [ecx + 4], 0x80
je 0x1005a2a9
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [edx + 0x18]
push ecx
call fcn.10087680
add esp, 0xc
mov edi, eax
jmp 0x1005a2cd
test eax, eax
jle 0x1005a2c9
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [edx]
push ecx
call fcn.10087680
add esp, 0xc
mov edi, eax
jmp 0x1005a2cd
mov edi, dword [esp + 0x20]
test byte [edi + 2], 0x20
je 0x1005a300
cmp dword [esp + 0x24], 0
jne 0x1005a2e5
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
push 0xfffffffffffffffc
push ecx
push 0
push 0
push 0
push 0x24
call fcn.10044600
add esp, 0x18
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
push 0xfffffffffffffffb
push edi
push edx
push eax
push ecx
push 1
call fcn.10044600
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x34]
add esp, 0x18
test eax, eax
je 0x1005a334
mov esi, dword [esi + 0x20]
lea edx, [esi + esi*4]
mov byte [eax + edx*4 - 0x11], cl
test ecx, ecx
je 0x10059e0d
cmp dword [esp + 0xc], 0
jne 0x10059e0d
mov edi, dword [esp + 0x14]
mov eax, ebx
call fcn.10059510
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebx + 0x38]
jle 0x10059e0d
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x3c], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push str.unknown_function:__.s__
push ebx
call fcn.100289d0
mov eax, dword [esp + 0x3c]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push edx
push ebx
call fcn.10058650
add esp, 0x10
mov dword [esp + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
call fcn.10044800
mov dword [esp + 0x10], eax
mov eax, edi
call fcn.10044800
mov dword [esp + 0xc], eax
mov eax, esi
push eax
push 0
push 0x1c
mov esi, edi
call fcn.100445a0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push ecx
push edx
push ebx
call fcn.10058b60
mov ebx, dword [ebp + 0x10]
add esp, 0xc
push ebx
push 1
push 0x19
call fcn.100445a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
mov ecx, edi
call fcn.10044850
add esp, 4
push 0
push ebx
push 0x25
call fcn.100445a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.10044850
mov eax, dword [esp + 0x30]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0xc]
mov ecx, dword [edx + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [ecx]
lea edx, [esp + 0x18]
push edx
mov esi, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
call fcn.1005aa20
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
add esp, 4
push eax
mov eax, dword [esp + 0x10]
call fcn.1005aa20
add esp, 4
mov ecx, ebx
mov edx, eax
call fcn.1005bfe0
mov esi, eax
mov dword [esp + 0x24], esi
call fcn.1005bfe0
mov ecx, dword [esp + 0x14]
push 0x20
push esi
push edx
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
push 0x53
push ebx
call fcn.10056350
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x18]
mov esi, dword [esp + 0x34]
mov edx, ebx
mov dword [esp + 0x24], eax
call fcn.1005c000
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
mov esi, ebx
call fcn.1005aa20
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
push 0x20
push esi
push eax
mov eax, dword [esp + 0x18]
push edx
push 0x51
push ebx
call fcn.10056350
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x3c]
push eax
push esi
push ecx
push 0x48
mov esi, edi
call fcn.10044490
mov esi, dword [esp + 0x4c]
add esp, 0x28
mov edx, ebx
call fcn.1005c000
mov esi, dword [esp + 0x20]
call fcn.1005c000
jmp 0x10059da3
mov edx, dword [edx + 0xc]
push esi
push edx
push ebx
call fcn.10059a70
add esp, 0xc
mov dword [esp + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edx
mov eax, dword [ebx + 0x2c]
movsx edx, word [eax + 0x26]
inc edx
imul edx, dword [ebx + 0x1c]
mov dword [esp + 0x10], eax
movsx eax, word [ebx + 0x20]
mov ecx, esi
push ecx
lea ecx, [edx + eax + 1]
push ecx
push 0x84
mov esi, edi
call fcn.100445a0
movzx eax, word [ebx + 0x20]
add esp, 0xc
test ax, ax
js 0x10059e0d
cwde
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp byte [ecx + edx*8 + 0x15], 0x45
jne 0x10059e0d
mov edx, dword [ebp + 0x10]
push edx
push 0x27
call fcn.10044540
mov eax, dword [esp + 0x34]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x19c], 0
jne 0x1005a5ac
push str.RAISE___may_only_be_used_within_a_trigger_program
push ebx
call fcn.100289d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edx + 1], 2
jne 0x1005a5b9
mov ecx, ebx
call fcn.10065ca0
mov al, byte [edx + 1]
push 0
cmp al, 4
jne 0x1005a5e5
mov eax, edx
mov ecx, dword [eax + 8]
push ecx
push 0
push 4
push 0
push 0x18
mov esi, edi
call fcn.10044600
mov eax, dword [esp + 0x44]
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 8]
push 0
push edx
movsx eax, al
push 0x713
mov ecx, ebx
call fcn.10065cc0
mov eax, dword [esp + 0x3c]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x6c]
lea esi, [eax + 1]
mov dword [ecx + 0x6c], esi
lea esi, [eax - 1]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
test eax, esi
jne 0x1005a66a
mov ecx, eax
lea edx, [ecx*8 + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x70]
mov esi, dword [ecx]
push 0
push edx
call fcn.10026230
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x14]
add esp, 8
mov ecx, dword [ecx + 0x70]
test ecx, ecx
je 0x1005a678
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [edx + 0xc]
or ecx, 0xffffffff
sub ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
test edx, edx
je 0x1005a6dc
mov eax, edx
mov esi, eax
mov ecx, 0xc
lea edi, [esp + 0x38]
lea edx, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push edx
mov esi, ebx
call fcn.1005aa20
mov cl, byte [esp + 0x3c]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
lea edx, [esp + 0x3c]
lea eax, [esp + 0x6c]
add esp, 4
and dword [esp + 0x3c], 0xffffefff
mov byte [esp + 0x5e], cl
mov byte [esp + 0x38], 0x9f
mov byte [esp + 0x68], 0x4f
mov dword [esp + 0x74], edx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 1]
test eax, eax
jle 0x1005a818
mov ecx, dword [esp + 0x30]
dec eax
shr eax, 1
inc eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
jmp 0x1005a700
inc dword [ebx + 0x64]
cmp dword [esp + 0x20], 0
je 0x1005a716
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov dword [esp + 0x78], eax
jmp 0x1005a720
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x6c]
lea edx, [eax + 1]
mov dword [ecx + 0x6c], edx
lea edx, [eax - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
test eax, edx
jne 0x1005a763
lea ecx, [eax*8 + 4]
push 0
push ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x70]
mov esi, dword [ecx]
call fcn.10026230
mov edx, dword [esp + 0x18]
mov dword [edx + 0x70], eax
mov eax, dword [esp + 0x30]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x70]
test ecx, ecx
je 0x1005a771
mov dword [ecx + eax*4], 0xffffffff
or esi, 0xffffffff
sub esi, eax
mov eax, dword [esp + 0x24]
push 0x10
push esi
push eax
push ebx
call fcn.1005b440
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x18]
push ecx
push eax
push ebx
call fcn.1005abc0
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
add esp, 0x1c
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x54], eax
jg 0x1005a7b5
push edi
call fcn.10044400
add esp, 4
test eax, eax
jne 0x1005a7e0
inc dword [edi + 0x20]
mov eax, dword [esp + 0x30]
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x10
mov eax, ebx
call fcn.10059610
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, esi
js 0x1005a7fe
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x1005a7fe
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [edi + 0x20]
add dword [esp + 0xc], 0x30
dec eax
dec dword [esp + 0x18]
mov dword [ecx + 0x58], eax
jne 0x1005a700
mov ecx, dword [esp + 0x1c]
test cl, 1
je 0x1005a845
mov edx, dword [ebp + 0x10]
inc dword [ebx + 0x64]
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax*8 - 0x18]
push eax
push ebx
call fcn.1005abc0
add esp, 0xc
mov eax, ebx
call fcn.10059610
jmp 0x1005a883
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x1005a85d
push edi
call fcn.10044400
add esp, 4
test eax, eax
jne 0x1005a883
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x1c
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x14]
js 0x1005a89c
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x1005a89c
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [edi + 0x20]
dec eax
mov dword [ecx + 0x58], eax
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ecx + 6], 1
jmp 0x10059ddc
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov byte [ecx + 6], 1
pop ebx
mov esp, ebp
pop ebp
ret