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

Disassembly:
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub esp, 0x84
cmp dword [ebx + 0x24], 0
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xa0]
jle 0x42062c
fld dword [ebx + 0x28]
lea edx, [esi + eax]
push edx
fstp dword [esp + 0x14]
lea edx, [edi + ecx]
push edx
push eax
push ecx
lea eax, [esp + 0x90]
push eax
call dword [0x435258]
fld dword [esp + 0x10]
call fcn.00431580
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 0x28]
fld dword [esp + 0x10]
call fcn.00431450
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
mov eax, edi
cdq
fstp dword [esp + 0x2c]
sub eax, edx
mov edi, eax
mov eax, esi
cdq
sar edi, 1
sub dword [esp + 0x98], edi
sub eax, edx
mov dword [esp + 0xa0], edi
mov esi, eax
sar esi, 1
fild dword [esp + 0xa0]
mov dword [esp + 0xa4], esi
sub ebp, esi
fstp dword [esp + 0x30]
fild dword [esp + 0xa4]
fstp dword [esp + 0x34]
fld dword [esp + 0x30]
fld dword [esp + 0x34]
call fcn.0043167a
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
mov ecx, edi
fstp dword [esp + 0x24]
mov edx, esi
imul ecx, edi
fld dword [esp + 0x24]
fld st(0)
fld dword [esp + 0x10]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
sub esp, 8
imul edx, esi
fstp dword [esp + 4]
fsubrp st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp]
add ecx, edx
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
call fcn.00431350
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
push ecx
lea edi, [esp + 0x6c]
fstp dword [esp]
call fcn.0041f090
mov eax, dword [ebx + 0x24]
inc eax
mov ecx, 0x100
sub ecx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x6c]
jge 0x42062c
add eax, ebp
add eax, esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x24]
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
mov esi, eax
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov dword [esp + 0x20], eax
fld st(0)
fmul dword [esp + 0x2c]
fstp dword [esp + 0x38]
fmul dword [esp + 0x28]
fstp dword [esp + 0x40]
jge 0x420615
fild dword [esp + 0xa8]
fstp dword [esp + 0x3c]
fild dword [esp + 0xac]
fstp dword [esp + 0x44]
fild dword [esp + 0x20]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld st(0)
fmul dword [esp + 0x28]
fadd dword [esp + 0x38]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x18]
fld dword [esp + 0x2c]
fmulp st(1)
fsubr dword [esp + 0x40]
fadd dword [esp + 0x44]
fstp dword [esp + 0x14]
fld dword [esp + 0x30]
fadd dword [esp + 0x18]
fst qword [esp + 0x50]
call fcn.004312a0
fld dword [esp + 0x34]
mov edi, eax
fadd dword [esp + 0x14]
mov dword [esp + 0x18], edi
fst qword [esp + 0x58]
call fcn.004312a0
mov ebp, eax
push ebp
push edi
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x54], ebp
call dword [0x435254]
test eax, eax
je 0x420602
fild dword [esp + 0x18]
fsubr qword [esp + 0x50]
fstp dword [esp + 0x14]
fild dword [esp + 0x48]
fsubr qword [esp + 0x58]
fstp dword [esp + 0x18]
fldz
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x42042c
fadd qword [0x4388e0]
dec edi
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 5
jp 0x42044e
fxch st(1)
dec ebp
fadd qword [0x4388e0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fxch st(1)
mov ecx, dword [esp + 0x98]
lea edx, [esi + ecx]
add edx, dword [esp + 0xa0]
mov dword [esp + 0x48], edx
js 0x420498
mov esi, dword [esp + 0x10]
test esi, esi
jl 0x420498
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x18]
cmp edx, ecx
jge 0x420498
mov eax, dword [eax + 0x1c]
cmp esi, eax
jge 0x420498
sub eax, esi
dec eax
imul eax, ecx
add eax, edx
mov edx, dword [esp + 0x94]
mov ecx, dword [edx]
mov esi, dword [ecx + eax*4]
jmp 0x42049a
xor esi, esi
test edi, edi
jl 0x4204bf
test ebp, ebp
jl 0x4204bf
mov ecx, dword [ebx + 0x18]
cmp edi, ecx
jge 0x4204bf
mov eax, dword [ebx + 0x1c]
cmp ebp, eax
jge 0x4204bf
mov edx, dword [ebx]
sub eax, ebp
dec eax
imul eax, ecx
add eax, edi
mov eax, dword [edx + eax*4]
jmp 0x4204c1
mov eax, esi
mov dword [esp + 0x70], eax
lea edx, [ebp + 1]
test edi, edi
jl 0x4204ed
test edx, edx
jl 0x4204ed
mov ecx, dword [ebx + 0x18]
cmp edi, ecx
jge 0x4204ed
mov eax, dword [ebx + 0x1c]
cmp edx, eax
jge 0x4204ed
sub eax, edx
dec eax
imul eax, ecx
mov ecx, dword [ebx]
add eax, edi
mov eax, dword [ecx + eax*4]
jmp 0x4204ef
mov eax, esi
lea ecx, [edi + 1]
mov dword [esp + 0x74], eax
test ecx, ecx
jl 0x42051b
test ebp, ebp
jl 0x42051b
mov edi, dword [ebx + 0x18]
cmp ecx, edi
jge 0x42051b
mov eax, dword [ebx + 0x1c]
cmp ebp, eax
jge 0x42051b
sub eax, ebp
dec eax
imul eax, edi
mov edi, dword [ebx]
add eax, ecx
mov eax, dword [edi + eax*4]
jmp 0x42051d
mov eax, esi
mov dword [esp + 0x78], eax
test ecx, ecx
jl 0x420546
test edx, edx
jl 0x420546
mov edi, dword [ebx + 0x18]
cmp ecx, edi
jge 0x420546
mov eax, dword [ebx + 0x1c]
cmp edx, eax
jge 0x420546
sub eax, edx
mov edx, dword [ebx]
dec eax
imul eax, edi
add eax, ecx
mov eax, dword [edx + eax*4]
jmp 0x420548
mov eax, esi
sub esp, 8
fxch st(1)
fstp dword [esp + 4]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
fstp dword [esp]
call fcn.0041ecd0
mov ecx, dword [esp + 0x4c]
cmp ecx, 0xff
jae 0x4205d0
mov edx, eax
and edx, 0xffff00ff
mov edi, esi
imul edx, ecx
and edi, 0xffff00ff
imul edi, dword [esp + 0x1c]
add edx, edi
mov edi, eax
and edi, 0xff00
mov ebp, esi
imul edi, ecx
and ebp, 0xff00
imul ebp, dword [esp + 0x1c]
add edi, ebp
xor edx, edi
mov edi, eax
and edi, 0xff00ff
and esi, 0xff00ff
imul edi, ecx
imul esi, dword [esp + 0x1c]
and edx, 0xff0000
add edi, esi
xor edx, edi
shr edx, 8
and eax, 0xff000000
or eax, edx
mov ebp, dword [esp + 0x48]
test ebp, ebp
jl 0x420602
mov edi, dword [esp + 0x10]
test edi, edi
jl 0x420602
mov esi, dword [esp + 0x94]
mov edx, dword [esi + 0x18]
cmp ebp, edx
jge 0x420602
mov ecx, dword [esi + 0x1c]
cmp edi, ecx
jge 0x420602
sub ecx, edi
dec ecx
imul ecx, edx
mov edx, dword [esi]
add ecx, ebp
mov dword [edx + ecx*4], eax
mov esi, dword [esp + 0x20]
inc esi
cmp esi, dword [esp + 0x64]
mov dword [esp + 0x20], esi
jl 0x420380
mov eax, dword [esp + 0x24]
inc dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
jl 0x420338
pop edi
pop esi
pop ebp
add esp, 0x84
ret 0x1c