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

Disassembly:
sub esp, 0x74
mov dword [esp], ecx
push ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 3
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
push esi
push edi
push ebp
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], 0
shl ecx, 5
add eax, ecx
mov dword [esp + 0x3c], eax
nop
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x18]
mov ebx, dword [eax + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [esp + 0x20]
push ecx
mov edx, dword [esp + 0x28]
push ebx
mov dword [esp + 0x24], ecx
push eax
mov ecx, dword [esp + 0x1c]
push edi
push edx
push esi
call fcn.00404710
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
push ecx
fild dword [esp + 0x70]
mov eax, dword [esp + 0x28]
push ebx
mov ecx, dword [esp + 0x18]
push edx
push edi
push eax
fstp qword [esp + 0x78]
push esi
push 0
call fcn.004047e0
fstp qword [esp + 0x7c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push ecx
push ebx
push edx
push edi
push eax
mov ecx, dword [esp + 0x24]
push esi
push 1
call fcn.004047e0
fstp qword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push edx
push edi
push eax
lea ebp, [edi + 1]
push esi
push 2
call fcn.004047e0
fstp qword [esp + 0x6c]
cmp dword [esp + 0x20], ebp
jle 0x4050db
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push ebp
push edi
push ecx
push esi
mov ecx, dword [esp + 0x28]
push 0
call fcn.004047e0
fstp qword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ecx
push ebx
mov ecx, dword [esp + 0x18]
push ebp
push edi
push edx
push esi
push 1
call fcn.004047e0
fstp qword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ecx
push ebx
mov ecx, dword [esp + 0x18]
push ebp
push edi
push edx
push esi
push 2
call fcn.004047e0
fld st(0)
fmul st(1)
fxch st(1)
fsubr qword [esp + 0x6c]
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
fxch st(1)
faddp st(3)
fxch st(1)
fmul st(0), st(0)
fld qword [esp + 0x74]
fsub qword [esp + 0x14]
fxch st(2)
faddp st(3)
fld qword [esp + 0x7c]
fsub qword [esp + 0x28]
fxch st(2)
fmul st(0), st(0)
fxch st(3)
fstp qword [esp + 0x30]
faddp st(2)
fmul st(0), st(0)
mov ecx, dword [esp + 0x1c]
push ecx
faddp st(1)
fstp qword [esp + 0x18]
push ebx
mov edx, dword [esp + 0x2c]
push ebp
mov ecx, dword [esp + 0x1c]
push edi
push edx
push esi
call fcn.00404710
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fcom qword [0x4d4128]
fstp qword [esp + 0x40]
fnstsw ax
test ah, 0x40
je 0x405018
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x405024
fld qword [esp + 0x30]
fdiv qword [esp + 0x40]
fstp qword [esp + 0x28]
fld qword [esp + 0x40]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 0x40
je 0x405045
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jmp 0x405055
fld qword [esp + 0x64]
fsub qword [esp + 0x40]
fdivr qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
and eax, 0x7fffffff
or eax, ecx
fstp qword [esp + 0x30]
je 0x4050ce
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
and eax, 0x7fffffff
or eax, ecx
je 0x4050ce
fld qword [esp + 0x30]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x4050ce
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], 1
mov dword [esp + 0x50], edx
inc ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
jg 0x404f39
lea ebp, [esi + 1]
mov eax, dword [esp + 0x24]
cmp eax, ebp
jle 0x405290
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ebx
push ecx
push edi
mov ecx, dword [esp + 0x20]
push ebp
push esi
call fcn.00404710
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
push ecx
fild dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push ebx
push edx
push edi
push ebp
push esi
fstp qword [esp + 0x58]
push 0
call fcn.004047e0
fstp qword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push ebx
mov ecx, dword [esp + 0x18]
push edx
push edi
push ebp
push esi
push 1
call fcn.004047e0
fstp qword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push ebx
mov ecx, dword [esp + 0x18]
push edx
push edi
push ebp
push esi
push 2
call fcn.004047e0
fld st(0)
fmul st(1)
fxch st(1)
fsubr qword [esp + 0x6c]
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
fxch st(1)
faddp st(3)
fxch st(1)
fmul st(0), st(0)
fld qword [esp + 0x74]
fsub qword [esp + 0x14]
fxch st(2)
faddp st(3)
fld qword [esp + 0x7c]
fsub qword [esp + 0x28]
fxch st(2)
fmul st(0), st(0)
fxch st(3)
fstp qword [esp + 0x30]
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp qword [esp + 0x14]
mov eax, dword [esp + 0x44]
and eax, 0x7fffffff
mov ecx, dword [esp + 0x40]
or eax, ecx
jne 0x4051cd
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x4051d9
fld qword [esp + 0x30]
fdiv qword [esp + 0x40]
fstp qword [esp + 0x28]
fld qword [esp + 0x40]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 0x40
je 0x4051fa
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jmp 0x40520a
fld qword [esp + 0x64]
fsub qword [esp + 0x40]
fdivr qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
and eax, 0x7fffffff
or eax, ecx
fstp qword [esp + 0x30]
je 0x405283
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
and eax, 0x7fffffff
or eax, ecx
je 0x405283
fld qword [esp + 0x30]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x405283
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x50], edx
inc ebp
mov eax, dword [esp + 0x24]
cmp eax, ebp
jg 0x4050ea
lea ebp, [ebx + 1]
mov eax, dword [esp + 0x1c]
cmp ebp, eax
jge 0x405441
mov eax, dword [esp + 0x20]
push ebp
mov ecx, dword [esp + 0x28]
push ebx
push eax
push edi
push ecx
push esi
mov ecx, dword [esp + 0x28]
push 0
call fcn.004047e0
fstp qword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push ebp
mov edx, dword [esp + 0x28]
push ebx
push ecx
push edi
mov ecx, dword [esp + 0x20]
push edx
push esi
push 1
call fcn.004047e0
fstp qword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push ebp
mov edx, dword [esp + 0x28]
push ebx
push ecx
push edi
mov ecx, dword [esp + 0x20]
push edx
push esi
push 2
call fcn.004047e0
fld st(0)
fmul st(1)
fxch st(1)
fsubr qword [esp + 0x6c]
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
fxch st(1)
faddp st(3)
fxch st(1)
fmul st(0), st(0)
fld qword [esp + 0x74]
fsub qword [esp + 0x14]
fxch st(2)
faddp st(3)
fld qword [esp + 0x7c]
fsub qword [esp + 0x28]
fxch st(2)
fmul st(0), st(0)
fxch st(3)
fstp qword [esp + 0x30]
faddp st(2)
fmul st(0), st(0)
push ebp
push ebx
faddp st(1)
fstp qword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push ecx
push edi
mov ecx, dword [esp + 0x20]
push edx
push esi
call fcn.00404710
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fcom qword [0x4d4128]
fstp qword [esp + 0x40]
fnstsw ax
test ah, 0x40
je 0x40537e
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x40538a
fld qword [esp + 0x30]
fdiv qword [esp + 0x40]
fstp qword [esp + 0x28]
fld qword [esp + 0x40]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 0x40
je 0x4053ab
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jmp 0x4053bb
fld qword [esp + 0x64]
fsub qword [esp + 0x40]
fdivr qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
and eax, 0x7fffffff
or eax, ecx
fstp qword [esp + 0x30]
je 0x405434
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
and eax, 0x7fffffff
or eax, ecx
je 0x405434
fld qword [esp + 0x30]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x405434
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], 2
mov dword [esp + 0x50], edx
inc ebp
mov eax, dword [esp + 0x1c]
cmp ebp, eax
jl 0x40529f
mov eax, dword [esp + 0x60]
cmp eax, 3
ja case.default.0x40544e
jmp dword [eax*4 + 0x4055b4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x50]
push ebx
push ecx
push edi
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x9c]
push esi
push eax
push ecx
mov ecx, dword [esp + 0x30]
push edx
call fcn.00404de0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push ecx
push ebx
push edx
mov ecx, dword [esp + 0x60]
push edi
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x4c]
inc eax
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00404d50
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x74
ret 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
push ebx
push ecx
push edi
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x9c]
push esi
push eax
push ecx
mov ecx, dword [esp + 0x30]
push edx
call fcn.00404de0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
push ecx
push ebx
inc eax
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x24]
push esi
push edx
push eax
call fcn.00404d50
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x74
ret 4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
push ebx
push ecx
push edi
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x9c]
push esi
push eax
push ecx
mov ecx, dword [esp + 0x30]
push edx
call fcn.00404de0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
push ecx
inc eax
mov ecx, dword [esp + 0x24]
push eax
mov edx, dword [esp + 0x2c]
push ecx
mov eax, dword [esp + 0x60]
push edi
mov ecx, dword [esp + 0x60]
push edx
push esi
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00404d50
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x74
ret 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
push ebx
push ecx
push edi
fld qword [eax + 0x28]
fchs
mov ecx, dword [esp + 0x98]
push edx
push esi
sub esp, 8
fstp qword [esp]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00404de0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x74
ret 4