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

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x41f729
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x41f734
call fcn.004232b0
mov dword [esp + 0x14], eax
mov ebx, eax
mov eax, dword [ebp + 0x24]
cmp eax, 1
jne 0x41f761
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov eax, dword [ebp]
push 0
push ebx
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x10]
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
pop ebp
pop ebx
add esp, 0x58
ret 0x18
cmp eax, 2
jne 0x41fbe6
mov eax, dword [ebp]
push edi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call dword [eax + 0x24]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
jne 0x41f791
fld qword [0x53d6d0]
pop edi
pop ebp
pop ebx
add esp, 0x58
ret 0x18
test byte [edi + 0x30], 4
mov ecx, dword [edi + 0x64]
je 0x41f7a7
movzx edx, word [edi + 0x2e]
mov eax, dword [esp + 0x2c]
lea eax, [eax + edx*2]
jmp 0x41f7af
movzx eax, word [edi + 0x2e]
add eax, dword [esp + 0x2c]
mov edx, dword [ebp]
add eax, 6
add eax, ecx
push esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x70]
push eax
push esi
mov ecx, ebp
call dword [edx + 0x28]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x41f7e3
fld qword [0x53d6d0]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x58
ret 0x18
cmp ebx, 8
mov dword [esp + 0x24], 0
jl 0x41f808
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x30]
test al, al
je 0x41f808
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x2c]
mov dword [esp + 0x24], eax
cmp ebx, 8
mov dword [esp + 0x28], 0
jl 0x41f838
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x34]
test eax, eax
je 0x41f838
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.00424900
mov dword [esp + 0x28], eax
cmp byte [edi + 0x6f], 0x4b
mov dword [esp + 0x14], 0x400
jne 0x41f84e
mov dword [esp + 0x14], 0x5000
mov eax, dword [esp + 0x78]
test eax, eax
je 0x41fa9f
push edi
call fcn.0045ef70
add esp, 4
test eax, eax
mov dword [esp + 0x40], eax
je 0x41fa9f
mov eax, dword [esp + 0x70]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], 0
jle 0x41fa84
mov dword [esp + 0x20], esi
lea esp, [esp]
mov ecx, dword [esp + 0x18]
mov di, word [ecx + ebx*2]
cmp di, 0xffff
je 0x41fa6c
mov eax, dword [esp + 0x38]
movzx edx, di
xor ecx, ecx
mov ch, byte [eax + edx*2 + 1]
lea eax, [eax + edx*2]
movzx edx, byte [eax]
or ecx, edx
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
test ecx, ecx
fstp dword [esp + 0x6c]
je 0x41f942
movzx edx, word [esi + 6]
lea eax, [esp + 0x34]
push eax
movzx eax, word [esi]
shl eax, 0x10
or edx, eax
push edx
mov dword [esp + 0x3c], 0
call fcn.00439e90
test eax, eax
mov eax, dword [esp + 0x34]
je 0x41f906
movsx ecx, ax
mov dword [esp + 0x3c], ecx
fild dword [esp + 0x3c]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x41f942
mov edx, dword [esp + 0x70]
dec edx
cmp ebx, edx
jne 0x41f942
neg eax
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x41f929
neg eax
mov ecx, eax
movsx eax, si
imul eax, ecx
movsx ecx, word [esp + 0x14]
cdq
idiv ecx
movsx edx, ax
mov eax, dword [esp + 0x74]
mov dword [eax], edx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x41f950
neg eax
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
movsx eax, word [esp + 0x14]
mov esi, dword [esp + 0x78]
fmul dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
mov ecx, dword [esi + 4]
fidiv dword [esp + 0x6c]
fstp dword [esp + 0x6c]
call fcn.0047ea70
mov ecx, eax
call fcn.0045ffa0
cmp eax, 1
jne 0x41fa37
test di, di
je 0x41fa37
mov edi, dword [esp + 0x20]
cmp word [edi], 0x20
je 0x41fa37
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x41f9ae
neg eax
fld qword [esp + 0x7c]
push 1
fadd dword [esp + 0x14]
lea ecx, [esp + 0x4c]
push ecx
push eax
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x54]
xor ecx, ecx
mov cx, word [eax + ebx*2]
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
push edx
xor edx, edx
mov dx, word [edi]
mov dword [esp + 0x5c], 0
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00460c00
add esi, 0x70
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x58], ecx
fld dword [esp + 0x58]
mov dword [esp + 0x50], edx
fdiv dword [esp + 0x50]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ecx
fmul dword [esp + 0x6c]
fld dword [esp + 0x60]
fmul dword [0x53e6f0]
faddp st(1)
jmp 0x41fa3b
fld dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
fiadd dword [esp + 0x28]
cmp eax, 7
jl 0x41fa64
mov edx, dword [esp + 0x2c]
test byte [edx + 0x30], 0x20
je 0x41fa64
fadd dword [0x53e6ec]
fmul dword [0x53e6e8]
fmul dword [0x53e6f0]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x70]
inc ebx
add esi, 6
cmp ebx, eax
mov dword [esp + 0x20], esi
jl 0x41f890
mov eax, dword [esp + 0x18]
push eax
call fcn.00439d00
fld dword [esp + 0x14]
add esp, 4
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x58
ret 0x18
mov eax, dword [esp + 0x70]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x6c], ebx
jle 0x41fbcb
mov dword [esp + 0x7c], esi
jmp 0x41fac0
mov ecx, dword [esp + 0x18]
mov ax, word [ecx + ebx*2]
cmp ax, 0xffff
je 0x41fbb7
movzx edx, ax
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov ch, byte [eax + edx*2 + 1]
lea eax, [eax + edx*2]
mov cl, byte [eax]
mov edi, ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41fb5d
movzx eax, word [esi + 6]
lea edx, [esp + 0x78]
push edx
movzx edx, word [esi]
shl edx, 0x10
or eax, edx
push eax
mov dword [esp + 0x80], 0
call fcn.00439e90
test eax, eax
mov eax, dword [esp + 0x78]
je 0x41fb1d
movsx ecx, ax
add edi, ecx
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x41fb5d
mov edx, dword [esp + 0x70]
dec edx
cmp ebx, edx
jne 0x41fb5d
neg eax
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x41fb40
neg eax
mov ecx, eax
movsx eax, si
imul eax, ecx
movsx ecx, word [esp + 0x14]
cdq
idiv ecx
mov esi, dword [esp + 0x7c]
movsx edx, ax
mov eax, dword [esp + 0x74]
mov dword [eax], edx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x41fb6b
neg eax
movsx ecx, word [esp + 0x14]
imul eax, edi
cdq
idiv ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add eax, edx
cmp ecx, 7
jl 0x41fbb3
mov edx, dword [esp + 0x2c]
test byte [edx + 0x30], 0x20
je 0x41fbb3
lea ecx, [eax + 0x13]
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x6c]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x6c], edx
jmp 0x41fbb7
add dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
inc ebx
add esi, 6
cmp ebx, eax
mov dword [esp + 0x7c], esi
jl 0x41fac0
mov eax, dword [esp + 0x18]
push eax
call fcn.00439d00
fild dword [esp + 0x70]
add esp, 4
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x58
ret 0x18
fld qword [0x53d6d0]
pop ebp
pop ebx
add esp, 0x58
ret 0x18