Function at 0x4038e4
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push 0xac
mov eax, 0x40c2b3
call 0x40cbfc
mov eax, edx
mov dword [ebp - 0x88], eax
mov ebx, ecx
mov dword [ebp - 0x9c], ebx
xor esi, esi
mov dword [ebp - 0xb8], esi
push 1
push eax
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], esi
call fcn.0040b300
lea ecx, [ebp - 0xb8]
call fcn.0040b2fc
mov ecx, 0xc4
cmp eax, ecx
jb 0x4045b7
push esi
push ecx
lea ecx, [ebp - 0xb8]
call fcn.0040b392
xor edx, edx
mov dword [ebx + 0x60], eax
cmp byte [eax + 0x50], dl
setne dl
mov dword [ebx + 0xc], edx
mov ecx, dword [eax]
call fcn.00402de5
cmp eax, 0x504f474f
jne 0x4045b7
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 4]
call fcn.00402de5
cmp eax, 0x14
je 0x40397e
mov esi, 0x422
jmp 0x4045bc
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0xc]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00402df4
mov esi, dword [ebx + 0x60]
mov dword [ebx + 0x58], eax
add esi, 0x40
cmp dword [ebx + 0xc], 0
lea eax, [ebx + 0x44]
mov edi, eax
mov dword [ebx + 0x5c], edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x4039b2
push 0x10
push eax
call fcn.0040b170
mov eax, dword [ebx + 4]
xor esi, esi
mov dword [ebp - 0x18], esi
cmp dword [eax + 0x10], esi
jne 0x403aa1
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x8c]
mov eax, dword [edx + 8]
cmp eax, dword [ecx + 8]
je 0x4039de
mov esi, 0x41c
jmp 0x4045bc
cmp dword [edx + 0x64], esi
je 0x4039ed
mov esi, 0x41d
jmp 0x4045bc
mov eax, dword [ebx + 0x60]
cmp byte [eax + 0x52], 0
jne 0x403a00
mov esi, 0xbb
jmp 0x4045bc
mov edi, esi
push esi
jmp 0x403a41
cmp dword [edx + 0x20], esi
jne 0x403a0e
mov edi, esi
jmp 0x403a40
cmp dword [edx + 0x20], 3
je 0x403a40
mov eax, dword [edx + 8]
cmp eax, dword [ebx + 0x58]
jne 0x403a40
mov eax, dword [edx + 0xc]
cmp eax, dword [ebx + 0x5c]
jne 0x403a40
mov ecx, esi
mov eax, dword [edx + ecx*4 + 0x10]
cmp eax, dword [ebx + ecx*4 + 0x44]
jne 0x403a40
inc ecx
cmp ecx, 4
jne 0x403a26
mov edi, dword [edx + 0x20]
mov dword [ebp - 0x18], 1
push edx
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edx, eax
test edx, edx
jne 0x403a05
mov eax, dword [ebx + 4]
cmp dword [eax + 0xc], esi
je 0x403a74
cmp dword [ebp - 0x18], esi
jne 0x403a65
mov esi, 0x41e
jmp 0x4045bc
cmp edi, 2
jne 0x403aa1
mov esi, 0xb6
jmp 0x4045bc
cmp dword [ebp - 0x18], esi
je 0x403aa1
cmp edi, 1
jne 0x403aa1
push 2
lea eax, [ebp - 0x28]
push eax
push 0x401380
call dword [0x431008]
test eax, eax
jne 0x4045bc
mov esi, 0xb5
jmp 0x4045bc
mov edx, dword [ebx + 0x60]
fld qword [0x401ac0]
fldz
mov edi, dword [edx + 0x58]
test edi, edi
jne 0x403ab7
fld st(0)
jmp 0x403ae8
mov eax, dword [edx + 0xc]
fild dword [edx + 0xc]
test eax, eax
jns 0x403ac7
fadd qword [0x401ad0]
fstp qword [ebp - 0x74]
fld qword [ebp - 0x74]
mov edx, dword [ebx + 0x60]
fmul st(2)
mov edi, dword [edx + 0x58]
fild dword [edx + 0x58]
test edi, edi
jns 0x403ae2
fadd qword [0x401ad0]
fstp qword [ebp - 0x74]
fdiv qword [ebp - 0x74]
mov eax, dword [edx + 0xb4]
mov ecx, dword [edx + 0xb8]
mov dword [ebp - 0x60], eax
or eax, ecx
mov dword [ebp - 0x5c], ecx
jne 0x403b02
fstp st(2)
jmp 0x403b6e
mov eax, dword [edx + 0xbc]
fstp st(1)
mov ecx, dword [edx + 0xc0]
mov dword [ebp - 0x2c], eax
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0x28], ecx
fild qword [ebp - 0x2c]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x2c], esi
fild qword [ebp - 0x2c]
fchs
faddp st(1)
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, ecx
fmulp st(2)
and ecx, 0x7fffffff
mov dword [ebp - 0x28], ecx
and eax, 0x80000000
fild qword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
fild qword [ebp - 0x2c]
fchs
faddp st(1)
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fdivp st(2)
fxch st(1)
push ecx
push ecx
fstp qword [esp]
push edi
push dword [edx + 0xc]
push ecx
push ecx
fstp qword [esp]
push dword [ebp - 0x88]
push 0x2f57
call fcn.0040bdde
push eax
call fcn.0040c16c
mov eax, dword [ebx + 0x60]
add esp, 0x20
movzx eax, word [eax + 0x60]
cmp dword [ebx + 0xc], esi
je 0x403baa
push eax
call fcn.0040b20a
movzx eax, ax
test ax, ax
je 0x403bbc
mov eax, dword [ebx + 0x8c]
or dword [eax + 0x10], 0x20000000
mov eax, dword [ebx + 0x60]
movzx eax, word [eax + 0x62]
cmp dword [ebx + 0xc], esi
je 0x403bd1
push eax
call fcn.0040b20a
movzx eax, ax
test ax, ax
je 0x403be3
mov eax, dword [ebx + 0x8c]
or dword [eax + 0x10], 0x2000000
push esi
push esi
lea ecx, [ebp - 0xb8]
call fcn.0040b3d5
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0xc]
call fcn.00402de5
push esi
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040b392
mov ecx, ebx
mov dword [ebx + 0x40], eax
call fcn.0040379a
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x1c]
call fcn.00402de5
mov ecx, dword [ebx + 0x60]
add eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ecx + 0x18]
call fcn.00402de5
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x24]
call fcn.00402de5
mov ecx, dword [ebx + 0x60]
add eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x54], eax
mov ecx, dword [ecx + 0x20]
call fcn.00402de5
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x58], eax
mov ecx, dword [ecx + 0x28]
call fcn.00402de5
mov ecx, dword [ebx + 0x60]
mov edi, eax
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x84], edi
mov ecx, dword [ecx + 0x30]
call fcn.00402de5
mov ecx, dword [ebx + 0x60]
add eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x70], eax
mov ecx, dword [ecx + 0x2c]
call fcn.00402de5
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x98], eax
mov ecx, dword [ecx + 0x34]
call fcn.00402de5
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ecx + 0x3c]
call fcn.00402de5
mov ecx, dword [ebx + 0x40]
add ecx, eax
mov eax, edi
mov edi, dword [0x431130]
shl eax, 4
push eax
mov dword [ebx + 0x64], ecx
mov dword [ebx + 0x68], ecx
call edi
mov dword [ebx + 0x70], eax
pop ecx
test eax, eax
jne 0x403cee
push 0x5eb
push 0x4013c0
push 2
call fcn.0040adc6
mov eax, dword [ebp - 0x8c]
lea eax, [eax*4 + 4]
push eax
call edi
pop ecx
mov ecx, dword [ebx]
push esi
mov dword [ebp - 0x24], eax
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov edi, dword [0x431138]
mov edx, eax
mov dword [ebp - 0x64], edx
jmp 0x4044dc
mov ecx, dword [ebx]
push dword [edx]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebx + 4]
mov edi, eax
cmp dword [ecx + 0x44], esi
je 0x403d3a
push edi
push 0x2f5d
call fcn.0040c11a
pop ecx
pop ecx
mov edx, dword [ebp - 0x64]
cmp dword [edx + 4], esi
je 0x4044c9
mov ecx, dword [ebx]
push edx
mov eax, dword [ecx]
call dword [eax + 0x64]
mov ecx, dword [ebx]
test eax, eax
mov eax, dword [ecx]
je 0x404590
lea edx, [ebp - 0x68]
push edx
push 9
call dword [eax + 0x20]
mov ecx, dword [ebx]
mov dword [ebp - 0x38], eax
mov edx, dword [ecx]
call dword [edx]
cmp eax, 9
je 0x404549
cmp dword [ebp - 0x38], 0
je 0x40457f
mov ecx, dword [ebx]
lea edx, [ebp - 0x68]
push edx
push 0xa
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebx]
mov dword [ebp - 0x20], eax
mov edx, dword [ecx]
call dword [edx]
cmp eax, 9
je 0x404549
cmp dword [ebp - 0x20], 0
je 0x40456e
mov ecx, dword [ebx]
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
push edx
mov eax, dword [ecx]
push 0xb
call dword [eax + 0x20]
mov ecx, dword [ebx]
mov dword [ebx + 0x74], eax
mov eax, dword [ecx]
call dword [eax]
cmp eax, 9
je 0x404549
cmp dword [ebx + 0x74], esi
je 0x40455d
mov ecx, dword [ebx]
lea edx, [ebp - 0x90]
push edx
push 0xc
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebx]
mov dword [ebp - 0x6c], eax
mov edx, dword [ecx]
call dword [edx]
cmp eax, 9
je 0x404549
cmp dword [ebp - 0x6c], 0
je 0x40451d
mov ecx, dword [ebx]
lea edx, [ebx + 0x6c]
push edx
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1dc]
test eax, eax
jne 0x403e3f
mov eax, dword [ebx + 4]
push dword [eax + 0x38]
mov eax, dword [0x431214]
push edi
push dword [eax + 0x30]
push 0xa6
push 0x2ee1
call fcn.0040bdde
push eax
call fcn.0040ae7c
push dword [ebp - 0x94]
call dword [0x431210]
mov edi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x80]
shl edi, 5
add eax, edi
push eax
call dword [0x431130]
mov dword [ebx + 0x78], eax
pop ecx
test eax, eax
jne 0x403e79
push 0x651
push 0x4013c0
push 2
call fcn.0040adc6
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebp - 0x80]
mov dword [ebx + 0x7c], eax
add eax, edi
add eax, ecx
mov dword [ebx + 0x34], esi
shr ecx, 4
add ecx, dword [ebp - 0x84]
mov dword [ebx + 0x80], eax
imul eax, ecx, 0x18
push 1
push eax
call dword [0x431134]
mov dword [ebx + 0x84], eax
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x98]
imul edi, eax, 0xc
mov eax, dword [ebp - 0x90]
add eax, edi
push eax
call dword [0x431130]
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x78], ecx
test ecx, ecx
jne 0x403ee8
push 0x66e
push 0x4013c0
push 2
call fcn.0040adc6
mov ecx, dword [ebp - 0x78]
lea eax, [edi + ecx]
mov dword [ebp - 0x1c], esi
add eax, dword [ebp - 0x90]
mov edi, ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x14], edi
mov dword [ebx + 0x18], esi
push esi
jmp 0x40440d
cmp edi, dword [ebp - 0x5c]
jae 0x404421
mov eax, dword [ebx + 4]
cmp dword [eax + 0x44], esi
je 0x403f30
mov ecx, dword [ebx]
push dword [edx + 0x34]
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
push 0x40145c
call fcn.0040c16c
mov edx, dword [ebx + 0x18]
pop ecx
pop ecx
mov eax, dword [edx + 0x24]
add eax, dword [ebp - 0x38]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x24]
add eax, dword [ebp - 0x38]
mov dword [ebx + 0x20], eax
mov eax, dword [edx + 0x28]
add eax, dword [ebp - 0x20]
mov dword [ebx + 0x2c], eax
test byte [edx + 0x14], 1
jne 0x403fb9
mov eax, dword [ebx + 0x8c]
mov ecx, ebx
push dword [ebp - 0x7c]
test dword [eax + 0x10], 0x4000000
je 0x403f8f
call fcn.00402ef9
push dword [ebx + 0x28]
mov edx, dword [ebp - 0x58]
mov ecx, ebx
push dword [ebp - 0x54]
call fcn.004059f4
push dword [ebx + 0x28]
mov ecx, ebx
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.00405d58
jmp 0x40440a
call fcn.00402fd5
push dword [ebx + 0x24]
mov edx, dword [ebp - 0x58]
mov ecx, ebx
push dword [ebp - 0x54]
call fcn.004057e5
push dword [ebx + 0x24]
mov ecx, ebx
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.00405bae
jmp 0x40440a
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x70]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x40], esi
lea eax, [ecx + eax*8]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x40]
push ecx
push edi
mov ecx, ebx
mov dword [ebp - 0x44], eax
call fcn.00403897
mov eax, dword [ebp - 0x40]
mov dword [edi + eax*4], esi
mov eax, dword [ebp - 0x40]
dec eax
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x40406a
cdq
sub eax, edx
mov edx, dword [edi]
sar eax, 1
mov ecx, dword [edi + eax*4]
mov dword [edi], ecx
xor ecx, ecx
mov dword [edi + eax*4], edx
mov edi, esi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x50], eax
mov esi, dword [edx]
add esi, eax
inc ecx
mov ebx, dword [ebp - 0x50]
mov edx, dword [edx + ecx*4]
mov eax, dword [esi]
cmp eax, dword [edx + ebx]
mov ebx, dword [ebp - 0x18]
jbe 0x404033
mov ebx, dword [ebp - 0x24]
inc edi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edi*4]
mov dword [ebx + edi*4], edx
mov edx, ebx
mov ebx, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
jmp 0x404036
mov edx, dword [ebp - 0x24]
inc ecx
cmp ecx, ebx
jle 0x40400c
mov ecx, dword [edx]
xor esi, esi
mov eax, dword [edx + edi*4]
mov ebx, dword [ebp - 0x9c]
mov dword [edx], eax
lea eax, [edi - 1]
push eax
mov dword [edx + edi*4], ecx
mov ecx, ebx
push esi
call fcn.00403629
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
lea eax, [edi + 1]
push eax
mov ecx, ebx
call fcn.00403629
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x1c]
imul edi, dword [eax + 0x30], 0xc
mov dword [eax + 0x30], ecx
mov eax, dword [ebx + 0x18]
push 1
mov dword [ebp - 0x30], esi
add edi, dword [ebp - 0x6c]
movzx ecx, word [eax + 0xc]
movzx eax, word [eax + 8]
add ecx, eax
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x40]
shl ecx, 3
inc eax
imul eax, ecx
push eax
call dword [0x431134]
inc dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x88], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x18], esi
movzx edx, word [ecx + 0x12]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], edx
lea eax, [ecx + 0xc]
mov dword [ebp - 0x3c], eax
test edx, edx
je 0x404102
push dword [ebp - 0x20]
mov eax, edi
add edi, 0xc
mov dword [ebp - 0x34], edi
mov esi, eax
mov edi, ecx
mov dword [ebp - 0x50], eax
dec edx
mov ecx, ebx
mov dword [ebp - 0x48], edx
mov edx, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00403270
mov eax, dword [ebx + 4]
xor esi, esi
cmp dword [eax + 0x44], esi
je 0x40413c
push esi
push 0x2f5e
jmp 0x404135
mov eax, ecx
mov dword [ebp - 0x50], eax
or dword [eax + 8], 0xffffffff
mov dword [eax], 0x80000000
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x18]
movzx ecx, word [eax + 0xc]
movzx eax, word [eax + 8]
add ecx, eax
mov eax, dword [ebx + 4]
shl ecx, 3
mov dword [ebp - 0x18], ecx
cmp dword [eax + 0x44], esi
je 0x40413c
push esi
push 0x2f5f
call fcn.0040c11a
pop ecx
pop ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x40]
jb 0x40415a
cmp dword [ebp - 0x48], 0
je 0x404340
cmp eax, dword [ebp - 0x5c]
jae 0x404340
mov edi, dword [ebp - 0x24]
cmp dword [edi + ecx*4], 0
je 0x4042c7
mov eax, dword [ebx + 0x40]
add eax, dword [edi + ecx*4]
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x3c], eax
mov edi, dword [eax]
je 0x4041cc
mov ecx, dword [edx]
mov eax, ecx
and eax, 0x3fffffff
cmp eax, edi
jb 0x4042c7
ja 0x4041c9
mov eax, dword [ebx + 4]
cmp dword [eax + 0x44], esi
je 0x4041b1
push edi
push 0x2f60
call fcn.0040c11a
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 4]
pop ecx
pop ecx
mov ecx, dword [edx]
test ecx, ecx
jns 0x404292
cmp dword [eax + 0x44], esi
je 0x4041c9
push 0x2f61
call fcn.0040c11a
pop ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov edx, esi
movzx ecx, word [ecx]
test ecx, ecx
je 0x404283
add eax, 0x10
cmp dword [eax + 4], esi
ja 0x4041e8
cmp dword [eax], esi
jbe 0x4041eb
xor edx, edx
inc edx
add eax, 8
sub ecx, 1
jne 0x4041df
test edx, edx
je 0x404283
mov eax, dword [ebx + 4]
cmp dword [eax + 0x44], esi
je 0x404210
push edi
push 0x2f5f
call fcn.0040c11a
pop ecx
pop ecx
mov edx, dword [ebp - 0x14]
and edi, 0x3fffffff
mov eax, dword [ebp - 0x18]
or edi, 0x80000000
push 1
or dword [edx + 8], 0xffffffff
mov dword [edx + 4], eax
mov dword [edx], 0x80000000
mov eax, dword [ebx + 0x18]
movzx ecx, word [eax + 0xc]
movzx eax, word [eax + 8]
mov dword [edx], edi
add ecx, eax
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
push edi
push dword [ebp - 0x44]
push edx
push dword [ebp - 0x4c]
mov edx, dword [ebp - 0x38]
lea eax, [eax + ecx*8]
mov ecx, ebx
mov dword [ebp - 0x18], eax
call fcn.004036cf
mov ecx, dword [ebp - 0x50]
add dword [ebp - 0x14], 0xc
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x4c]
cmp dword [ecx], esi
jl 0x404272
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
push esi
push edi
push dword [ebp - 0x44]
push ecx
push eax
mov ecx, ebx
call fcn.004036cf
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x30], ecx
jmp 0x404145
mov edi, dword [ebp - 0x3c]
mov ecx, ebx
push 1
push edi
push dword [ebp - 0x44]
push edx
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
call fcn.004036cf
mov edx, dword [ebp - 0x38]
mov ecx, ebx
push esi
push edi
push dword [ebp - 0x44]
push dword [ebp - 0x50]
push dword [ebp - 0x20]
call fcn.004036cf
mov ecx, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x30], ecx
jmp 0x404316
mov eax, dword [ebx + 4]
cmp dword [eax + 0x44], esi
je 0x4042e3
mov eax, dword [edx]
and eax, 0x3fffffff
push eax
push 0x2f5e
call fcn.0040c11a
pop ecx
pop ecx
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x20]
push dword [ebx + 0x24]
mov eax, dword [edx + 0x24]
add eax, dword [ebp - 0x38]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x34]
push esi
push esi
mov eax, dword [eax + 4]
add ecx, eax
mov dword [ebx + 0x2c], ecx
movzx eax, word [edx + 0x3c]
lea eax, [ecx + eax*8]
mov ecx, ebx
mov dword [ebx + 0x30], eax
call fcn.00405bae
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov esi, edx
mov eax, dword [ebp - 0x14]
add edx, 0xc
mov edi, eax
mov dword [ebp - 0x34], edx
add eax, 0xc
dec dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1c]
inc edi
xor esi, esi
mov dword [ebp - 0x1c], edi
jmp 0x40414b
mov ecx, dword [ebx + 0x18]
mov ax, di
sub ax, word [ecx + 0x30]
mov word [ecx + 0x12], ax
mov eax, dword [ebx + 4]
cmp dword [eax + 0x44], esi
je 0x40436a
mov eax, dword [ebx + 0x18]
movzx eax, word [eax + 0x12]
push eax
push 0x2f62
call fcn.0040c11a
pop ecx
pop ecx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
jmp 0x4043f5
mov ecx, dword [edi]
test ecx, 0x3fffffff
jne 0x4043a1
mov eax, dword [ebx + 0x18]
cmp word [eax + 0xc], si
je 0x40439e
mov eax, dword [ebp - 0x4c]
test ecx, ecx
jl 0x404392
mov eax, dword [ebp - 0x20]
push eax
mov edx, edi
mov ecx, ebx
call fcn.00403579
mov ecx, dword [edi]
mov eax, dword [ebp - 0x14]
test ecx, ecx
jns 0x4043f2
test ecx, 0x40000000
jne 0x4043f2
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx]
movzx esi, word [eax + 0xc]
movzx eax, word [eax + 8]
mov edx, dword [ecx]
add esi, eax
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x4c]
shl esi, 3
push esi
push eax
push 0xa
call dword [edx + 0x10]
and dword [edi], 0x7fffffff
mov edx, dword [ebp - 0x60]
mov dword [edi + 4], edx
mov eax, dword [ebx + 0x18]
movzx ecx, word [eax + 0xc]
movzx eax, word [eax + 8]
add ecx, eax
mov eax, dword [ebp - 0x14]
xor esi, esi
lea edx, [edx + ecx*8]
mov dword [ebp - 0x60], edx
add edi, 0xc
cmp edi, eax
jne 0x404375
push dword [ebp - 0x4c]
call dword [0x431138]
mov edi, dword [ebp - 0x14]
pop ecx
push dword [ebx + 0x18]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x74]
mov edx, eax
mov dword [ebx + 0x18], edx
test edx, edx
jne 0x403f05
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x80]
push dword [ebp - 0x68]
mov ecx, dword [ebx]
mov edi, dword [ebp - 0x20]
push edi
push esi
mov eax, dword [ecx]
push 0xa
call dword [eax + 0xc]
push edi
mov edi, dword [0x431210]
call edi
push dword [ebp - 0x38]
call edi
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx]
shl eax, 4
push eax
push dword [ebx + 0x78]
mov edx, dword [ecx]
push 0xb
call dword [edx + 4]
push dword [ebx + 0x74]
mov edi, dword [0x431138]
call edi
pop ecx
push dword [ebx + 0x78]
mov dword [ebx + 0x74], esi
call edi
imul eax, dword [ebp - 0x1c], 0xc
pop ecx
mov ecx, dword [ebx]
mov dword [ebx + 0x78], esi
push eax
push dword [ebp - 0x78]
mov edx, dword [ecx]
push 0xc
call dword [edx + 4]
push dword [ebp - 0x6c]
call dword [0x431210]
push dword [ebp - 0x78]
call edi
pop ecx
push dword [ebx + 0x84]
call edi
mov eax, dword [ebx + 0x8c]
pop ecx
and dword [eax + 0x10], 0xefffffff
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x70]
mov eax, dword [ebx + 0x6c]
mov edx, dword [ebp - 0x64]
shl eax, 2
add dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x6c]
shl eax, 3
add dword [ebx + 0x68], eax
jmp 0x4044cf
mov edi, dword [0x431138]
mov ecx, dword [ebx]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov edx, eax
mov dword [ebp - 0x64], eax
test edx, edx
jne 0x403d1a
push dword [ebp - 0x24]
call edi
pop ecx
push dword [ebx + 0x70]
call edi
mov edx, dword [ebp - 0x88]
pop ecx
mov ecx, ebx
call fcn.00402e12
neg eax
lea ecx, [ebp - 0xb8]
sbb esi, esi
and esi, 0xffffff59
call fcn.0040b2aa
lea eax, [esi + 0xa7]
jmp 0x4045c9
mov eax, dword [ebx + 4]
push dword [eax + 0x38]
mov eax, dword [0x431214]
push edi
push dword [eax + 0x30]
push 0xa6
push 0x2ee1
call fcn.0040bdde
push eax
call fcn.0040ae7c
push 1
call dword [0x431158]
push 2
push 0x2ee1
call fcn.0040bdde
push eax
call fcn.0040af74
jmp 0x404541
mov eax, dword [ebx + 4]
push dword [eax + 0x38]
mov eax, dword [0x431214]
push edi
push dword [eax + 0x2c]
jmp 0x40452c
mov eax, dword [ebx + 4]
push dword [eax + 0x38]
mov eax, dword [0x431214]
push edi
push dword [eax + 0x28]
jmp 0x40452c
mov eax, dword [ebx + 4]
push dword [eax + 0x38]
mov eax, dword [0x431214]
push edi
push dword [eax + 0x24]
jmp 0x40452c
call dword [eax]
push eax
call dword [0x43121c]
push eax
mov eax, dword [ebx + 4]
push dword [eax + 0x38]
push 0xa5
push 0x2ee1
call fcn.0040bdde
push eax
call fcn.0040aebe
jmp 0x404541
mov esi, 0x41b
lea ecx, [ebp - 0xb8]
call fcn.0040b2aa
mov eax, esi
call 0x40cbd9
ret