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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
push edi
mov edi, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], 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 0x100387f0
mov eax, 0x65
test edx, edx
je 0x1003756c
movzx eax, byte [edx]
mov dword [esp + 0x2c], eax
add eax, 0xffffffed
cmp eax, 0x8c
ja case.0x10037585.21
movzx eax, byte [eax + 0x10038b9c]
jmp dword [eax*4 + 0x10038b38]
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 0x100375af
mov edx, dword [ecx + 0x10]
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [eax + 1], 0
je 0x10037618
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 0x100375dd
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038b2b
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 esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov esi, dword [edx + 0x1c]
test esi, esi
jns 0x1003763a
mov eax, dword [edi + 0x5c]
test eax, eax
jle 0x10037637
movsx edx, word [edx + 0x20]
add edx, eax
mov eax, edx
pop edi
pop esi
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.10037140
add esp, 0x10
mov edx, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
push 0
mov ecx, edi
call fcn.10036c20
mov edx, dword [esp + 0x1c]
add esp, 8
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 8]
push ecx
push 0
mov ecx, esi
call fcn.10036b20
mov edx, dword [esp + 0x1c]
add esp, 8
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
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 0x100376b4
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x100376b4
mov edi, 1
jmp 0x100376e7
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.100219a0
mov edx, dword [esp + 0x1c]
add esp, 8
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x1003771f
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038b2b
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 esp, ebp
pop ebp
ret
mov edx, dword [edx + 8]
add edx, 2
mov eax, edx
jne 0x10037768
xor eax, eax
jmp 0x1003777d
cmp byte [edx], 0
je 0x10037776
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x10037770
sub eax, edx
and eax, 0x3fffffff
mov ecx, dword [esi]
dec eax
push eax
mov dword [esp + 0x10], eax
call fcn.100082e0
mov ecx, dword [esi + 0x18]
add esp, 4
mov edi, dword [esi + 0x20]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x54], edi
jg 0x100377ae
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x100377ae
mov edi, 1
jmp 0x100377e4
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.100219a0
mov edx, dword [esp + 0x1c]
add esp, 8
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
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 0x10037828
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x1003785b
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 0x10038b2b
movsx ecx, word [ecx + 0x20]
mov eax, dword [edi + 0x1d8]
mov edx, dword [esi + 4]
mov edi, dword [eax + ecx*4 - 4]
mov ecx, dword [esi]
test edx, edx
je 0x100378d0
cmp byte [ecx + 0x40], 0
jne 0x100378d0
mov eax, dword [esi + 0x20]
dec eax
lea eax, [eax + eax*4]
push dword [edx + eax*4 + 0x10]
lea esi, [edx + eax*4]
movsx edx, byte [esi + 1]
call fcn.100217a0
mov edx, dword [esp + 0x18]
add esp, 4
test edi, edi
jne 0x100378ba
mov dword [esi + 0x10], edi
mov eax, edx
mov byte [esi + 1], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], edi
mov eax, edx
mov byte [esi + 1], 0xfe
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edx, 0xfffffffe
call fcn.100217a0
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0x1c]
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0xc]
push ecx
mov ecx, edi
call fcn.10037520
add esp, 4
mov edx, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0xc]
push ecx
mov ecx, edi
call fcn.10037520
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, dword [ebp + 8]
je 0x10037982
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x54], ecx
jg 0x10037945
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x1003797b
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0xc]
lea eax, [edx + 1]
mov edx, dword [esp + 0x14]
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 + 0x14], eax
mov ecx, dword [esp + 0x34]
xor edx, edx
mov ecx, dword [ecx + 8]
call fcn.100407d0
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 0x100379b5
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x100379e8
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 + 0x14]
mov ecx, edi
push 1
call fcn.10036f40
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.10038c30
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.10038c30
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.10033510
add esp, 0x18
jmp 0x10038656
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.10038c30
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.10038c30
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 0x10037a3a
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.10038c30
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.10038c30
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 0x10037ae9
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038656
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 0x10038659
mov edx, dword [edx + 0xc]
mov al, byte [edx]
cmp al, 0x84
jne 0x10037b41
push ecx
push 1
mov ecx, edi
call fcn.10036c20
add esp, 8
jmp 0x10038656
cmp al, 0x85
jne 0x10037b5a
mov edx, dword [edx + 8]
push ecx
push 1
mov ecx, esi
call fcn.10036b20
add esp, 8
jmp 0x10038656
lea eax, [esp + 0x24]
mov byte [esp + 0x40], 0x84
push eax
lea edx, [esp + 0x44]
mov dword [esp + 0x48], 0x4400
mov ecx, edi
mov dword [esp + 0x4c], 0
call fcn.10038c30
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.10038c30
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 0x10037bc2
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038656
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 0x10038659
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.10038c30
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 0x10037c34
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038656
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 0x10038659
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x54], ecx
jg 0x10037c94
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10037cca
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.10038c30
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 0x10037d11
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x10037d0a
mov dword [esp + 0x10], 1
jmp 0x10037d4b
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 0x10037d6e
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10037da4
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 0x10037dbc
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 0x10038656
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x10037dee
push dword [edx + 8]
push 0x100d7750
push edi
call fcn.10007210
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
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 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 0x10037e4a
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 0x10037e59
jmp 0x10037e6d
mov eax, dword [edx + 0x14]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10037e35
mov ecx, dword [eax]
jmp 0x10037e37
cmp byte [edx], 0
je 0x10037e66
nop
inc eax
cmp byte [eax], 0
jne 0x10037e60
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.100468f0
mov edx, eax
add esp, 0x10
mov dword [esp + 0x20], edx
test edx, edx
je 0x100382c2
cmp dword [edx + 0xc], 0
je 0x100382c2
movzx eax, word [edx + 2]
test eax, 0x200
je 0x10037f90
mov ecx, esi
call fcn.10021480
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.10038df0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp ecx, 1
jle 0x10037f84
dec ecx
mov dword [esp + 0x10], 0x18
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov dword [esp + 0x38], ecx
cmp dword [eax + 0x54], ecx
jg 0x10037f0a
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10037f40
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.10036f40
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.10038df0
add esp, 4
mov ecx, edi
call fcn.10036fa0
add dword [esp + 0x10], 0x18
sub dword [esp + 0xc], 1
jne 0x10037ee7
or ecx, 0xffffffff
sub ecx, dword [esp + 0x1c]
jmp 0x10038b12
test eax, 0x400
je 0x10037fb9
mov eax, dword [esp + 0x2c]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [eax + 4]
mov edx, dword [edx]
call fcn.10038df0
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x1003808f
mov esi, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x28], edx
cmp eax, 0x20
jae 0x1003803d
mov edx, dword [esi + 4]
lea ecx, [esp + 0x70]
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
movlpd qword [esp + 0x78], xmm0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 1
mov edx, dword [edx + eax]
mov dword [esp + 0x70], 0x10034f00
mov dword [esp + 0x74], 0x10035000
call fcn.10031000
cmp dword [esp + 0x84], 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
je 0x10038039
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 0x10038073
cmp dword [esp + 0x38], 0
jne 0x10038073
mov edx, dword [esi + 4]
mov ecx, edi
mov eax, dword [esp + 0x28]
mov edx, dword [edx + eax]
call fcn.10033330
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 0x10037fd5
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1003812a
cmp dword [esp + 0x1c], 0
je 0x100380b7
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 0x100380e4
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x28], eax
cmp ecx, dword [edi + 0x38]
jg 0x100380cd
add eax, ecx
sub dword [edi + 0x38], ecx
mov dword [edi + 0x3c], eax
jmp 0x100380e0
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 0x10038106
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov al, byte [edx]
cmp al, 0x9a
je 0x10038100
cmp al, 0x9c
jne 0x10038106
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.10038ed0
add esp, 8
mov ecx, edi
call fcn.10036fa0
mov eax, dword [esp + 0x2c]
jmp 0x10038132
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x24]
cmp edx, 2
jl 0x10038162
mov ecx, dword [esp + 0x34]
test byte [ecx + 4], 0x80
je 0x10038162
mov eax, dword [eax + 4]
push dword [eax + 0x18]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x28]
call fcn.1006c930
add esp, 8
mov dword [esp + 0x20], eax
jmp 0x10038171
test edx, edx
jle 0x1003816d
mov eax, dword [eax + 4]
push dword [eax]
jmp 0x1003814b
mov eax, dword [esp + 0x20]
test byte [eax + 2], 0x20
je 0x100381fe
cmp dword [esp + 0x38], 0
jne 0x1003818d
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 0x100381b7
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x100381b0
mov edx, 1
jmp 0x100381ee
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.100219a0
add esp, 8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x54], ecx
jg 0x10038223
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x1003821f
mov edx, 1
jmp 0x1003825a
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.100219a0
mov edx, dword [esi + 4]
add esp, 8
mov ecx, dword [esp + 0x24]
test edx, edx
je 0x1003827f
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [edx + eax*4 - 0x11], cl
test ecx, ecx
je 0x10038b2b
cmp dword [esp + 0x1c], 0
jne 0x10038b2b
mov esi, dword [esp + 0x28]
mov edx, esi
push ecx
mov ecx, edi
call fcn.10036f40
mov eax, dword [esp + 0x28]
add esp, 4
mov edx, dword [esp + 0x14]
cmp eax, dword [edi + 0x38]
jle 0x10038b2f
mov dword [edi + 0x38], eax
mov eax, edx
mov dword [edi + 0x3c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esp + 0x30]
push dword [esp + 0x14]
push 0x100d776c
push edi
call fcn.10007210
mov edx, dword [esp + 0x24]
add esp, 0x10
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
mov ecx, edi
call fcn.10035a60
add esp, 8
mov edx, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10021480
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.10021480
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 0x10038333
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038367
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.10036310
mov eax, dword [esi + 0x18]
add esp, 8
mov edi, dword [esi + 0x20]
mov ecx, edi
cmp dword [eax + 0x54], edi
jg 0x10038398
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x100383d0
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 0x100383d3
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
js 0x100383f0
mov edx, dword [eax + 0x70]
test edx, edx
je 0x100383f0
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 0x1003841e
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038451
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 0x1003846a
mov edx, dword [edi + 0x70]
test edx, edx
je 0x1003846a
mov eax, dword [esi + 0x20]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x14]
dec eax
mov dword [edi + 0x58], eax
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
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.10038c30
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x38], eax
mov ecx, edi
lea eax, [esp + 0x20]
push eax
call fcn.10038c30
mov dl, byte [edi + 0x13]
add esp, 4
mov dword [esp + 0x30], eax
test dl, dl
jne 0x100384d9
inc dword [edi + 0x48]
mov ecx, dword [edi + 0x48]
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [esp + 0xc], ecx
jmp 0x10038500
sub dl, 1
movzx eax, dl
mov byte [edi + 0x13], dl
mov ecx, dword [edi + eax*4 + 0x18]
mov dword [esp + 0xc], ecx
jne 0x100384f4
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
jmp 0x10038500
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.10033510
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 0x10038566
mov al, byte [edi + 0x13]
mov byte [esp + 0x1b], al
cmp al, 8
jae 0x10038566
xor ecx, ecx
lea eax, [edi + 0x74]
cmp dword [eax + 0xc], edx
je 0x10038562
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x10038546
movzx eax, byte [esp + 0x1b]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x13]
jmp 0x10038566
mov byte [eax + 6], 1
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.10038c30
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.10033510
mov eax, dword [esi + 0x18]
add esp, 0x18
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x30], ecx
cmp dword [eax + 0x54], ecx
jg 0x100385b6
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x100385eb
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 0x100385ef
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x10038627
mov al, byte [edi + 0x13]
mov byte [esp + 0x1b], al
cmp al, 8
jae 0x10038627
xor ecx, ecx
lea eax, [edi + 0x74]
cmp dword [eax + 0xc], edx
je 0x10038623
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x10038607
movzx eax, byte [esp + 0x1b]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x13]
jmp 0x10038627
mov byte [eax + 6], 1
test esi, esi
je 0x10038656
mov dl, byte [edi + 0x13]
cmp dl, 8
jae 0x10038656
xor ecx, ecx
lea eax, [edi + 0x74]
cmp dword [eax + 0xc], esi
je 0x10038652
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x10038638
movzx eax, dl
mov dword [edi + eax*4 + 0x18], esi
inc byte [edi + 0x13]
jmp 0x10038656
mov byte [eax + 6], 1
mov ecx, dword [ebp + 8]
cmp dword [esp + 0x24], 0
je 0x10038694
mov al, byte [edi + 0x13]
mov byte [esp + 0x1b], al
cmp al, 8
jae 0x10038694
xor edx, edx
lea eax, [edi + 0x74]
mov esi, dword [esp + 0x24]
cmp dword [eax + 0xc], esi
je 0x10038690
inc edx
add eax, 0x14
cmp edx, 0xa
jl 0x10038670
movzx eax, byte [esp + 0x1b]
mov dword [edi + eax*4 + 0x18], esi
inc byte [edi + 0x13]
jmp 0x10038694
mov byte [eax + 6], 1
cmp dword [esp + 0x20], 0
mov edx, ecx
je 0x10038b2f
mov al, byte [edi + 0x13]
mov byte [esp + 0x1b], al
cmp al, 8
jae 0x10038b2f
xor edx, edx
lea eax, [edi + 0x74]
mov esi, dword [esp + 0x20]
cmp dword [eax + 0xc], esi
je 0x100386dd
inc edx
add eax, 0x14
cmp edx, 0xa
jl 0x100386b5
movzx eax, byte [esp + 0x1b]
mov edx, ecx
mov dword [edi + eax*4 + 0x18], esi
mov eax, edx
inc byte [edi + 0x13]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, ecx
mov byte [eax + 6], 1
mov eax, edx
pop edi
pop esi
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 0x1003871c
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038751
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 0x10038754
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x34]
movzx eax, word [ecx + 0x20]
test ax, ax
js 0x10038b2b
cwde
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0x15], 0x45
jne 0x10038b2b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x30], ecx
cmp dword [eax + 0x54], ecx
jg 0x1003879d
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038b2b
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x14]
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
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x19c], 0
jne 0x100387f8
push 0x100d7788
push edi
call fcn.10007210
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [edx + 1]
cmp al, 2
jne 0x10038813
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 0x1003888d
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x1003883b
mov ecx, esi
call fcn.10021250
test eax, eax
je 0x1003883b
mov edi, 1
jmp 0x1003886f
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.100219a0
mov edx, dword [esp + 0x1c]
add esp, 8
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, al
mov ecx, edi
mov dword [esp + 0xc], eax
call fcn.1005f210
cmp dword [esp + 0xc], 2
mov esi, eax
jne 0x100388b3
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 0x100388cd
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038834
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 0x10038854
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.10021480
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x3c], edx
test edx, edx
je 0x1003897a
movups xmm0, xmmword [edx]
lea eax, [esp + 0x24]
mov ecx, edi
push eax
movups xmmword [esp + 0x44], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [esp + 0x54], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [esp + 0x64], xmm0
call fcn.10038c30
mov cl, byte [esp + 0x44]
add esp, 4
and dword [esp + 0x44], 0xffffefff
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
mov byte [esp + 0x66], cl
mov byte [esp + 0x40], 0x9f
mov byte [esp + 0x70], 0x4f
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
dec eax
test eax, eax
jle 0x10038a8b
dec eax
shr eax, 1
inc eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
inc dword [edi + 0x64]
test edx, edx
mov ecx, dword [eax]
mov eax, dword [esp + 0x80]
cmovne eax, ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
cmove eax, ecx
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.10021480
mov edx, dword [esp + 0x10]
mov ecx, edi
push 0x10
push eax
mov dword [esp + 0x14], eax
call fcn.100396b0
mov edx, dword [esp + 0x24]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [edx + 0x18]
call fcn.10038df0
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 0x10038a06
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038a3d
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.10036fa0
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x18]
neg eax
test eax, eax
jle 0x10038a6a
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x10038a6a
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 0x10038993
mov eax, dword [esp + 0x28]
test al, 1
je 0x10038aba
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.10038df0
add esp, 4
mov ecx, edi
call fcn.10036fa0
jmp 0x10038b0b
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
mov ecx, edi
cmp dword [eax + 0x54], edi
jg 0x10038ad5
mov ecx, esi
call fcn.10021250
test eax, eax
jne 0x10038b0b
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 0x10038b24
mov edi, dword [edx + 0x70]
test edi, edi
je 0x10038b24
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 + 0x14]
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret