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

Disassembly:
sub esp, 0xb4
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x408bd3
push ebx
mov ebx, dword [esp + 0xc4]
mov eax, ebx
push esi
shl eax, 5
add eax, ebx
push edi
lea edx, [esp + 0x84]
lea eax, [eax + eax*2]
lea edi, [ebx + eax*8]
shl edi, 2
lea ecx, [edi + 0x4b7a98]
push ecx
push edx
call fcn.00414100
fld dword [edi + 0x4b7d38]
fsub dword [ebp + 0x22c4]
add esp, 8
mov dword [esp + 0x2c], 0
fst dword [edi + 0x4b7d38]
fcomp dword [0x47f344]
fnstsw ax
test ah, 5
jp 0x40851f
mov eax, dword [0x47f3ac]
mov dword [esp + 0x2c], 1
mov dword [edi + 0x4b7d38], eax
mov esi, 2
mov eax, dword [edi + 0x4b7c90]
test eax, eax
je 0x408611
mov al, byte [0x4bef78]
test al, al
jne 0x408561
cmp word [edi + 0x4b70f0], 2
jne 0x408561
cmp esi, 2
jne 0x408561
fld dword [edi + 0x4b7c60]
fcomp dword [0x47f344]
fnstsw ax
test ah, 0x41
jp 0x408611
mov ecx, esi
shl ecx, 4
add ecx, esi
lea eax, [edi + ecx*4]
mov ecx, dword [eax + 0x4b7b14]
test ecx, ecx
je 0x408611
mov cl, byte [edi + 0x4b7964]
test cl, cl
jne 0x408611
fld dword [eax + 0x4b7b04]
fstp dword [esp + 0x60]
fld dword [eax + 0x4b7b08]
fstp dword [esp + 0x64]
fld dword [eax + 0x4b7b0c]
fstp dword [esp + 0x68]
fld dword [eax + 0x4b7af8]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
fstp dword [esp + 0x3c]
fld dword [eax + 0x4b7afc]
fstp dword [esp + 0x40]
fld dword [eax + 0x4b7b00]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
push esi
lea eax, [esp + 0x70]
push ebx
fstp dword [esp + 0x4c]
lea ecx, [esp + 0x80]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x84], edx
call fcn.00424660
jmp 0x40861b
push esi
push ebx
call fcn.004248b0
add esp, 8
inc esi
cmp esi, 4
jl 0x408524
mov ebx, 2
mov eax, dword [ebp + 0x23c0]
test eax, eax
jbe 0x408bc6
cmp eax, 2
je 0x40864b
cmp word [edi + 0x4b7a00], 0xffff
jne 0x40894d
mov eax, dword [edi + 0x4b7c9c]
test eax, eax
jne 0x40894d
mov ecx, dword [edi + 0x4b7a94]
fld dword [ecx + 0x6c]
fcomp dword [0x47f398]
fnstsw ax
and eax, 0x4100
je 0x4086a7
fld dword [ecx + 0x6c]
fcomp dword [0x47f398]
fnstsw ax
and eax, 0x4100
je 0x4086a7
fld dword [ecx + 0x6c]
fcomp dword [0x47f3f8]
fnstsw ax
test ah, 5
jnp 0x4086a7
fld dword [ecx + 0x6c]
fcomp dword [0x47f3f8]
fnstsw ax
test ah, 5
jp 0x40894d
mov edx, ebx
shl edx, 4
add edx, ebx
lea esi, [edi + edx*4]
cmp dword [esi + 0x4b7b28], 1
jne 0x4087ff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4087ff
fld dword [esi + 0x4b7b00]
fadd dword [0x47f3f4]
mov eax, dword [esi + 0x4b7af8]
mov ecx, dword [esi + 0x4b7afc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x28]
fld dword [esi + 0x4b7af8]
fsub dword [esi + 0x4b7b04]
fstp dword [esp + 0x30]
fld dword [esi + 0x4b7afc]
fsub dword [esi + 0x4b7b08]
fstp dword [esp + 0x34]
fld dword [esi + 0x4b7b00]
fsub dword [esi + 0x4b7b0c]
fstp dword [esp + 0x38]
call fcn.00464f9a
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x47f3b0]
fsub dword [0x47f360]
fstp dword [esp + 0x14]
call fcn.00464f9a
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x47f3b0]
fchs
fstp dword [esp + 0x18]
call fcn.00464f9a
mov dword [esp + 0x10], eax
mov ecx, dword [0x4aef34]
fild dword [esp + 0x10]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x18]
fmul dword [0x47f3b0]
push eax
lea eax, [esp + 0x5c]
push eax
fsubr dword [0x47f3f0]
fstp dword [esp + 0x28]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [0x4aef34]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x3ecccccd
mov dword [esp + 0x20], 0x3ecccccd
mov dword [esp + 0x24], 0x3e4ccccd
mov edx, dword [ecx]
lea eax, [esp + 0x50]
push eax
call dword [edx + 8]
mov eax, dword [0x4c1270]
test eax, eax
je 0x4087ff
push 1
push 0xff000000
push 0xff339933
push 0
push 1
lea ecx, [esp + 0x5c]
push 0x3fc00000
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, 0x4c1120
call fcn.00418140
cmp dword [esi + 0x4b7b28], 2
jne 0x40894d
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40894d
fld dword [esi + 0x4b7b00]
fadd dword [0x47f3f4]
mov edx, dword [esi + 0x4b7af8]
mov eax, dword [esi + 0x4b7afc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
fstp dword [esp + 0x28]
fld dword [esi + 0x4b7af8]
fsub dword [esi + 0x4b7b04]
fstp dword [esp + 0x30]
fld dword [esi + 0x4b7afc]
fsub dword [esi + 0x4b7b08]
fstp dword [esp + 0x34]
fld dword [esi + 0x4b7b00]
fsub dword [esi + 0x4b7b0c]
fstp dword [esp + 0x38]
call fcn.00464f9a
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x47f3b0]
fsub dword [0x47f360]
fstp dword [esp + 0x14]
call fcn.00464f9a
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x47f3b0]
fchs
fstp dword [esp + 0x18]
call fcn.00464f9a
mov dword [esp + 0x10], eax
mov ecx, dword [0x4aef34]
fild dword [esp + 0x10]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x18]
fmul dword [0x47f3b0]
push eax
lea eax, [esp + 0x5c]
push eax
fsubr dword [0x47f3f0]
fstp dword [esp + 0x28]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [0x4aef34]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x3ecccccd
mov dword [esp + 0x20], 0x3ecccccd
mov dword [esp + 0x24], 0x3e4ccccd
mov edx, dword [ecx]
lea eax, [esp + 0x50]
push eax
call dword [edx + 8]
mov eax, dword [0x4c1270]
test eax, eax
je 0x40894d
push 2
push 0xff000000
push 0xffeecc66
push 0
push 1
lea ecx, [esp + 0x5c]
push 0x3fc00000
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, 0x4c1120
call fcn.00418140
mov eax, dword [ebp + 0x23c0]
test eax, eax
jbe 0x408bc6
cmp eax, 2
je 0x40896e
cmp word [edi + 0x4b7a00], 0xffff
jne 0x408bc6
mov eax, dword [edi + 0x4b7c90]
test eax, eax
je 0x408bc6
mov ecx, dword [edi + 0x4b7a94]
fld dword [ecx + 0x88]
fcomp dword [0x47f3ec]
fnstsw ax
and eax, 0x4100
je 0x4089ae
fld dword [ecx + 0x88]
fcomp dword [0x47f3e8]
fnstsw ax
test ah, 5
jp 0x408bc6
mov al, byte [0x4bef78]
test al, al
jne 0x4089dd
cmp word [edi + 0x4b70f0], 2
jne 0x4089dd
cmp ebx, 2
jne 0x4089dd
fld dword [edi + 0x4b7c60]
fcomp dword [0x47f344]
fnstsw ax
test ah, 0x41
jp 0x408bc6
mov edx, ebx
shl edx, 4
add edx, ebx
mov eax, dword [edi + edx*4 + 0x4b7b14]
test eax, eax
je 0x408bc6
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x408bc6
fld dword [edi + 0x4b7948]
fsub dword [edi + 0x4b7954]
fstp dword [esp + 0x3c]
fld dword [edi + 0x4b794c]
fsub dword [edi + 0x4b7958]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
fstp dword [esp + 0x40]
fld dword [edi + 0x4b7950]
fsub dword [edi + 0x4b795c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ecx
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x38], edx
call fcn.00464f9a
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x47f3b0]
fsub dword [0x47f360]
fstp dword [esp + 0x14]
call fcn.00464f9a
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x47f3b0]
fchs
fstp dword [esp + 0x18]
call fcn.00464f9a
mov dword [esp + 0x10], eax
mov ecx, dword [0x4aef34]
fild dword [esp + 0x10]
lea edx, [esp + 0x84]
push edx
lea edx, [esp + 0x18]
fmul dword [0x47f3b0]
push edx
lea edx, [esp + 0x5c]
push edx
fstp dword [esp + 0x28]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x4aef34]
lea edx, [esp + 0x84]
push edx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x3ecccccd
mov dword [esp + 0x20], 0x3ecccccd
mov dword [esp + 0x24], 0x3e4ccccd
mov eax, dword [ecx]
lea edx, [esp + 0x50]
push edx
call dword [eax + 8]
mov al, byte [0x4bef78]
mov dword [esp + 0x20], 0x3f800000
test al, al
mov dword [esp + 0x24], 0xc0000000
mov dword [esp + 0x28], 0x3e99999a
je 0x408b0f
mov dword [esp + 0x20], 0x3dcccccd
cmp ebx, 3
jne 0x408b1e
fld dword [esp + 0x20]
fchs
fstp dword [esp + 0x20]
mov ecx, dword [0x4aef34]
lea edx, [esp + 0x84]
push edx
lea edx, [esp + 0x24]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x28]
push edx
call dword [eax + 8]
fld dword [esp + 0x20]
fadd dword [edi + 0x4b7948]
mov eax, dword [0x4c1270]
test eax, eax
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [edi + 0x4b794c]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd dword [edi + 0x4b7950]
fstp dword [esp + 0x28]
je 0x408bc6
mov eax, dword [ebp + 0x22c0]
push 0
push 0xff000000
push 0xffeeeeee
push 4
push 1
test eax, eax
jne 0x408ba3
lea eax, [esp + 0x5c]
push 0x3f400000
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
jmp 0x408bbc
lea ecx, [esp + 0x5c]
push 0x3f000000
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, 0x4c1120
call fcn.00418140
inc ebx
cmp ebx, 4
jl 0x40862a
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xb4
ret 8