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

Disassembly:
sub esp, 0x108
mov edx, ecx
push ebx
push ebp
push esi
mov eax, dword [edx + 0x1c4]
push edi
cmp eax, 6
mov dword [esp + 0x38], edx
jne 0x409318
fld dword [esp + 0x11c]
fmul dword [esp + 0x120]
mov ecx, 0x4750ac
lea eax, [edx + 0x13e8]
fst dword [esp + 0x20]
fld dword [0x46f2d0]
fsub dword [esp + 0x11c]
mov edi, dword [esp + 0x20]
fmul dword [esp + 0x120]
fst dword [esp + 0x18]
lea edx, [eax - 0xfac]
mov esi, 4
fld dword [ecx - 4]
fstp dword [esp + 0x2c]
fld dword [ecx]
mov ebp, dword [esp + 0x2c]
mov ebx, edx
fstp dword [esp + 0x30]
fld dword [ecx + 4]
mov dword [ebx], ebp
mov ebp, dword [esp + 0x30]
fstp dword [esp + 0x34]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x34]
add ecx, 0xc
add edx, 0x14
dec esi
mov dword [ebx + 8], ebp
jne 0x409273
fld st(1)
mov dword [eax + 0x2c], edi
add eax, 0x50
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
cmp ecx, 0x4751cc
fld st(1)
mov dword [eax - 0x50], edx
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fld st(1)
mov dword [eax - 0x4c], edx
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fst dword [esp + 0x28]
fst dword [esp + 0x1c]
fst dword [esp + 0x14]
mov dword [eax - 0x3c], edx
mov edx, dword [esp + 0x28]
mov dword [eax - 0x38], edx
mov edx, dword [esp + 0x1c]
mov dword [eax - 0x28], edx
mov edx, dword [esp + 0x14]
mov dword [eax - 0x14], edx
mov edx, dword [esp + 0x18]
mov dword [eax - 0x10], edx
jl 0x409268
pop edi
pop esi
fstp st(0)
pop ebp
pop ebx
fstp st(0)
add esp, 0x108
ret 8
cmp eax, 0x1a
jne 0x40979e
xor ecx, ecx
mov dword [esp + 0xe8], 0xbeb504f3
mov dword [esp + 0xec], 0x3eb504f3
mov dword [esp + 0xf0], 0xbf5a8279
mov dword [esp + 0xf4], 0xbeb504f3
mov dword [esp + 0xf8], 0xbeb504f3
mov dword [esp + 0xfc], 0xbf5a8279
mov dword [esp + 0x100], 0x3eb504f3
mov dword [esp + 0x104], 0x3eb504f3
mov dword [esp + 0x108], 0xbf5a8279
mov dword [esp + 0x10c], 0x3eb504f3
mov dword [esp + 0x110], 0xbeb504f3
mov dword [esp + 0x114], 0xbf5a8279
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x3e9cc470
mov dword [esp + 0x90], 0xbf5a8279
mov dword [esp + 0x94], 0xbeb504f3
mov dword [esp + 0x98], 0xbeb504f3
mov dword [esp + 0x9c], 0xbf5a8279
mov dword [esp + 0xa0], 0x3eb504f3
mov dword [esp + 0xa4], 0xbeb504f3
mov dword [esp + 0xa8], 0xbf5a8279
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0xbeb504f3
mov dword [esp + 0xbc], 0x3eb504f3
mov dword [esp + 0xc0], 0xbf5a8279
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0xbe9cc470
mov dword [esp + 0xcc], 0xbf5a8279
mov dword [esp + 0xd0], 0x3eb504f3
mov dword [esp + 0xd4], 0x3eb504f3
mov dword [esp + 0xd8], 0xbf5a8279
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0x14], 0x42b40000
mov dword [esp + 0x10], 0x41b40000
mov dword [esp + 0x24], ecx
xor edi, edi
fld dword [esp + 0x14]
cmp ecx, 4
jne 0x4094da
fadd dword [0x46f3f0]
fstp dword [esp + 0x14]
jmp 0x4094f7
fsub dword [0x46f3ec]
cmp ecx, 3
fstp dword [esp + 0x14]
jne 0x4094f7
fld dword [esp + 0x10]
fsub dword [0x46f3ec]
fstp dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x38]
lea edx, [edi + edi*4]
xor ebp, ebp
shl edx, 4
lea esi, [edx + esi + 0x13e8]
cmp ecx, 3
jl 0x409529
test eax, eax
jne 0x40974e
test ebp, ebp
jne 0x40974e
test edi, edi
jl 0x4095eb
cmp edi, 3
jg 0x4095eb
mov eax, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esi - 0xc]
push 4
lea edx, [esp + 0x94]
push ecx
push edx
call fcn.004090d0
fld dword [esp + 0x134]
fmul dword [0x46f2e8]
add esp, 0x14
fstp dword [esp + 0x80]
fld dword [esp + 0x11c]
fadd dword [0x46f3e8]
mov eax, dword [esp + 0x80]
mov dword [esi], eax
fmul dword [esp + 0x120]
fstp dword [esp + 0x84]
fld dword [esp + 0x11c]
fmul dword [esp + 0x120]
mov ecx, dword [esp + 0x84]
mov dword [esi + 4], ecx
fstp dword [esp + 0x68]
fld dword [0x46f2d0]
fsub dword [esp + 0x11c]
mov edx, dword [esp + 0x68]
mov dword [esi + 0x14], edx
fmul dword [esp + 0x120]
fst dword [esp + 0x6c]
fst dword [esp + 0x50]
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esi + 0x18], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
jmp 0x409742
cmp edi, 0x10
jl 0x4096ab
cmp edi, 0x13
jg 0x4096ab
mov eax, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esi - 0xc]
push 4
lea edx, [esp + 0xc4]
push ecx
push edx
call fcn.004090d0
fld dword [esp + 0x130]
fadd dword [0x46f2e8]
mov edx, dword [esp + 0x134]
add esp, 0x14
mov dword [esp + 0x60], edx
fmul dword [esp + 0x120]
fstp dword [esp + 0x40]
fld dword [esp + 0x11c]
fmul dword [esp + 0x120]
mov eax, dword [esp + 0x40]
mov dword [esi], eax
mov eax, edx
mov dword [esi + 0x14], eax
fst dword [esp + 0x44]
fld dword [0x46f3e4]
fsub dword [esp + 0x11c]
mov ecx, dword [esp + 0x44]
mov dword [esi + 4], ecx
fmul dword [esp + 0x120]
fstp dword [esp + 0x64]
fld dword [0x46f3e0]
fsub dword [esp + 0x11c]
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x18], ecx
fmul dword [esp + 0x120]
fstp dword [esp + 0x78]
mov edx, dword [esp + 0x78]
fstp dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
mov dword [esi + 0x28], edx
jmp 0x40973f
mov ecx, dword [esp + 0x10]
push ebx
push ecx
lea edx, [esi - 0xc]
push 4
lea eax, [esp + 0xf4]
push edx
push eax
call fcn.004090d0
fld dword [esp + 0x130]
fmul dword [esp + 0x134]
add esp, 0x14
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fst dword [esp + 0x48]
fld dword [0x46f2d0]
fsub dword [esp + 0x11c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x48]
mov dword [esi], ecx
fmul dword [esp + 0x120]
mov dword [esi + 4], edx
mov dword [esi + 0x14], eax
fst dword [esp + 0x4c]
fst dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
fxch st(1)
fstp dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x18], ecx
fst dword [esp + 0x2c]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x28], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], edx
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
inc edi
add esi, 0x50
fld dword [esp + 0x10]
fadd qword [0x46f3a8]
inc ebp
cmp ebp, 4
fstp dword [esp + 0x10]
jl 0x409514
fld dword [esp + 0x10]
fadd qword [0x46f3d8]
inc eax
cmp eax, 2
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x10]
jl 0x409501
fld dword [esp + 0x10]
fsub qword [0x46f3a8]
inc ecx
cmp ecx, 5
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x10]
jl 0x4094c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8