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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c2a86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x14]
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x405c28
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x405c28
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ecx + 0x18]
jmp 0x405c2b
fld qword [ecx + 0x18]
fld qword [ebp + 0x24]
fadd st(0), st(0)
mov ebx, dword [ebp + 0x18]
xor edi, edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x98], edi
fstp qword [esp + 0x14]
fadd qword [esp + 0x14]
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], 0x403e0000
fmul qword [ebx + 0x98]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x1c], 0x5e2890
mov dword [esp + 0x20], edi
fsub qword [0x5e2888]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
fstp qword [esp + 0x80]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xb8], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0x403b0000
fild dword [eax]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x40], edi
cmp ecx, edi
mov dword [esp + 0x44], 0x4058c000
fstp qword [esp + 0x30]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov esi, 1
mov dword [esp + 0x10], edi
jle 0x405eb2
jmp 0x405cf0
mov edi, dword [esp + 0x10]
call sub.etinfo.dll_int___cdecl_mgUserCancel_void_
test eax, eax
jne 0x405e9b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + edi*8 + 4]
push edx
mov eax, dword [ecx + edi*8]
mov ecx, dword [ebx + 0x90]
push eax
add ecx, 0x2e0
call fcn.004df0a0
mov ecx, dword [ebx + 0x90]
add ecx, 0x2e0
call fcn.004dfab0
mov ecx, eax
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x405d64
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x405d64
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ecx + 0x18]
jmp 0x405d67
fld qword [ecx + 0x18]
fld qword [esp + 0x14]
mov ecx, dword [ebp + 0x20]
push ebx
push 0x4027f0
push 0x4027c0
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
fadd st(1)
push 0x402720
mov ecx, 8
sub esp, 0x20
lea esi, [esp + 0x60]
fmul qword [ebx + 0x98]
mov edi, esp
sub esp, 0x60
rep movsd dword es:[edi], dword [esi]
fstp qword [esp + 0xe0]
fstp st(0)
mov ecx, 0x18
lea esi, [esp + 0xe0]
mov edi, esp
push eax
mov eax, dword [ebx + 0x80]
push edx
mov edx, dword [ebp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x38]
push ecx
push edx
push eax
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [ebx + 0x58]
push 0
push 0
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebx + 0x54]
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x16c]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.004abd30
mov esi, eax
add esp, 0xdc
cmp esi, 1
jne 0x405ec9
mov ecx, ebx
call fcn.00402330
fld qword [ebp + 0x24]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x40
je 0x405e40
fld qword [ebp + 0x2c]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x40
jne 0x405e62
fld qword [ebp + 0x24]
sub esp, 8
lea ecx, [ebx + 0x3c]
fchs
fstp qword [esp]
fld qword [ebp + 0x2c]
sub esp, 8
fchs
fstp qword [esp]
push ecx
call fcn.004f0c50
add esp, 0x14
mov ecx, dword [ebx + 0x90]
call fcn.0043d980
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
inc eax
mov ecx, dword [edx + 0x20]
mov dword [esp + 0x10], eax
cmp eax, ecx
jl 0x405cec
mov eax, esi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xb0]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret