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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 8]
mov edx, dword [edi]
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edx
cmp ebx, ecx
je 0x1005b6b8
mov esi, dword [ebp + 0xc]
lea eax, [ecx + 0x62]
cmp esi, ecx
je 0x1005aaa5
movzx eax, byte [esi]
mov dword [esp + 0x1c], eax
add eax, 0xffffffed
cmp eax, 0x8a
ja case.0x1005aabe.21
movzx eax, byte [eax + 0x1005ba60]
jmp dword [eax*4 + 0x1005b9f8]
movsx ecx, word [esi + 0x1e]
mov eax, dword [esi + 0x24]
cmp byte [eax], 0
mov edx, dword [eax + 0x14]
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*8]
jne 0x1005aae8
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x24], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [eax + 1], 0
je 0x1005ab0b
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0xc]
push edx
mov edx, dword [eax + 8]
push ecx
push edx
push 0x29
mov eax, ebx
call fcn.10048ff0
add esp, 0x10
jmp 0x1005b979
xor ecx, ecx
mov eax, dword [esi + 0x18]
cmp eax, ecx
jge 0x1005ab2f
mov ecx, dword [edi + 0x58]
test ecx, ecx
jle 0x1005ab2c
movsx eax, word [esi + 0x1c]
add eax, ecx
mov dword [esp + 0x24], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x5c]
movzx ecx, byte [esi + 0x23]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esi + 0x28]
push edx
push eax
movsx eax, word [esi + 0x1c]
push eax
push ecx
mov eax, edi
call fcn.1005a830
add esp, 0x14
mov dword [esp + 0x24], eax
jmp 0x1005b979
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, esi
mov ecx, edi
call fcn.1005a430
add esp, 8
jmp 0x1005b979
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [esi + 4]
push 0
push ebx
call fcn.1005a310
add esp, 0xc
jmp 0x1005b979
mov ecx, dword [esi + 4]
push 0
push ecx
mov ecx, dword [ebp + 0x10]
push 0x5e
xor eax, eax
xor edx, edx
mov edi, ebx
call fcn.10049110
add esp, 0xc
jmp 0x1005b976
mov esi, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], esi
jg 0x1005abbb
mov edi, ebx
call fcn.10048f70
test eax, eax
jne 0x1005b976
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 4]
xor ecx, ecx
inc dword [ebx + 0x1c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x10]
mov byte [eax], 0x18
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x1005b979
mov ecx, dword [esi + 4]
add ecx, 2
call fcn.10030900
mov esi, eax
mov eax, dword [ebx]
dec esi
push esi
push eax
mov edi, ecx
call fcn.100316f0
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push eax
mov eax, esi
cdq
sub eax, edx
mov edx, eax
sar edx, 1
push 0x19
xor eax, eax
mov edi, ebx
call fcn.10049110
add esp, 0x14
jmp 0x1005b976
movsx eax, word [esi + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x10], eax
jg 0x1005ac47
mov edi, ebx
call fcn.10048f70
mov edi, dword [ebp + 8]
test eax, eax
jne 0x1005ac72
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 4]
inc dword [ebx + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x1a
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esi + 4]
cmp byte [eax + 1], 0
je 0x1005b976
movsx ecx, word [esi + 0x1c]
mov edx, dword [edi + 0x1ec]
mov eax, dword [ebx + 4]
mov esi, dword [edx + ecx*4 - 4]
mov edi, dword [ebx]
test eax, eax
je 0x1005acd5
cmp byte [edi + 0x40], 0
jne 0x1005acd5
mov ebx, dword [ebx + 0x1c]
dec ebx
lea ecx, [ebx + ebx*4]
lea ebx, [eax + ecx*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
call fcn.10049560
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jne 0x1005acc9
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], al
jmp 0x1005b979
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xfe
jmp 0x1005b979
mov ecx, esi
mov eax, 0xfffffffe
call fcn.10049560
jmp 0x1005b976
mov edx, dword [esi + 0x18]
mov dword [esp + 0x24], edx
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 8]
push eax
push ecx
push edi
call fcn.1005aa60
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x1005b979
mov edx, dword [ebp + 0x10]
mov eax, dword [esi + 8]
push edx
push eax
push edi
call fcn.1005aa60
mov edi, eax
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esp + 0x24], edi
call fcn.100616b0
movsx ecx, al
add ecx, 0x2c
mov dword [esp + 0x14], ecx
cmp edi, dword [ebp + 0x10]
je 0x1005ad89
mov esi, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], esi
jg 0x1005ad55
mov edi, ebx
call fcn.10048f70
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x1005ad80
mov eax, dword [ebx + 4]
inc dword [ebx + 0x1c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax], 0x1d
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov edi, eax
push edi
push ecx
mov eax, ebx
call fcn.100490a0
mov esi, dword [ebp + 8]
push edi
mov eax, 1
call fcn.1005a6f0
add esp, 0xc
mov edi, esi
jmp 0x1005b979
mov edx, dword [esi + 8]
lea ecx, [esp + 0x2c]
push ecx
push edx
push edi
call fcn.1005baf0
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov ebx, eax
lea eax, [esp + 0x38]
push eax
push ecx
push edi
call fcn.1005baf0
mov edx, dword [ebp + 0x10]
add esp, 0xc
push 0x10
push edx
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 8]
push ebx
push eax
mov eax, dword [esi + 0xc]
push edi
call fcn.10057a50
add esp, 0x18
jmp 0x1005b979
mov edx, dword [esi + 8]
lea ecx, [esp + 0x2c]
push ecx
push edx
push edi
call fcn.1005baf0
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov ebx, eax
lea eax, [esp + 0x38]
push eax
push ecx
push edi
call fcn.1005baf0
mov edx, dword [ebp + 0x10]
add esp, 0xc
push 0x90
push edx
push eax
xor eax, eax
cmp dword [esp + 0x28], 0x46
sete al
add eax, 0x4b
jmp 0x1005addb
mov edx, dword [esi + 8]
lea ecx, [esp + 0x2c]
push ecx
push edx
push edi
call fcn.1005baf0
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov dword [esp + 0x28], eax
lea eax, [esp + 0x38]
push eax
push ecx
push edi
call fcn.1005baf0
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
push edx
mov edx, dword [esp + 0x20]
push ecx
push eax
push edx
mov eax, ebx
call fcn.10048ff0
add esp, 0x10
jmp 0x1005b979
mov eax, dword [esi + 8]
mov cl, byte [eax]
cmp cl, 0x81
jne 0x1005ae9c
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov ecx, edi
call fcn.1005a430
mov edx, dword [ebp + 0x10]
add esp, 8
mov dword [esp + 0x24], edx
jmp 0x1005b979
cmp cl, 0x82
jne 0x1005aebf
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 4]
push edx
push 1
push ebx
call fcn.1005a310
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x24], edx
jmp 0x1005b979
mov eax, edi
call fcn.1005cd40
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x10], eax
jg 0x1005aeec
mov edi, ebx
call fcn.10048f70
mov edi, dword [ebp + 8]
test eax, eax
jne 0x1005af13
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 4]
xor ecx, ecx
inc dword [ebx + 0x1c]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x28]
mov byte [eax], 0x15
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ecx, dword [esi + 8]
lea eax, [esp + 0x38]
push eax
push ecx
push edi
call fcn.1005baf0
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
push edx
push ecx
push eax
push 0x57
mov eax, ebx
call fcn.10048ff0
mov edx, dword [ebp + 0x10]
add esp, 0x10
mov dword [esp + 0x24], edx
jmp 0x1005b979
mov ecx, dword [esi + 8]
lea eax, [esp + 0x2c]
push eax
push ecx
push edi
call fcn.1005baf0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x24], ecx
push 0
jmp 0x1005ae60
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x10], eax
jg 0x1005af82
mov edi, ebx
call fcn.10048f70
test eax, eax
jne 0x1005afae
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 4]
mov ecx, 1
add dword [ebx + 0x1c], ecx
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x15
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.1005baf0
mov edx, dword [esp + 0x28]
add esp, 0xc
push eax
push edx
mov eax, ebx
call fcn.100490a0
mov esi, dword [ebx + 0x1c]
add esp, 8
cmp dword [ebx + 0x20], esi
mov dword [esp + 0x10], eax
jg 0x1005afea
mov edi, ebx
call fcn.10048f70
test eax, eax
jne 0x1005b015
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x1c]
mov edx, dword [ebp + 0x10]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x20
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x10]
mov edx, ebx
call fcn.10049540
jmp 0x1005b976
mov eax, dword [esi + 0x24]
cmp eax, ecx
jne 0x1005b042
mov eax, dword [esi + 4]
push eax
push str.misuse_of_aggregate:__s__
call fcn.10030990
add esp, 8
jmp 0x1005b979
movsx ecx, word [esi + 0x1e]
mov edx, dword [eax + 0x20]
shl ecx, 4
mov eax, dword [ecx + edx + 8]
mov dword [esp + 0x24], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4d]
mov byte [esp + 0x10], al
mov eax, 0x4000
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
test word [esi + 2], ax
je 0x1005b0c6
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.10030900
mov ecx, dword [esp + 0x10]
push 0
mov edi, eax
mov eax, dword [esp + 0x38]
push ecx
push eax
push esi
push edx
mov eax, edi
call fcn.100657a0
add esp, 0x14
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1005b0db
push esi
push edi
mov edi, dword [ebp + 8]
push str.unknown_function:__.s__
call fcn.10030990
add esp, 0xc
jmp 0x1005b979
mov eax, dword [esi + 0x10]
mov dword [esp + 0x30], eax
cmp eax, ecx
je 0x1005b07f
mov ecx, eax
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
jmp 0x1005b083
test byte [eax + 3], 0x20
je 0x1005b1ba
mov eax, ebx
call fcn.10049280
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 8]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [edx]
mov ecx, edi
call fcn.1005bba0
mov eax, dword [esp + 0x34]
cmp eax, 1
jle 0x1005b1a6
dec eax
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x14], eax
mov esi, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], esi
jg 0x1005b136
mov edi, ebx
call fcn.10048f70
mov edi, dword [ebp + 8]
test eax, eax
jne 0x1005b161
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x1c]
mov edx, dword [ebp + 0x10]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x4a
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, dword [ebp + 0x10]
push edx
mov eax, 1
mov esi, edi
call fcn.1005a6f0
inc dword [edi + 0x60]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ecx]
mov esi, dword [ebp + 0x10]
add esp, 4
mov ecx, edi
call fcn.1005bba0
mov eax, edi
call fcn.1005a740
add dword [esp + 0x18], 0x18
sub dword [esp + 0x14], 1
jne 0x1005b120
mov eax, dword [esp + 0x20]
push eax
mov edx, ebx
call fcn.100492e0
add esp, 4
jmp 0x1005b976
cmp dword [esp + 0x30], 0
je 0x1005b213
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x34]
mov ecx, edi
call fcn.1005cd90
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 3]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], eax
test cl, 0xc0
je 0x1005b1f5
mov edx, dword [esi + 8]
mov edx, dword [edx]
mov al, byte [edx]
cmp al, 0x98
je 0x1005b1f2
cmp al, 0x9a
jne 0x1005b1f5
mov byte [edx + 0x23], cl
mov eax, dword [esp + 0x28]
inc dword [edi + 0x60]
push 1
push eax
push edi
mov eax, esi
call fcn.1005beb0
add esp, 0xc
mov eax, edi
call fcn.1005a740
jmp 0x1005b21f
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x34]
cmp eax, 2
jl 0x1005b23f
mov ecx, dword [ebp + 0xc]
test byte [ecx + 2], 0x80
je 0x1005b23f
mov edx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [edx + 0x18]
jmp 0x1005b24e
test eax, eax
jle 0x1005b25f
mov edx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [edx]
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10082020
mov dword [esp + 0x28], eax
add esp, 0xc
xor esi, esi
cmp dword [esp + 0x34], esi
mov dword [esp + 0x3c], 1
jle 0x1005b2dc
xor edi, edi
mov dword [esp + 0x10], edi
cmp esi, 0x20
jge 0x1005b299
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov ecx, dword [eax + edi]
push ecx
call fcn.10058fa0
add esp, 4
test eax, eax
je 0x1005b299
mov edx, dword [esp + 0x3c]
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
test byte [eax + 3], 8
je 0x1005b2c4
cmp dword [esp + 0x18], 0
jne 0x1005b2c4
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + edi]
mov edi, dword [ebp + 8]
call fcn.10057840
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
add edi, 0x18
inc esi
rol eax, 1
cmp esi, dword [esp + 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], eax
jl 0x1005b275
mov ecx, dword [esp + 0x1c]
test byte [ecx + 3], 8
je 0x1005b396
cmp dword [esp + 0x18], 0
jne 0x1005b2fc
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 8]
mov dword [esp + 0x18], eax
mov esi, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], esi
jg 0x1005b318
mov edi, ebx
call fcn.10048f70
test eax, eax
je 0x1005b318
mov eax, 1
xor ecx, ecx
jmp 0x1005b33e
mov edx, dword [ebx + 4]
inc dword [ebx + 0x1c]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
xor ecx, ecx
mov byte [eax], 0x1f
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, esi
mov esi, dword [ebx + 4]
mov edi, dword [ebx]
cmp esi, ecx
je 0x1005b388
cmp byte [edi + 0x40], 0
jne 0x1005b388
cmp eax, ecx
jge 0x1005b355
mov eax, dword [ebx + 0x1c]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.10049560
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], 0
test eax, eax
jne 0x1005b37f
mov dword [esi + 0x10], eax
mov byte [esi + 1], al
jmp 0x1005b396
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfc
jmp 0x1005b396
mov ecx, dword [esp + 0x18]
mov eax, 0xfffffffc
call fcn.10049560
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
push 0xfffffffffffffffb
push ecx
push 1
mov ecx, esi
mov edi, ebx
call fcn.10049110
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x1005b3cb
mov ebx, dword [ebx + 0x1c]
lea edx, [ebx + ebx*4]
mov byte [eax + edx*4 - 0x11], cl
test ecx, ecx
je 0x1005b976
mov eax, dword [ebp + 8]
mov edi, ecx
mov ebx, esi
call fcn.1005cdc0
jmp 0x1005b976
push 0
push 0
push esi
push edi
call fcn.100596d0
add esp, 0x10
mov dword [esp + 0x24], eax
jmp 0x1005b979
mov eax, ebx
call fcn.10049280
mov dword [esp + 0x10], eax
mov eax, ebx
call fcn.10049280
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x20], eax
jg 0x1005b42c
mov edi, ebx
call fcn.10048f70
test eax, eax
jne 0x1005b452
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 4]
xor ecx, ecx
inc dword [ebx + 0x1c]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [ebp + 0x10]
mov byte [eax], 0x18
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push esi
push edx
call fcn.10059e80
mov esi, dword [ebx + 0x1c]
add esp, 0x10
cmp dword [ebx + 0x20], esi
jg 0x1005b47c
mov edi, ebx
call fcn.10048f70
test eax, eax
jne 0x1005b4a8
mov edx, dword [ebx + 4]
mov ecx, 1
add dword [ebx + 0x1c], ecx
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x15
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, dword [esp + 0x10]
push edx
mov edx, ebx
call fcn.100492e0
mov esi, dword [ebx + 0x1c]
add esp, 4
cmp dword [ebx + 0x20], esi
jg 0x1005b4ca
mov edi, ebx
call fcn.10048f70
test eax, eax
jne 0x1005b4f1
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x1c]
mov edx, dword [ebp + 0x10]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x20
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
push eax
mov edx, ebx
call fcn.100492e0
add esp, 4
jmp 0x1005b976
mov eax, esi
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx + 8]
mov edx, dword [eax]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
push esi
push edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x24], edx
call fcn.1005baf0
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
mov dword [esp + 0x34], eax
call fcn.1005baf0
mov dword [esp + 0x20], eax
add esp, 0xc
mov eax, edi
call fcn.1005cd40
mov edx, eax
mov eax, edi
mov dword [esp + 0x1c], edx
call fcn.1005cd40
mov ecx, dword [esp + 0x28]
push 0x10
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push 0x50
push edi
mov ecx, esi
call fcn.10057a50
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x18]
mov esi, dword [esp + 0x50]
mov edx, edi
mov dword [esp + 0x30], eax
call fcn.1005cd60
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x50]
push ecx
push edx
push edi
call fcn.1005baf0
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x60]
add esp, 0x24
push 0x10
push esi
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
push 0x4e
push edi
call fcn.10057a50
mov ecx, dword [ebp + 0x10]
push ecx
push esi
mov esi, dword [esp + 0x3c]
push esi
push 0x45
mov eax, ebx
call fcn.10048ff0
add esp, 0x28
mov edx, edi
call fcn.1005cd60
mov esi, dword [esp + 0x10]
call fcn.1005cd60
jmp 0x1005b979
mov edx, dword [ebp + 0x10]
mov eax, dword [esi + 8]
push edx
push eax
push edi
call fcn.1005aa60
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x1005b979
mov eax, dword [esi + 0x28]
movsx ecx, word [eax + 0x26]
movsx edx, word [esi + 0x1c]
inc ecx
imul ecx, dword [esi + 0x18]
mov dword [esp + 0x20], eax
lea eax, [ecx + edx + 1]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x10], eax
jg 0x1005b640
mov edi, ebx
call fcn.10048f70
mov edi, dword [ebp + 8]
test eax, eax
jne 0x1005b66b
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 4]
inc dword [ebx + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x7a
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
movzx eax, word [esi + 0x1c]
test ax, ax
jl 0x1005b979
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
cwde
lea eax, [eax + eax*2]
cmp byte [edx + eax*8 + 0x15], 0x65
jne 0x1005b979
mov eax, dword [ebp + 0x10]
push eax
push 0x22
mov eax, ebx
call fcn.100490a0
add esp, 8
jmp 0x1005b979
cmp dword [edi + 0x1b8], ecx
jne 0x1005b6c1
push str.RAISE___may_only_be_used_within_a_trigger_program
call fcn.10030990
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 1], 2
jne 0x1005b6ce
mov ecx, edi
call fcn.10064ea0
mov al, byte [esi + 1]
mov ecx, dword [esi + 4]
cmp al, 4
jne 0x1005b798
mov esi, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], esi
mov dword [esp + 0x10], ecx
jg 0x1005b6fc
mov edi, ebx
call fcn.10048f70
test eax, eax
je 0x1005b6fc
mov eax, 1
xor ecx, ecx
jmp 0x1005b726
mov eax, dword [ebx + 4]
inc dword [ebx + 0x1c]
xor ecx, ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x14
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], 4
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, esi
mov esi, dword [ebx + 4]
mov edi, dword [ebx]
cmp esi, ecx
je 0x1005b788
cmp byte [edi + 0x40], 0
jne 0x1005b788
cmp eax, ecx
jge 0x1005b73d
mov eax, dword [ebx + 0x1c]
dec eax
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.10049560
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esi + 0x10], eax
cmp ecx, eax
jne 0x1005b768
mov dword [esi + 0x10], eax
mov byte [esi + 1], al
jmp 0x1005b976
call fcn.10030900
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
mov edi, eax
mov ebx, ecx
call fcn.1002ecd0
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x1005b976
mov ecx, dword [esp + 0x10]
xor eax, eax
call fcn.10049560
jmp 0x1005b976
push 0
movsx edx, al
push ecx
push edx
push 0x713
mov eax, edi
call fcn.10064ec0
add esp, 0x10
jmp 0x1005b979
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
mov eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edi
call fcn.10049280
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1005b829
lea edx, [esp + 0x2c]
push edx
mov esi, eax
push eax
mov eax, dword [ebp + 8]
mov ecx, 0xb
lea edi, [esp + 0x48]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.1005baf0
mov edi, dword [esp + 0x2c]
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x58], eax
mov byte [esp + 0x40], 0x84
mov byte [esp + 0x6c], 0x4c
mov dword [esp + 0x74], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], 0
test edi, edi
jle 0x1005b902
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
lea eax, [edi - 1]
shr eax, 1
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
inc dword [eax + 0x60]
cmp dword [esp + 0x10], 0
je 0x1005b85c
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov dword [esp + 0x78], edx
jmp 0x1005b866
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov eax, ebx
call fcn.10049280
mov edx, dword [esp + 0x14]
mov edi, dword [ebp + 8]
push 8
push eax
push edx
push edi
mov dword [esp + 0x2c], eax
call fcn.1005c380
mov eax, dword [esp + 0x28]
mov esi, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
add esp, 0x10
mov ecx, edi
call fcn.1005bba0
mov esi, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], esi
jg 0x1005b8a9
mov edi, ebx
call fcn.10048f70
test eax, eax
jne 0x1005b8d1
mov edx, dword [ebx + 4]
inc dword [ebx + 0x1c]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov byte [eax], 0xe
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 byte [eax + 1], cl
mov eax, dword [ebp + 8]
call fcn.1005a740
or eax, 0xffffffff
sub eax, dword [esp + 0x1c]
js 0x1005b8ef
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x1005b8ef
mov edx, dword [ebx + 0x1c]
mov dword [ecx + eax*4], edx
add dword [esp + 0x18], 0x30
sub dword [esp + 0x20], 1
jne 0x1005b843
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0xc], 0
je 0x1005b927
mov edi, dword [ebp + 8]
inc dword [edi + 0x60]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov ecx, edi
call fcn.1005bba0
mov eax, edi
call fcn.1005a740
jmp 0x1005b960
mov esi, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], esi
jg 0x1005b93a
mov edi, ebx
call fcn.10048f70
test eax, eax
jne 0x1005b960
mov eax, dword [ebx + 4]
xor ecx, ecx
inc dword [ebx + 0x1c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x10]
mov byte [eax], 0x18
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
or eax, 0xffffffff
sub eax, dword [esp + 0x3c]
js 0x1005b976
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x1005b976
mov edx, dword [ebx + 0x1c]
mov dword [ecx + eax*4], edx
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x1005b9a8
mov bl, byte [edi + 0x13]
cmp bl, 8
jae 0x1005b9a8
xor eax, eax
lea ecx, [edi + 0x68]
mov edi, edi
cmp dword [ecx + 0x10], edx
je 0x1005b9e3
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x1005b990
movzx eax, bl
mov dword [edi + eax*4 + 0x1c], edx
inc byte [edi + 0x13]
mov edx, dword [esp + 0x38]
test edx, edx
je 0x1005b9d8
mov bl, byte [edi + 0x13]
cmp bl, 8
jae 0x1005b9d8
xor eax, eax
lea ecx, [edi + 0x68]
lea ecx, [ecx]
cmp dword [ecx + 0x10], edx
je 0x1005b9e9
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x1005b9c0
movzx ecx, bl
mov dword [edi + ecx*4 + 0x1c], edx
inc byte [edi + 0x13]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ecx + 8], 1
jmp 0x1005b9a8
mov eax, dword [esp + 0x24]
pop edi
pop esi
mov byte [ecx + 8], 1
pop ebx
mov esp, ebp
pop ebp
ret