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

Disassembly:
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub esp, 0x8c
cmp dword [ebx + 0x24], 0
push ebp
mov ebp, dword [esp + 0xa4]
push esi
push edi
jle 0x420aeb
fld dword [ebx + 0x28]
lea edx, [eax + ebp]
push edx
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0xac]
fld dword [ebx + 0x2c]
add edx, ecx
fstp dword [esp + 0x3c]
fld dword [ebx + 0x30]
push edx
push eax
fstp dword [esp + 0x3c]
push ecx
lea eax, [esp + 0x98]
push eax
call dword [0x435258]
fld dword [esp + 0x18]
call fcn.00431580
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 0x34]
fld dword [esp + 0x18]
call fcn.00431450
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 0x20]
fild dword [esp + 0xa8]
fmul dword [esp + 0x30]
call fcn.004312a0
fild dword [esp + 0xac]
cdq
sub eax, edx
fmul dword [esp + 0x38]
mov esi, eax
sar esi, 1
mov dword [esp + 0x10], esi
call fcn.004312a0
fild dword [esp + 0x10]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0xa8]
cdq
sub eax, edx
mov ecx, eax
mov eax, ebp
cdq
sar edi, 1
sub eax, edx
mov dword [esp + 0x24], edi
mov ebp, eax
sar ecx, 1
fild dword [esp + 0x24]
sub dword [esp + 0xa0], ecx
sar ebp, 1
sub dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], ebp
call fcn.0043167a
sub esp, 8
fstp dword [esp + 0x18]
mov ecx, edi
fld dword [esp + 0x18]
mov edx, esi
imul ecx, edi
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld st(0)
fld dword [esp + 0x20]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
imul edx, esi
fstp dword [esp + 4]
fsubrp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
add ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
call fcn.00431350
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
push ecx
lea edi, [esp + 0x64]
fstp dword [esp]
call fcn.0041f090
mov eax, dword [ebx + 0x24]
inc eax
mov ecx, 0x100
sub ecx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
jge 0x420aeb
mov ecx, dword [esp + 0xa4]
lea esi, [eax + ecx]
add esi, ebp
mov dword [esp + 0x1c], esi
fild dword [esp + 0x10]
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
fmul dword [esp + 0x20]
fstp dword [esp + 0x48]
fmul dword [esp + 0x34]
fstp dword [esp + 0x44]
jge 0x420ad3
fild dword [esp + 0xb0]
fstp dword [esp + 0x3c]
fild dword [esp + 0xb4]
fstp dword [esp + 0x4c]
fild dword [esp + 0xa8]
fstp dword [esp + 0x54]
fild dword [esp + 0xac]
fstp dword [esp + 0x50]
fild dword [esp + 0x18]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
fmul dword [esp + 0x34]
fadd dword [esp + 0x48]
fdiv dword [esp + 0x38]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fmulp st(1)
fsubr dword [esp + 0x44]
fdiv dword [esp + 0x30]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x28]
fld dword [esp + 0x54]
fadd dword [esp + 0x14]
fst qword [esp + 0x78]
call fcn.004312a0
fld dword [esp + 0x50]
mov edi, eax
fadd dword [esp + 0x28]
mov dword [esp + 0x14], edi
fst qword [esp + 0x80]
call fcn.004312a0
mov ebp, eax
push ebp
push edi
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x38], ebp
call dword [0x435254]
test eax, eax
je 0x420ac0
fild dword [esp + 0x14]
fsubr qword [esp + 0x78]
fstp dword [esp + 0x28]
fild dword [esp + 0x2c]
fsubr qword [esp + 0x80]
fstp dword [esp + 0x14]
fldz
fld dword [esp + 0x28]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4208e6
fadd qword [0x4388e0]
dec edi
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [esp + 0x14]
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 5
jp 0x420908
fxch st(1)
dec ebp
fadd qword [0x4388e0]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fxch st(1)
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax]
add edx, dword [esp + 0xa8]
mov dword [esp + 0x2c], edx
js 0x420952
test esi, esi
jl 0x420952
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 0x18]
cmp edx, ecx
jge 0x420952
mov eax, dword [eax + 0x1c]
cmp esi, eax
jge 0x420952
sub eax, esi
dec eax
imul eax, ecx
add eax, edx
mov edx, dword [esp + 0x9c]
mov ecx, dword [edx]
mov esi, dword [ecx + eax*4]
jmp 0x420954
xor esi, esi
test edi, edi
jl 0x420979
test ebp, ebp
jl 0x420979
mov ecx, dword [ebx + 0x18]
cmp edi, ecx
jge 0x420979
mov eax, dword [ebx + 0x1c]
cmp ebp, eax
jge 0x420979
mov edx, dword [ebx]
sub eax, ebp
dec eax
imul eax, ecx
add eax, edi
mov eax, dword [edx + eax*4]
jmp 0x42097b
mov eax, esi
mov dword [esp + 0x68], eax
lea edx, [ebp + 1]
test edi, edi
jl 0x4209a7
test edx, edx
jl 0x4209a7
mov ecx, dword [ebx + 0x18]
cmp edi, ecx
jge 0x4209a7
mov eax, dword [ebx + 0x1c]
cmp edx, eax
jge 0x4209a7
sub eax, edx
dec eax
imul eax, ecx
mov ecx, dword [ebx]
add eax, edi
mov eax, dword [ecx + eax*4]
jmp 0x4209a9
mov eax, esi
lea ecx, [edi + 1]
mov dword [esp + 0x6c], eax
test ecx, ecx
jl 0x4209d5
test ebp, ebp
jl 0x4209d5
mov edi, dword [ebx + 0x18]
cmp ecx, edi
jge 0x4209d5
mov eax, dword [ebx + 0x1c]
cmp ebp, eax
jge 0x4209d5
sub eax, ebp
dec eax
imul eax, edi
mov edi, dword [ebx]
add eax, ecx
mov eax, dword [edi + eax*4]
jmp 0x4209d7
mov eax, esi
mov dword [esp + 0x70], eax
test ecx, ecx
jl 0x420a00
test edx, edx
jl 0x420a00
mov edi, dword [ebx + 0x18]
cmp ecx, edi
jge 0x420a00
mov eax, dword [ebx + 0x1c]
cmp edx, eax
jge 0x420a00
sub eax, edx
mov edx, dword [ebx]
dec eax
imul eax, edi
add eax, ecx
mov eax, dword [edx + eax*4]
jmp 0x420a02
mov eax, esi
sub esp, 8
fxch st(1)
fstp dword [esp + 4]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
fstp dword [esp]
call fcn.0041ecd0
mov ecx, dword [esp + 0x40]
cmp ecx, 0xff
jae 0x420a87
mov edx, eax
and edx, 0xffff00ff
mov edi, esi
imul edx, ecx
and edi, 0xffff00ff
imul edi, dword [esp + 0x24]
add edx, edi
mov edi, eax
and edi, 0xff00
mov ebp, esi
imul edi, ecx
and ebp, 0xff00
imul ebp, dword [esp + 0x24]
add edi, ebp
xor edx, edi
mov edi, eax
and edi, 0xff00ff
and esi, 0xff00ff
imul edi, ecx
imul esi, dword [esp + 0x24]
and edx, 0xff0000
add edi, esi
xor edx, edi
shr edx, 8
and eax, 0xff000000
or eax, edx
mov edi, dword [esp + 0x2c]
test edi, edi
jl 0x420abc
cmp dword [esp + 0x1c], 0
jl 0x420abc
mov esi, dword [esp + 0x9c]
mov edx, dword [esi + 0x18]
cmp edi, edx
jge 0x420abc
mov ecx, dword [esi + 0x1c]
cmp dword [esp + 0x1c], ecx
jge 0x420abc
sub ecx, dword [esp + 0x1c]
dec ecx
imul ecx, edx
mov edx, dword [esi]
add ecx, edi
mov dword [edx + ecx*4], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
jl 0x42082c
mov eax, dword [esp + 0x10]
inc eax
inc esi
cmp eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], esi
jl 0x4207d0
pop edi
pop esi
pop ebp
add esp, 0x8c
ret 0x1c