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

Disassembly:
sub esp, 0x98
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.00479c40
mov eax, dword [ebx]
mov ebp, 1
cmp word [eax + 0x36], bp
jne 0x419029
add eax, 0x38
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x30]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
call fcn.0041e610
jmp 0x419059
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.0041e7a0
add esp, 0xc
lea ecx, [esp + 0x2c]
push eax
call fcn.0041e610
lea ecx, [esp + 0x2c]
call fcn.0041e2c0
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xb8]
mov dword [edx], 0
mov dword [eax], 0
movsx esi, word [ecx + 0xc]
dec esi
mov dword [esp + 0x28], esi
js 0x41937f
test bp, bp
je 0x41937f
mov ecx, dword [esp + 0xb8]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x78]
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.004293f0
mov ecx, eax
call fcn.0043e0c0
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
fld dword [esp + 0x54]
mov edx, dword [eax + 4]
fcomp qword [0x5cb1a8]
mov eax, dword [eax + 8]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
fnstsw ax
test ah, 0x40
je 0x4190fe
fld dword [esp + 0x58]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x40
je 0x4190fe
mov ecx, dword [ebx]
cmp word [ecx + 0x34], 0
jne 0x4190fe
mov eax, 1
jmp 0x419100
xor eax, eax
mov edx, dword [esp + 0xcc]
mov edi, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0xc4]
push eax
lea eax, [esp + 0x1c]
push edi
push eax
mov eax, dword [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0xc4]
push edx
push eax
push ecx
mov ecx, dword [esp + 0xd8]
push esi
call fcn.00429430
mov ebp, eax
test bp, bp
je 0x419374
mov eax, dword [ebx]
cmp word [eax + 0x28], 8
jne 0x4191d4
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
push edx
lea ecx, [esp + 0x94]
push eax
push ecx
call fcn.0041e7a0
mov edx, dword [eax]
add esp, 0xc
mov dword [esp + 0x6c], edx
xor esi, esi
mov ecx, dword [eax + 4]
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x74], edx
jle 0x4191c2
mov eax, dword [ebx]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x6c]
mov eax, dword [eax + 0x54]
push eax
push ecx
push edx
push edi
call fcn.00419390
fadd dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 0x10
inc esi
add edi, 0xc
cmp esi, eax
fstp dword [esp + 0x10]
jl 0x419195
mov eax, dword [ebx]
fld dword [eax + 0x58]
fmul dword [esp + 0x10]
fstp dword [esp + 0x10]
jmp 0x419361
movsx eax, word [eax + 0x34]
sub eax, 0
je 0x419326
dec eax
je 0x41923a
dec eax
jne 0x419361
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jle 0x419361
mov esi, dword [esp + 0xc8]
mov ecx, esi
call fcn.0041e2e0
fstp dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0041e6f0
fsubr dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc edi
add esi, 0xc
cmp edi, eax
fmul dword [0x5cb2bc]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
jl 0x419200
jmp 0x419361
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jle 0x419361
mov esi, dword [esp + 0xc8]
mov edx, dword [ebx]
add edx, 0x44
mov eax, dword [edx]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov ecx, dword [edx + 4]
push eax
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x88]
mov edx, dword [edx + 8]
push esi
push ecx
mov dword [esp + 0x74], edx
call fcn.0041e890
mov edx, dword [eax]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 8]
mov eax, dword [ebx]
add eax, 0x44
mov dword [esp + 0x50], edx
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x54]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x3c]
mov eax, dword [eax + 8]
push edx
mov dword [esp + 0x64], eax
lea eax, [esp + 0xb0]
push eax
call fcn.0041e890
mov ecx, dword [eax]
add esp, 0x18
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x3c]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
call fcn.0041e2e0
fstp dword [esp + 0x38]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
call fcn.0041e6f0
fstp dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.0041e2e0
fdivr dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc edi
add esi, 0xc
cmp edi, eax
fsubr dword [esp + 0x38]
fmul dword [0x5cb2b8]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
jl 0x41924f
jmp 0x419361
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x419361
lea edx, [esp + 0x2c]
mov ecx, edi
push edx
call fcn.0041e6f0
fcom qword [0x5cb1a8]
fnstsw ax
test ah, 1
je 0x419353
fld dword [esp + 0x10]
fsub st(1)
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc esi
add edi, 0xc
cmp esi, eax
fstp st(0)
jl 0x419330
mov eax, dword [esp + 0xac]
mov esi, dword [esp + 0x28]
fld dword [esp + 0x10]
fadd dword [eax]
fstp dword [eax]
dec esi
mov dword [esp + 0x28], esi
jns 0x419089
pop edi
mov ax, bp
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 0x24