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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
mov esi, dword [edi + 0xc]
mov eax, dword [edi]
test esi, esi
mov ebx, dword [eax]
jl 0x40358b
cmp esi, dword [ebx + 0xc]
jl 0x4035b7
push 0x6e
push 0x4a10e8
call fcn.00418f50
add esp, 4
push eax
push 0x4a1104
push 0x4b6d60
call fcn.00492257
push 0x4b6d60
call fcn.004187d0
add esp, 0x14
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x14]
imul eax, esi
add eax, ecx
mov dword [esp + 0x2c], eax
jne 0x4035f7
push 0x2b9
push 0x4a14c8
call fcn.00418f50
add esp, 4
push eax
push 0x4a14e8
push 0x4b6d60
call fcn.00492257
push 0x4b6d60
call fcn.004187d0
add esp, 0x14
fld dword [esp + 0x7c]
fcomp dword [0x49f2e0]
fnstsw ax
test ah, 0x40
je 0x40363f
fld dword [esp + 0x80]
fcomp dword [0x49f2e0]
fnstsw ax
test ah, 0x40
je 0x40363f
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push ecx
push edx
push eax
push edi
call fcn.00403250
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov eax, dword [ecx + 4]
test eax, eax
jle 0x40399c
mov edx, dword [esp + 0x2c]
test ebp, ebp
mov esi, dword [edx]
jl 0x403663
cmp ebp, dword [esi + 0xc]
jl 0x40368f
push 0x6e
push 0x4a10e8
call fcn.00418f50
add esp, 4
push eax
push 0x4a1104
push 0x4b6d60
call fcn.00492257
push 0x4b6d60
call fcn.004187d0
add esp, 0x14
mov ebx, dword [esi + 4]
mov eax, dword [edi + 0x1c]
imul ebx, ebp
mov ebp, dword [esi + 0x14]
add ebx, ebp
dec eax
mov ecx, dword [ebx]
cmp eax, ecx
jl case.default.0x4037d0
mov edx, dword [ebx + 4]
add ecx, edx
cmp eax, ecx
jl 0x4036ba
cmp edx, 0xffffffff
jne case.default.0x4037d0
mov ebp, dword [esp + 0x84]
push ebp
call fcn.00454400
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fimul dword [ebx + 0x10]
fmul dword [esp + 0x80]
fstp dword [esp]
call fcn.00418f00
mov esi, dword [esp + 0x78]
push ebp
add eax, esi
mov dword [esp + 0x1c], eax
call fcn.00454410
mov dword [esp + 0x30], eax
add esp, 4
fild dword [esp + 0x2c]
fimul dword [ebx + 0x14]
fmul dword [esp + 0x84]
fstp dword [esp]
call fcn.00418f00
mov ecx, dword [esp + 0x7c]
mov esi, dword [ebx + 0x18]
add eax, ecx
and esi, 3
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x20]
add esp, 4
xor esi, ebp
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x403742
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov ebp, dword [ebx + 0x24]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x403763
mov eax, dword [ebx + 0x20]
mov ebp, 0x100
imul eax, dword [edi + 0x24]
sar eax, 8
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x28]
sub ebp, eax
imul ebp, dword [ebx + 0x24]
sar ebp, 8
add ebp, eax
mov eax, dword [edi + 0x2c]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je case.default.0x4037d0
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.0044eeb0
mov edx, dword [edi + 0x30]
add esp, 8
test edx, edx
jne 0x403891
push esi
call fcn.00454410
mov dword [esp + 0x24], eax
push esi
fild dword [esp + 0x28]
fmul dword [esp + 0x88]
fstp dword [esp + 0x24]
call fcn.00454400
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
mov eax, dword [edi + 4]
lea ecx, [edx + 1]
add esp, 8
cmp ecx, 4
fmul dword [esp + 0x7c]
fstp dword [esp + 0x20]
ja case.default.0x4037d0
jmp dword [ecx*4 + 0x4039a4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
fild dword [esp + 0x18]
push ecx
push edx
push ecx
fstp dword [esp]
fild dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
fstp dword [esp]
push ecx
push eax
call fcn.00450450
add esp, 0x18
jmp case.default.0x4037d0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
fild dword [esp + 0x18]
push edx
push ecx
push ecx
mov edx, dword [esp + 0x1c]
fstp dword [esp]
fild dword [esp + 0x20]
push ecx
fstp dword [esp]
push edx
push eax
call fcn.00451b30
add esp, 0x18
jmp case.default.0x4037d0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x18]
push ebp
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
push ecx
mov edx, dword [esp + 0x24]
fstp dword [esp]
fild dword [esp + 0x28]
push ecx
fstp dword [esp]
push edx
push eax
call fcn.004521c0
add esp, 0x20
jmp case.default.0x4037d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
fild dword [esp + 0x18]
push ecx
push edx
push ecx
fstp dword [esp]
fild dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
fstp dword [esp]
push ecx
push eax
call fcn.00453170
add esp, 0x18
jmp case.default.0x4037d0
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 2
mov dword [esp + 0x58], ebp
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], esi
mov esi, dword [edx]
mov ebp, dword [edx + 4]
push eax
lea edx, [esp + 0x38]
push 0
push edx
push esi
mov dword [esp + 0x34], ebp
mov edi, eax
call fcn.00408a90
add esp, 0x10
cmp eax, 0xffffffff
je 0x403976
mov ecx, dword [esi + 8]
xor edx, edx
dec ecx
test ecx, ecx
jle 0x40396f
mov esi, dword [esi + 0x18]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x28]
mov ebp, dword [ebp]
shl ebp, 4
cmp edi, dword [esi + ebp + 0xc]
jle 0x403957
mov ebp, dword [esp + 0x28]
inc edx
add ebp, 4
cmp edx, ecx
mov dword [esp + 0x28], ebp
jl 0x403935
jmp 0x40396f
cmp ecx, edx
jle 0x40396f
mov esi, dword [esp + 0x24]
lea esi, [esi + ecx*4]
sub ecx, edx
mov edi, dword [esi - 4]
mov dword [esi], edi
add esi, 0xfffffffc
dec ecx
jne 0x403964
mov ecx, dword [esp + 0x24]
mov dword [ecx + edx*4], eax
mov edi, dword [esp + 0x70]
mov edx, dword [edi + 0x1c]
mov eax, dword [ebx]
dec edx
cmp eax, edx
jg 0x40399c
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
inc ebp
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ebp
cmp ebp, ecx
jl 0x403654
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret