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

Disassembly:
mov edx, dword [ebx + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub esp, 0x8c
cmp edx, 0xff
push ebp
mov ebp, dword [esp + 0xa4]
push esi
push edi
jl 0x41fdc8
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0xac]
push ebp
push eax
mov eax, dword [esp + 0xac]
push ecx
push edx
push ebx
push eax
call fcn.0041f170
pop edi
pop esi
pop ebp
add esp, 0x8c
ret 0x1c
test edx, edx
jle 0x4201d3
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 + 0x44]
fld dword [ebx + 0x30]
push edx
push eax
fstp dword [esp + 0x44]
push ecx
lea eax, [esp + 0x98]
push eax
call dword [0x435258]
fld dword [esp + 0x18]
call fcn.00431580
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x18]
call fcn.00431450
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fild dword [esp + 0xa8]
fmul dword [esp + 0x38]
call fcn.004312a0
fild dword [esp + 0xac]
cdq
sub eax, edx
fmul dword [esp + 0x40]
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 + 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]
cmp eax, dword [esp + 0x6c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
jge 0x4201d3
mov ecx, dword [esp + 0xa4]
lea esi, [eax + ecx]
add esi, ebp
mov dword [esp + 0x10], esi
fild dword [esp + 0x24]
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
mov dword [esp + 0x18], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x5c]
fmul dword [esp + 0x3c]
fstp dword [esp + 0x50]
jge 0x4201bb
fild dword [esp + 0xb0]
fstp dword [esp + 0x58]
fild dword [esp + 0xb4]
fstp dword [esp + 0x54]
fild dword [esp + 0xa8]
fstp dword [esp + 0x44]
fild dword [esp + 0xac]
fstp dword [esp + 0x48]
fild dword [esp + 0x18]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
fmul dword [esp + 0x3c]
fadd dword [esp + 0x5c]
fdiv dword [esp + 0x40]
fadd dword [esp + 0x58]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fmulp st(1)
fsubr dword [esp + 0x50]
fdiv dword [esp + 0x38]
fadd dword [esp + 0x54]
fstp dword [esp + 0x28]
fld dword [esp + 0x44]
fadd dword [esp + 0x14]
fst qword [esp + 0x80]
call fcn.004312a0
fld dword [esp + 0x48]
mov ebp, eax
fadd dword [esp + 0x28]
mov dword [esp + 0x20], ebp
fst qword [esp + 0x28]
call fcn.004312a0
mov edi, eax
push edi
push ebp
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x20], edi
call dword [0x435254]
test eax, eax
je 0x4201a8
fild dword [esp + 0x20]
fsubr qword [esp + 0x80]
fstp dword [esp + 0x20]
fild dword [esp + 0x14]
fsubr qword [esp + 0x28]
fstp dword [esp + 0x28]
fldz
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x420054
fadd qword [0x4388e0]
dec ebp
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld dword [esp + 0x28]
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 5
jp 0x42007a
fxch st(1)
dec edi
fadd qword [0x4388e0]
mov dword [esp + 0x14], edi
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fxch st(1)
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x18]
add ecx, eax
add ecx, dword [esp + 0xa8]
js 0x4201a4
test esi, esi
jl 0x4201a4
mov edx, dword [esp + 0x9c]
cmp ecx, dword [edx + 0x18]
jge 0x4201a4
mov eax, dword [edx + 0x1c]
cmp esi, eax
jge 0x4201a4
sub eax, esi
dec eax
imul eax, dword [edx + 0x18]
mov edx, dword [edx]
add eax, ecx
mov esi, dword [edx + eax*4]
lea eax, [edx + eax*4]
mov dword [esp + 0x28], eax
test esi, esi
jbe 0x4201a0
push ebp
mov eax, esi
mov edx, edi
mov ecx, ebx
call fcn.0041eec0
mov dword [esp + 0x70], eax
inc edi
push ebp
mov eax, esi
mov edx, edi
mov ecx, ebx
call fcn.0041eec0
mov edx, dword [esp + 0x14]
mov dword [esp + 0x74], eax
inc ebp
push ebp
mov eax, esi
mov ecx, ebx
call fcn.0041eec0
mov dword [esp + 0x78], eax
push ebp
mov eax, esi
mov edx, edi
mov ecx, ebx
call fcn.0041eec0
fxch st(1)
sub esp, 8
fstp dword [esp + 4]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
fstp dword [esp]
call fcn.0041eb50
mov ecx, dword [esp + 0x4c]
mov edx, eax
and edx, 0xffff00ff
imul edx, ecx
mov edi, esi
and edi, 0xffff00ff
imul edi, dword [esp + 0x34]
add edx, edi
mov edi, eax
mov ebp, esi
and eax, 0xff00ff
imul eax, ecx
and edi, 0xff00
imul edi, ecx
and ebp, 0xff00
imul ebp, dword [esp + 0x34]
mov ecx, esi
and ecx, 0xff00ff
imul ecx, dword [esp + 0x34]
add edi, ebp
xor edx, edi
and edx, 0xff0000
add eax, ecx
xor edx, eax
mov eax, dword [esp + 0x28]
and esi, 0xff000000
shr edx, 8
or edx, esi
mov esi, dword [esp + 0x10]
mov dword [eax], edx
jmp 0x4201a8
mov esi, dword [esp + 0x10]
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x64]
mov dword [esp + 0x18], eax
jl 0x41ff9a
mov eax, dword [esp + 0x24]
inc eax
inc esi
cmp eax, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
jl 0x41ff3e
pop edi
pop esi
pop ebp
add esp, 0x8c
ret 0x1c