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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x10100008]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], 0
mov esi, dword [edi + 8]
mov eax, dword [edi]
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], eax
test esi, esi
je 0x1003b0e5
mov eax, 0x65
test edx, edx
je 0x10039e5a
movzx eax, byte [edx]
mov dword [esp + 0x2c], eax
add eax, 0xffffffed
cmp eax, 0x8c
ja case.0x10039e73.21
movzx eax, byte [eax + 0x1003b4b0]
jmp dword [eax*4 + 0x1003b44c]
movsx eax, word [edx + 0x22]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x28]
mov eax, dword [eax + 0x1c]
lea ecx, [eax + ecx*8]
mov eax, dword [edx + 0x28]
cmp byte [eax], 0
jne 0x10039eab
mov edx, dword [ecx + 0x10]
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
cmp byte [eax + 1], 0
je 0x10039f22
mov eax, dword [eax + 8]
mov edi, dword [esi + 0x20]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], edi
jg 0x10039ed9
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003b432
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0xc]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 8]
mov word [eax + ecx*4], 0x2f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov esi, dword [edx + 0x1c]
test esi, esi
jns 0x10039f52
mov eax, dword [edi + 0x5c]
test eax, eax
jle 0x10039f4f
movsx edx, word [edx + 0x20]
add edx, eax
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x60]
movzx eax, byte [edx + 0x26]
push eax
movsx eax, word [edx + 0x20]
mov edx, dword [edx + 0x2c]
push ecx
push esi
push eax
mov ecx, edi
call fcn.10039a20
add esp, 0x10
mov edx, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
push ecx
push 0
mov ecx, edi
call fcn.10039500
add esp, 8
jmp 0x1003b432
mov edx, dword [edx + 8]
push ecx
push 0
mov ecx, esi
call fcn.10039400
add esp, 8
jmp 0x1003b432
mov eax, dword [edx + 8]
mov edi, dword [esi + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x54], edi
jg 0x10039fcc
mov ecx, esi
call fcn.10022820
test eax, eax
je 0x10039fcc
mov edi, 1
jmp 0x10039fff
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [ebp + 8]
mov word [eax + ecx*4], 0x61
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push dword [esp + 0x10]
mov edx, edi
mov ecx, esi
call fcn.10022e70
add esp, 8
jmp 0x1003b432
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x1003a030
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003b432
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [ebp + 8]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 8]
add edx, 2
mov eax, edx
jne 0x1003a087
xor eax, eax
jmp 0x1003a09d
cmp byte [edx], 0
je 0x1003a096
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x1003a090
sub eax, edx
and eax, 0x3fffffff
mov ecx, dword [esi]
dec eax
push eax
mov dword [esp + 0x10], eax
call fcn.10008c30
mov ecx, dword [esi + 0x18]
add esp, 4
mov edi, dword [esi + 0x20]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x54], edi
jg 0x1003a0ce
mov ecx, esi
call fcn.10022820
test eax, eax
je 0x1003a0ce
mov edi, 1
jmp 0x1003a104
mov ecx, dword [esi + 4]
lea edx, [edi + edi*4]
inc dword [esi + 0x20]
mov eax, dword [esp + 0xc]
mov word [ecx + edx*4], 0x1e
lea ecx, [ecx + edx*4]
cdq
sub eax, edx
mov byte [ecx + 3], 0
sar eax, 1
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
push 0xffffffffffffffff
push dword [esp + 0x14]
mov edx, edi
mov ecx, esi
call fcn.10022e70
add esp, 8
jmp 0x1003b432
movsx eax, word [edx + 0x20]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003a141
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003a174
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 8]
mov word [eax + ecx*4], 0x1f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
cmp byte [eax + 1], 0
je 0x1003b432
movsx ecx, word [ecx + 0x20]
or edx, 0xffffffff
mov eax, dword [edi + 0x1d8]
push 0xfffffffffffffffe
push dword [eax + ecx*4 - 4]
mov ecx, esi
call fcn.10022e70
add esp, 8
jmp 0x1003b432
mov edx, dword [edx + 0x1c]
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0xc]
push ecx
mov ecx, edi
call fcn.10039e00
add esp, 4
mov edx, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0xc]
push ecx
mov ecx, edi
call fcn.10039e00
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, dword [ebp + 8]
je 0x1003a25b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003a21e
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003a254
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0xc]
lea eax, [edx + 1]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 8]
mov word [eax + ecx*4], 0x22
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
xor edx, edx
mov ecx, dword [ecx + 8]
call fcn.100431e0
mov ecx, dword [esi + 0x20]
movsx eax, al
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003a28e
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003a2c1
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [ebp + 8]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov word [eax + ecx*4], 0x28
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x18]
mov ecx, edi
push 1
call fcn.10039820
add esp, 4
jmp 0x1003b432
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.1003b540
mov ecx, dword [esp + 0x38]
add esp, 4
mov esi, eax
lea eax, [esp + 0x20]
mov edx, dword [ecx + 0x10]
mov ecx, edi
push eax
call fcn.1003b540
mov ecx, dword [esp + 0x30]
add esp, 4
push 0x20
push dword [ebp + 8]
push eax
push esi
push ecx
mov eax, dword [esp + 0x48]
mov ecx, edi
push dword [eax + 0x10]
mov edx, dword [eax + 0xc]
call fcn.10035c90
add esp, 0x18
jmp 0x1003af30
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.1003b540
mov ecx, dword [esp + 0x38]
add esp, 4
mov esi, eax
lea eax, [esp + 0x20]
mov edx, dword [ecx + 0x10]
mov ecx, edi
push eax
call fcn.1003b540
add esp, 4
push 0xa0
push dword [ebp + 8]
push eax
xor eax, eax
cmp dword [esp + 0x38], 0x49
push esi
sete al
add eax, 0x4e
push eax
jmp 0x1003a30c
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.1003b540
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov edx, dword [ecx + 0x10]
mov ecx, edi
push eax
call fcn.1003b540
mov ecx, dword [esi + 0x18]
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x54], eax
jg 0x1003a3bb
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003af30
mov eax, dword [esp + 0xc]
inc dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
jmp 0x1003af33
mov edx, dword [edx + 0xc]
mov al, byte [edx]
cmp al, 0x84
jne 0x1003a413
push ecx
push 1
mov ecx, edi
call fcn.10039500
add esp, 8
jmp 0x1003af30
cmp al, 0x85
jne 0x1003a42c
mov edx, dword [edx + 8]
push ecx
push 1
mov ecx, esi
call fcn.10039400
add esp, 8
jmp 0x1003af30
lea eax, [esp + 0x24]
mov byte [esp + 0x70], 0x84
push eax
lea edx, [esp + 0x74]
mov dword [esp + 0x78], 0x4400
mov ecx, edi
mov dword [esp + 0x7c], 0
call fcn.1003b540
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov edx, dword [ecx + 0xc]
mov ecx, edi
push eax
call fcn.1003b540
mov ecx, dword [esi + 0x18]
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x54], eax
jg 0x1003a494
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003af30
mov eax, dword [esp + 0xc]
inc dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 8]
mov word [eax + ecx*4], 0x5a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, edx
jmp 0x1003af33
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.1003b540
mov ecx, dword [esi + 0x18]
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x54], eax
jg 0x1003a506
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003af30
mov eax, dword [esp + 0xc]
inc dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
mov byte [eax + 1], 0
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
jmp 0x1003af33
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003a566
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003a59c
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0xc]
lea eax, [edx + 1]
mov edx, dword [ebp + 8]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
mov edx, dword [ecx + 0xc]
mov ecx, edi
call fcn.1003b540
mov ecx, dword [esi + 0x18]
add esp, 4
mov edx, dword [esi + 0x20]
mov dword [esp + 0xc], eax
mov eax, edx
mov dword [esp + 0x10], edx
cmp dword [ecx + 0x54], edx
jg 0x1003a5e3
mov ecx, esi
call fcn.10022820
test eax, eax
je 0x1003a5dc
mov dword [esp + 0x10], 1
jmp 0x1003a61d
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x10]
inc eax
lea ecx, [edx + edx*4]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], 0
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov byte [eax + 1], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003a640
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003a676
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0xc]
lea eax, [edx + 1]
mov edx, dword [ebp + 8]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x10]
cmp edx, eax
jbe 0x1003a68e
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
mov dword [eax + 0x58], ecx
jmp 0x1003af30
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x1003a6b9
push dword [edx + 8]
push str.misuse_of_aggregate:__s__
push edi
call fcn.10007b30
add esp, 0xc
jmp 0x1003b432
movsx ecx, word [edx + 0x22]
mov eax, dword [eax + 0x28]
add ecx, ecx
mov edx, dword [eax + ecx*8 + 8]
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
test dword [edx + 4], 0x4000
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], 0
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4d]
mov byte [esp + 0x28], al
je 0x1003a723
mov dword [esp + 0x2c], 0
xor ecx, ecx
mov edx, dword [edx + 8]
mov eax, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], edx
test edx, edx
jne 0x1003a732
jmp 0x1003a744
mov eax, dword [edx + 0x14]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1003a70e
mov ecx, dword [eax]
jmp 0x1003a710
cmp byte [edx], 0
je 0x1003a73d
inc eax
cmp byte [eax], 0
jne 0x1003a737
sub eax, edx
and eax, 0x3fffffff
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x18], eax
push ecx
mov ecx, dword [esp + 0x48]
push eax
call fcn.100493d0
mov edx, eax
add esp, 0x10
mov dword [esp + 0x20], edx
test edx, edx
je 0x1003ab99
cmp dword [edx + 0xc], 0
je 0x1003ab99
movzx eax, word [edx + 2]
test eax, 0x200
je 0x1003a869
mov ecx, esi
call fcn.10022950
mov edx, dword [esp + 0x2c]
mov ecx, edi
push dword [ebp + 8]
mov dword [esp + 0x20], eax
mov edx, dword [edx + 4]
mov edx, dword [edx]
call fcn.1003b730
mov ecx, dword [esp + 0x28]
add esp, 4
cmp ecx, 1
jle 0x1003a85d
dec ecx
mov dword [esp + 0x10], 0x18
mov dword [esp + 0xc], ecx
nop
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov dword [esp + 0x38], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003a7e3
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003a819
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0x38]
lea eax, [edx + 1]
mov edx, dword [ebp + 8]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x4d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebp + 8]
mov ecx, edi
push 1
call fcn.10039820
mov eax, dword [esp + 0x30]
add esp, 4
inc dword [edi + 0x64]
mov ecx, edi
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
push dword [ebp + 8]
mov edx, dword [edx + eax]
call fcn.1003b730
add esp, 4
mov ecx, edi
call fcn.10039880
add dword [esp + 0x10], 0x18
sub dword [esp + 0xc], 1
jne 0x1003a7c0
or ecx, 0xffffffff
sub ecx, dword [esp + 0x1c]
jmp 0x1003b419
test eax, 0x400
je 0x1003a88b
mov eax, dword [esp + 0x2c]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [eax + 4]
mov edx, dword [edx]
call fcn.1003b730
add esp, 4
jmp 0x1003b432
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x1003a958
mov esi, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x28], edx
cmp eax, 0x20
jae 0x1003a906
mov edx, dword [esi + 4]
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 1
mov edx, dword [edx + eax]
mov dword [esp + 0x40], 0x10037760
mov dword [esp + 0x44], 0x10037860
call fcn.100335b0
cmp dword [esp + 0x54], 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
je 0x1003a902
mov ecx, dword [esp + 0x1c]
bts ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
test byte [esi + 2], 0x20
mov esi, dword [esp + 0x2c]
je 0x1003a93c
cmp dword [esp + 0x38], 0
jne 0x1003a93c
mov edx, dword [esi + 4]
mov ecx, edi
mov eax, dword [esp + 0x28]
mov edx, dword [edx + eax]
call fcn.10035ab0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
inc eax
add edx, 0x18
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], edx
cmp eax, ecx
jl 0x1003a8a7
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1003a9f3
cmp dword [esp + 0x1c], 0
je 0x1003a980
mov eax, dword [edi + 0x48]
lea esi, [eax + 1]
add eax, ecx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0xc]
mov dword [edi + 0x48], eax
jmp 0x1003a9ad
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x28], eax
cmp ecx, dword [edi + 0x38]
jg 0x1003a996
add eax, ecx
sub dword [edi + 0x38], ecx
mov dword [edi + 0x3c], eax
jmp 0x1003a9a9
mov eax, dword [edi + 0x48]
lea esi, [eax + 1]
add eax, ecx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0xc]
mov dword [edi + 0x48], eax
mov edx, dword [esp + 0x20]
movzx ecx, word [edx + 2]
test cl, 0xc0
je 0x1003a9cf
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov al, byte [edx]
cmp al, 0x9a
je 0x1003a9c9
cmp al, 0x9c
jne 0x1003a9cf
and cl, 0xc0
mov byte [edx + 0x26], cl
mov edx, dword [esp + 0x2c]
mov ecx, edi
inc dword [edi + 0x64]
push 3
push dword [esp + 0x2c]
call fcn.1003b810
add esp, 8
mov ecx, edi
call fcn.10039880
mov eax, dword [esp + 0x2c]
jmp 0x1003a9fb
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x24]
cmp edx, 2
jl 0x1003aa2b
mov ecx, dword [esp + 0x34]
test byte [ecx + 4], 0x80
je 0x1003aa2b
mov eax, dword [eax + 4]
push dword [eax + 0x18]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x28]
call fcn.1006f770
add esp, 8
mov dword [esp + 0x20], eax
jmp 0x1003aa3a
test edx, edx
jle 0x1003aa36
mov eax, dword [eax + 4]
push dword [eax]
jmp 0x1003aa14
mov eax, dword [esp + 0x20]
test byte [eax + 2], 0x20
je 0x1003aac7
cmp dword [esp + 0x38], 0
jne 0x1003aa56
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov ecx, edx
mov dword [esp + 0xc], edx
cmp dword [eax + 0x54], edx
jg 0x1003aa80
mov ecx, esi
call fcn.10022820
test eax, eax
je 0x1003aa79
mov edx, 1
jmp 0x1003aab7
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x24
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffc
push dword [esp + 0x3c]
mov ecx, esi
call fcn.10022e70
add esp, 8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003aaec
mov ecx, esi
call fcn.10022820
test eax, eax
je 0x1003aae8
mov edx, 1
jmp 0x1003ab23
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 8]
mov dword [eax + ecx*4 + 0xc], edx
mov edx, dword [esp + 0xc]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffb
push dword [esp + 0x24]
mov ecx, esi
call fcn.10022e70
mov edx, dword [esi + 4]
add esp, 8
mov ecx, dword [esp + 0x24]
test edx, edx
je 0x1003ab48
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [edx + eax*4 - 0x11], cl
test ecx, ecx
je 0x1003b432
cmp dword [esp + 0x1c], 0
jne 0x1003b432
mov esi, dword [esp + 0x28]
mov edx, esi
push ecx
mov ecx, edi
call fcn.10039820
mov eax, dword [esp + 0x28]
add esp, 4
mov edx, dword [esp + 0x18]
cmp eax, dword [edi + 0x38]
jle 0x1003b436
mov dword [edi + 0x38], eax
mov eax, edx
mov dword [edi + 0x3c], esi
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
push dword [esp + 0x30]
push dword [esp + 0x14]
push str.unknown_function:__.s__
push edi
call fcn.10007b30
add esp, 0x10
jmp 0x1003b432
push 0
push 0
mov ecx, edi
call fcn.10038290
add esp, 8
mov edx, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10022950
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.10022950
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], eax
mov eax, edx
mov dword [esp + 0x30], edx
cmp dword [ecx + 0x54], edx
jg 0x1003ac11
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003ac45
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x30]
inc eax
lea ecx, [edx + edx*4]
mov edx, dword [ebp + 8]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov ecx, edi
push dword [esp + 0x10]
call fcn.10038b30
mov eax, dword [esi + 0x18]
add esp, 8
mov edi, dword [esi + 0x20]
mov ecx, edi
cmp dword [eax + 0x54], edi
jg 0x1003ac76
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003acae
mov ecx, dword [esi + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1003acb1
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
js 0x1003acce
mov edx, dword [eax + 0x70]
test edx, edx
je 0x1003acce
mov eax, dword [esi + 0x20]
mov dword [edx + ecx*4], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov dword [esp + 0x30], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003acfc
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003ad2f
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0x30]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x25
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [esi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x10]
js 0x1003ad48
mov edx, dword [edi + 0x70]
test edx, edx
je 0x1003ad48
mov eax, dword [esi + 0x20]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edi + 0x58], eax
jmp 0x1003b432
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0xc]
mov edx, ecx
mov dword [esp + 0x3c], ecx
mov ecx, edi
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
call fcn.1003b540
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x38], eax
mov ecx, edi
lea eax, [esp + 0x20]
push eax
call fcn.1003b540
mov dl, byte [edi + 0x13]
add esp, 4
mov dword [esp + 0x30], eax
test dl, dl
jne 0x1003adb0
inc dword [edi + 0x48]
mov ecx, dword [edi + 0x48]
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [esp + 0xc], ecx
jmp 0x1003add7
sub dl, 1
movzx eax, dl
mov byte [edi + 0x13], dl
mov ecx, dword [edi + eax*4 + 0x18]
mov dword [esp + 0xc], ecx
jne 0x1003adcb
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
jmp 0x1003add7
dec dl
movzx eax, dl
mov byte [edi + 0x13], dl
mov eax, dword [edi + eax*4 + 0x18]
mov edx, dword [esp + 0x3c]
push 0x20
push ecx
push dword [esp + 0x38]
mov ecx, edi
mov dword [esp + 0x1c], eax
push dword [esp + 0x44]
push 0x53
push dword [esp + 0x30]
call fcn.10035c90
mov eax, dword [esp + 0x40]
add esp, 0x18
mov edx, dword [eax + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
test edx, edx
je 0x1003ae40
mov al, byte [edi + 0x13]
mov byte [esp + 0x17], al
cmp al, 8
jae 0x1003ae40
xor ecx, ecx
lea eax, [edi + 0x74]
nop dword [eax]
cmp dword [eax + 0xc], edx
je 0x1003ae3c
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x1003ae20
movzx eax, byte [esp + 0x17]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x13]
jmp 0x1003ae40
mov byte [eax + 6], 1
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.1003b540
mov edx, dword [esp + 0x40]
add esp, 4
mov ecx, edi
push 0x20
push dword [esp + 0x14]
push eax
push dword [esp + 0x44]
push 0x51
push dword [esp + 0x30]
call fcn.10035c90
mov eax, dword [esi + 0x18]
add esp, 0x18
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x30], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003ae90
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003aec5
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 8]
mov word [eax + ecx*4], 0x48
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1003aec9
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x1003af01
mov al, byte [edi + 0x13]
mov byte [esp + 0x17], al
cmp al, 8
jae 0x1003af01
xor ecx, ecx
lea eax, [edi + 0x74]
cmp dword [eax + 0xc], edx
je 0x1003aefd
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x1003aee1
movzx eax, byte [esp + 0x17]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x13]
jmp 0x1003af01
mov byte [eax + 6], 1
test esi, esi
je 0x1003af30
mov dl, byte [edi + 0x13]
cmp dl, 8
jae 0x1003af30
xor ecx, ecx
lea eax, [edi + 0x74]
cmp dword [eax + 0xc], esi
je 0x1003af2c
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x1003af12
movzx eax, dl
mov dword [edi + eax*4 + 0x18], esi
inc byte [edi + 0x13]
jmp 0x1003af30
mov byte [eax + 6], 1
mov ecx, dword [ebp + 8]
cmp dword [esp + 0x24], 0
je 0x1003af74
mov al, byte [edi + 0x13]
mov byte [esp + 0x17], al
cmp al, 8
jae 0x1003af74
xor edx, edx
lea eax, [edi + 0x74]
nop word [eax + eax]
mov esi, dword [esp + 0x24]
cmp dword [eax + 0xc], esi
je 0x1003af70
inc edx
add eax, 0x14
cmp edx, 0xa
jl 0x1003af50
movzx eax, byte [esp + 0x17]
mov dword [edi + eax*4 + 0x18], esi
inc byte [edi + 0x13]
jmp 0x1003af74
mov byte [eax + 6], 1
cmp dword [esp + 0x20], 0
mov edx, ecx
je 0x1003b436
mov al, byte [edi + 0x13]
mov byte [esp + 0x17], al
cmp al, 8
jae 0x1003b436
xor edx, edx
lea eax, [edi + 0x74]
mov esi, dword [esp + 0x20]
cmp dword [eax + 0xc], esi
je 0x1003afcb
inc edx
add eax, 0x14
cmp edx, 0xa
jl 0x1003af95
movzx eax, byte [esp + 0x17]
mov edx, ecx
mov dword [edi + eax*4 + 0x18], esi
mov eax, edx
inc byte [edi + 0x13]
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov edx, ecx
mov byte [eax + 6], 1
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
mov edi, dword [esi + 0x20]
mov dword [esp + 0xc], eax
movsx ecx, word [eax + 0x26]
movsx eax, word [edx + 0x20]
inc ecx
imul ecx, dword [edx + 0x1c]
inc eax
add eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x54], edi
jg 0x1003b018
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003b04d
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov edi, dword [ebp + 8]
mov word [eax + ecx*4], 0x84
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1003b050
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x34]
movzx eax, word [ecx + 0x20]
test ax, ax
js 0x1003b432
cwde
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0x15], 0x45
jne 0x1003b432
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x30], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003b099
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003b432
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x27
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1003b432
cmp dword [edi + 0x19c], 0
jne 0x1003b0fb
push str.RAISE___may_only_be_used_within_a_trigger_program
push edi
call fcn.10007b30
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov al, byte [edx + 1]
cmp al, 2
jne 0x1003b116
mov eax, dword [edi + 0x198]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov al, byte [edx + 1]
mov ecx, dword [edx + 8]
mov dword [esp + 0x10], ecx
cmp al, 4
jne 0x1003b189
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x1003b13e
mov ecx, esi
call fcn.10022820
test eax, eax
je 0x1003b13e
mov edi, 1
jmp 0x1003b172
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 4
mov byte [eax + ecx*4 + 3], 0
mov word [eax + ecx*4], 0x18
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push dword [esp + 0x14]
mov edx, edi
mov ecx, esi
call fcn.10022e70
add esp, 8
jmp 0x1003b432
movsx eax, al
mov ecx, edi
mov dword [esp + 0xc], eax
call fcn.10061fb0
cmp dword [esp + 0xc], 2
mov esi, eax
jne 0x1003b1af
mov ecx, dword [edi + 0x198]
test ecx, ecx
cmovne edi, ecx
mov byte [edi + 0x15], 1
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x1003b1c9
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003b137
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0xc]
mov dword [eax + ecx*4 + 4], 0x713
mov dword [eax + ecx*4 + 8], edx
jmp 0x1003b157
xor eax, eax
mov ecx, esi
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x2c], eax
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
call fcn.10022950
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x3c], edx
test edx, edx
je 0x1003b282
movups xmm0, xmmword [edx]
lea eax, [esp + 0x24]
mov ecx, edi
push eax
movups xmmword [esp + 0x74], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [esp + 0x84], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [esp + 0x94], xmm0
call fcn.1003b540
mov cl, byte [esp + 0x74]
add esp, 4
and dword [esp + 0x74], 0xffffefff
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
mov byte [esp + 0x96], cl
mov byte [esp + 0x70], 0x9f
mov byte [esp + 0x40], 0x4f
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
dec eax
test eax, eax
jle 0x1003b392
dec eax
shr eax, 1
inc eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
nop dword [eax + eax]
inc dword [edi + 0x64]
test edx, edx
mov ecx, dword [eax]
mov eax, dword [esp + 0x50]
cmovne eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
cmove eax, ecx
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.10022950
mov edx, dword [esp + 0x10]
mov ecx, edi
push 0x10
push eax
mov dword [esp + 0x14], eax
call fcn.1003bfe0
mov edx, dword [esp + 0x24]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [edx + 0x18]
call fcn.1003b730
mov eax, dword [esi + 0x18]
add esp, 0xc
mov edx, dword [esi + 0x20]
mov ecx, edx
mov dword [esp + 0x30], edx
cmp dword [eax + 0x54], edx
jg 0x1003b30d
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003b344
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x20]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, edi
call fcn.10039880
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x18]
neg eax
test eax, eax
jle 0x1003b371
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x1003b371
mov eax, dword [esp + 0xc]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x58], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
add eax, 0x30
sub dword [esp + 0x38], 1
mov dword [esp + 0x1c], eax
jne 0x1003b2a0
mov eax, dword [esp + 0x28]
test al, 1
je 0x1003b3c1
mov edx, dword [esp + 0x2c]
lea eax, [eax + eax*2]
inc dword [edi + 0x64]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [edx + 4]
mov edx, dword [edx + eax*8 - 0x18]
call fcn.1003b730
add esp, 4
mov ecx, edi
call fcn.10039880
jmp 0x1003b412
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
mov ecx, edi
cmp dword [eax + 0x54], edi
jg 0x1003b3dc
mov ecx, esi
call fcn.10022820
test eax, eax
jne 0x1003b412
mov ecx, dword [esi + 0x20]
mov edx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
or ecx, 0xffffffff
sub ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x18]
js 0x1003b42b
mov edi, dword [edx + 0x70]
test edi, edi
je 0x1003b42b
mov eax, dword [esi + 0x20]
mov dword [edi + ecx*4], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x58], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xac]
mov eax, edx
pop edi
pop esi
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret