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

Disassembly:
sub esp, 0x2f8
push ebx
push ebp
mov ebp, dword [esp + 0x304]
cmp dword [ebp + 0x22c], 1
push esi
push edi
jne 0x41f56e
fldz
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
fst dword [esp + 0x7c]
fst dword [esp + 0x78]
mov ecx, dword [eax + 0x13948]
fst dword [esp + 0x74]
mov dword [esp + 0x18], ecx
fst dword [esp + 0x70]
mov edx, dword [eax + 0x1394c]
fst dword [esp + 0x6c]
xor esi, esi
fst dword [esp + 0x68]
mov dword [esp + 0x1c], edx
fst dword [esp + 0x64]
fst dword [esp + 0x60]
fst dword [esp + 0x5c]
fst dword [esp + 0x58]
fst dword [esp + 0x54]
fst dword [esp + 0x50]
fst dword [esp + 0x4c]
fst dword [esp + 0x48]
fst dword [esp + 0x44]
fst dword [esp + 0x40]
fst dword [esp + 0xbc]
fst dword [esp + 0xb8]
fst dword [esp + 0xb4]
fst dword [esp + 0xb0]
fst dword [esp + 0xac]
fst dword [esp + 0xa8]
fst dword [esp + 0xa4]
fst dword [esp + 0xa0]
fst dword [esp + 0x9c]
fst dword [esp + 0x98]
fst dword [esp + 0x94]
fst dword [esp + 0x90]
fst dword [esp + 0x8c]
fst dword [esp + 0x88]
fst dword [esp + 0x84]
fstp dword [esp + 0x80]
fild dword [esp + 0x18]
fdiv qword [0x657590]
fstp dword [esp + 0x14]
cmp dword [ebp + 0x230], esi
je 0x41f2e8
xor ebx, ebx
cmp dword [ebp + 0x350], esi
jle 0x41f56e
mov dword [esp + 0x20], esi
jmp 0x41f140
fld dword [esp + 0x14]
sub esp, 0xc
fld1
lea eax, [esp + 0x294]
fstp dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.0045bdf8
add esp, 0x10
lea ecx, [esp + 0x40]
call fcn.00401d00
fldz
mov ecx, dword [ebp + 0x34c]
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [ecx + esi]
fld dword [eax + 4]
lea edx, [esp + 0x194]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fmul dword [eax]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push edx
call fcn.0045bd91
add esp, 0x10
lea ecx, [esp + 0x80]
call fcn.00401d00
mov eax, dword [ebp + 0x34c]
mov edx, dword [eax + esi + 8]
lea ecx, [eax + esi + 8]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x657fe0]
call fcn.005faf10
mov ecx, dword [ebp + 0x34c]
mov edx, dword [ecx + esi + 8]
lea ecx, [ecx + esi + 8]
mov edi, eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x657fe0]
call fcn.005faf10
mov ecx, dword [ebp + 0x34c]
mov edx, dword [ecx + esi + 8]
lea ecx, [ecx + esi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x657fe0]
call fcn.005faf10
mov ecx, dword [ebp + 0x34c]
mov edx, dword [ecx + esi + 8]
lea ecx, [ecx + esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x657fe0]
call fcn.005faf10
xor ecx, ecx
push ebx
push ecx
movzx ecx, byte [esp + 0x2c]
shl edi, 8
or ecx, edi
shl ecx, 8
movzx edx, byte [esp + 0x20]
fldz
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
push ecx
sub esp, 8
lea ecx, [esp + 0x94]
lea eax, [esp + 0x11c]
fst dword [esp + 4]
lea edx, [esp + 0x54]
fstp dword [esp]
push ecx
call fcn.00401200
push eax
lea eax, [ebp + 0x33c]
call fcn.00491dca
mov edi, dword [ebp + 0x29c]
add edi, dword [esp + 0x20]
call fcn.00455b70
add dword [esp + 0x20], 0x84
inc ebx
add esi, 0x28
cmp ebx, dword [ebp + 0x350]
jl 0x41f140
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2f8
ret 4
mov edx, dword [ebp + 0x358]
mov eax, dword [edx + 4]
lea ecx, [ebp + 0x358]
call eax
mov ecx, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ecx + 8]
add eax, 0xe7090
mov eax, dword [eax + 8]
cmp eax, esi
je 0x41f312
mov eax, dword [eax + 0xc]
jmp 0x41f314
xor eax, eax
lea edi, [esp + 0x18]
mov esi, eax
call fcn.00460759
fldz
mov edx, dword [ebp + 8]
fst dword [esp + 0x28]
mov eax, dword [edx + 8]
fstp dword [esp + 0x2c]
fild dword [esp + 0x18]
add eax, 0xe7090
mov eax, dword [eax + 8]
xor edi, edi
fstp dword [esp + 0x30]
fild dword [esp + 0x1c]
fstp dword [esp + 0x34]
cmp eax, edi
je 0x41f352
mov esi, dword [eax + 0xc]
jmp 0x41f354
xor esi, esi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
shl ebx, 0x18
mov dword [eax + 8], ecx
push ebx
mov dword [eax + 0xc], edx
call fcn.00498c5a
mov eax, dword [ebp + 0x434]
mov edx, dword [eax + 4]
lea ecx, [ebp + 0x434]
add esp, 0x14
call edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, dword [ebp + 0x370]
mov edx, dword [eax + 0x1c]
fdiv qword [0x657508]
lea esi, [ebp + 0x370]
lea ecx, [esp + 0xc0]
push ecx
mov ecx, esi
fstp dword [esp + 0x1c]
call edx
fld1
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0xdc]
fld dword [esp + 0x2c]
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.0045be8d
fld1
add esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x20]
lea ecx, [esp + 0x214]
fst dword [esp + 4]
fstp dword [esp]
push ecx
call fcn.0045bdf8
add esp, 0x10
lea ecx, [esp + 0x40]
call fcn.00401d00
fldz
mov edx, dword [ebp + 0x41c]
mov eax, dword [edx + 4]
sub esp, 8
fstp dword [esp + 4]
lea ecx, [ebp + 0x41c]
fld dword [esp + 0x1c]
fmul qword [0x657fd8]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
call eax
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x154]
fmul dword [esp + 0x20]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push ecx
call fcn.0045bd91
add esp, 0x10
lea ecx, [esp + 0x80]
call fcn.00401d00
mov edx, dword [ebp + 0x404]
lea ecx, [ebp + 0x404]
mov eax, dword [edx + 4]
call eax
fldz
mov ecx, eax
mov ebx, dword [esi]
shl eax, 8
and ecx, 0xff
or eax, ecx
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
push eax
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x8c]
fstp dword [esp]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x1dc]
lea edx, [esp + 0xdc]
call fcn.00401200
mov edx, eax
lea eax, [esp + 0x258]
call fcn.00401200
push eax
mov eax, dword [ebx + 0x5c]
mov ecx, esi
call eax
cmp dword [ebp + 0x350], edi
mov dword [esp + 0x20], edi
jle 0x41f56e
mov dword [esp + 0x14], edi
mov ecx, dword [ebp + 0x29c]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x38]
push eax
call edx
fld1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
sub esp, 0xc
fstp dword [esp + 8]
lea edx, [esp + 0x2dc]
fld dword [0x657fd0]
fst dword [esp + 4]
fstp dword [esp]
push edx
call fcn.0045be8d
mov ebx, dword [ebp + 0x29c]
sub esp, 0x28
mov esi, eax
mov edi, esp
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x54]
add ebx, esi
call fcn.00455bb0
mov eax, dword [esp + 0x20]
inc eax
add esi, 0x84
cmp eax, dword [ebp + 0x350]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
jl 0x41f4f3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2f8
ret 4