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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41fb22
sub esp, 0x44
mov eax, dword [esp + 0x48]
test byte [eax], al
movzx ecx, byte [esp + 0x4c]
test cl, cl
je 0x41f8c3
lea ecx, [eax + 0x50]
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.00402c60
jmp 0x41f8f9
lea ecx, [eax + 0x68]
lea edx, [eax + 0x50]
mov dword [esp + 0x40], edx
mov dword [esp], ecx
call fcn.00402c40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x40]
mov dword [esp], edx
add eax, 0x100000
adc ecx, 0
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call fcn.00402c60
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.00402ab0
mov eax, dword [esp + 4]
test eax, eax
jge 0x41f91c
mov ecx, 0xffffffff
mov esi, 0xffffffff
jmp 0x41fa18
mov dword [esp + 0x20], eax
sar eax, 0x1f
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x48]
lea ebx, [edx + 0x80]
lea ebp, [edx + 0x90]
mov dword [esp + 0x40], ebp
mov dword [esp], ebx
call fcn.00402c40
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x40]
mov dword [esp], edx
call fcn.00402c40
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x98]
mov edx, dword [eax + 0x9c]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0x14]
add esi, ecx
mov edi, dword [esp + 0x1c]
adc edi, edx
add ebx, esi
adc edi, ebp
mov eax, dword [esp + 0x20]
mov esi, edx
mul ebx
mov ebp, dword [esp + 0x20]
imul edi, ebp
mov ebp, dword [esp + 0x2c]
imul ebp, ebx
add edx, ebp
add edx, edi
mov ebx, eax
shr eax, 1
mov ebp, eax
mov eax, 0xa3d70a3e
mov edi, edx
mul ebp
shr edx, 5
mov dword [esp + 0x28], edx
mov eax, edi
shr edi, 1
mov ebp, eax
mov eax, 0xa3d70a3e
mul edi
shr edx, 5
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x28]
imul edi, eax, 0x64
sub ebx, edi
imul edi, edx, 0x64
sub ebp, edi
mov edi, eax
mov eax, 0x28f5c28
mul ebp
mov dword [esp + 0x28], edx
lea ebp, [ebp + ebp*2]
shl ebp, 5
add ebx, ebp
shr ebx, 1
mov ebp, eax
mov eax, 0xa3d70a3e
mul ebx
shr edx, 5
add edi, 0
mov eax, dword [esp + 0x24]
adc eax, 0
add edi, ebp
mov ebx, dword [esp + 0x28]
adc eax, ebx
add edx, edi
adc eax, 0
add ecx, edx
adc esi, eax
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
cmp esi, ebx
xchg ebp, ebx
setb bl
xchg ebp, ebx
xchg edi, ebx
sete bl
xchg edi, ebx
cmp ecx, edx
setb al
and edi, eax
or ebp, edi
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x41fa45
mov ebx, esi
mov edx, ecx
mov eax, dword [esp + 0x48]
lea ecx, [eax + 0x48]
lea ebp, [eax + 0x80]
mov dword [esp + 0x40], ebp
lea esi, [eax + 0x90]
mov dword [esp + 0x3c], esi
lea edi, [eax + 0x18]
mov dword [esp + 0x38], edi
mov dword [esp], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
call fcn.00402c60
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00402c40
mov eax, dword [esp + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
call fcn.00402c40
movsd xmm0, qword [0x5c0074]
mov eax, dword [esp + 0x48]
mulsd xmm0, qword [eax + 0x20]
movsd xmm1, qword [0x5c002c]
mulsd xmm1, xmm0
movsd qword [esp + 0x30], xmm1
mov ecx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x10]
add ecx, ebp
mov ebp, dword [esp + 0x18]
adc eax, ebp
add edx, ecx
adc eax, ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0045ac00
movsd xmm0, qword [esp + 0x30]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.0045aae0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call fcn.00402c60
add esp, 0x44
ret
call fcn.0045faf0
jmp fcn.0041f880