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

Disassembly:
sub esp, 0xa8
lea edx, [esp]
push ebx
mov ebx, ecx
push edi
push 0x2000
mov eax, dword [ebx + 0x1d8]
push edx
xor edi, edi
push 0x3c0
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x405b4f
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x68], ebp
xor esi, esi
jmp 0x4055b2
xor edi, edi
fld dword [0x46d900]
fsub dword [0x46d910]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], edi
lea eax, [ebp + 1]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
fstp dword [esp + 0x14]
fild qword [esp + 0x80]
cmp ebp, 4
mov eax, ebp
fmul dword [esp + 0x14]
fmul qword [0x4412c8]
fadd dword [0x46d910]
fild qword [esp + 0x78]
fmul dword [esp + 0x14]
fmul qword [0x4412c8]
fadd dword [0x46d910]
fst dword [esp + 0x28]
fld dword [0x46d914]
fld dword [0x46d904]
fst dword [esp + 0x24]
jbe 0x40562a
mov eax, 4
lea eax, [eax + eax*4]
fld dword [ebx + eax*4 + 0x264]
fmul dword [ebx + eax*4 + 0x260]
lea eax, [ebx + eax*4 + 0x25c]
fcom qword [0x441308]
fnstsw ax
test ah, 1
je 0x405659
fstp st(0)
fld dword [0x441370]
jmp 0x40566e
fcom qword [0x4412c0]
fnstsw ax
test ah, 0x41
jne 0x40566e
fstp st(0)
fld dword [0x441298]
cmp ebp, 4
mov eax, ebp
jbe 0x40567a
mov eax, 4
lea ecx, [eax + eax*4]
fld dword [ebx + ecx*4 + 0x264]
fmul dword [ebx + ecx*4 + 0x260]
lea eax, [ebx + ecx*4 + 0x25c]
fcom qword [0x441308]
fnstsw ax
test ah, 1
je 0x4056a9
fstp st(0)
fld dword [0x441370]
jmp 0x4056be
fcom qword [0x4412c0]
fnstsw ax
test ah, 0x41
jne 0x4056be
fstp st(0)
fld dword [0x441298]
fld dword [0x46d8f0]
fsub dword [0x46d8e0]
fld dword [0x46d8f4]
fsub dword [0x46d8e4]
fstp dword [esp + 0xa4]
fld dword [0x46d8f8]
fsub dword [0x46d8e8]
fstp dword [esp + 0xa8]
fmul st(1)
fstp dword [esp + 0x88]
fld dword [esp + 0xa4]
fmul st(1)
fstp dword [esp + 0x8c]
fmul dword [esp + 0xa8]
fld dword [esp + 0x88]
fadd dword [0x46d8e0]
fstp dword [esp + 0x94]
fld dword [esp + 0x8c]
fadd dword [0x46d8e4]
fstp dword [esp + 0x98]
fadd dword [0x46d8e8]
fld dword [esp + 0x94]
fmul st(2)
fstp dword [esp + 0xac]
fld dword [esp + 0x98]
fmul st(2)
fstp dword [esp + 0xb0]
fmulp st(1)
fld dword [esp + 0xac]
fmul qword [0x441378]
call fcn.00434e70
fld dword [esp + 0xb0]
fmul qword [0x441378]
mov edi, eax
or edi, 0xffffff00
shl edi, 8
call fcn.00434e70
fmul qword [0x441378]
and eax, 0xff
or edi, eax
shl edi, 8
call fcn.00434e70
and eax, 0xff
or edi, eax
cmp ebp, 4
jbe 0x4057b5
mov ebp, 4
lea edx, [ebp + ebp*4]
xor eax, eax
mov al, byte [ebx + edx*4 + 0x25c]
mov edx, dword [esp + 0x10]
mov ecx, eax
and ecx, 0xf
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
sar eax, 4
mov dword [esp + 0x14], eax
lea eax, [esi + edx]
fmul qword [0x4412e0]
fadd qword [0x441368]
fst dword [esp + 0x18]
fadd qword [0x4412e0]
fsub qword [0x441360]
fstp dword [esp + 0x20]
fild dword [esp + 0x14]
fmul qword [0x4412e0]
fadd qword [0x441368]
fst dword [esp + 0x1c]
fadd qword [0x4412e0]
fsub qword [0x441368]
fstp dword [esp + 0x14]
fld st(3)
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
fld st(1)
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
fstp dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], edx
fld dword [esp + 0x18]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0xc], edi
mov eax, dword [esp + 0x10]
fstp dword [esi + eax + 0x10]
fld dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
xor eax, eax
fstp dword [esi + ecx + 0x14]
mov edx, dword [esp + 0x10]
fld st(3)
mov dword [esi + edx + 0x18], eax
mov ecx, dword [esp + 0x10]
fstp dword [esp + 0x2c]
mov dword [esi + ecx + 0x1c], eax
mov edx, dword [esp + 0x10]
fstp dword [esp + 0x30]
lea ecx, [esi + edx + 0x20]
mov edx, dword [esp + 0x2c]
fld dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x10]
mov dword [esi + ecx + 0x2c], edi
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0x30]
fld dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
fstp dword [esi + ecx + 0x34]
mov edx, dword [esp + 0x10]
mov ecx, 0x40c00000
fld st(1)
mov dword [esi + edx + 0x38], eax
mov edx, dword [esp + 0x10]
fstp dword [esp + 0x3c]
mov ebp, dword [esp + 0x3c]
mov dword [esi + edx + 0x3c], ecx
mov edx, dword [esp + 0x10]
fst dword [esp + 0x40]
lea edx, [esi + edx + 0x40]
mov dword [edx], ebp
mov ebp, dword [esp + 0x40]
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x44]
fld dword [esp + 0x20]
mov dword [edx + 8], ebp
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x4c], edi
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0x50]
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0x54]
mov edx, dword [esp + 0x10]
fxch st(1)
fstp dword [esp + 0x54]
mov dword [esi + edx + 0x58], ecx
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x54]
fstp dword [esp + 0x58]
mov dword [esi + edx + 0x5c], eax
mov edx, dword [esp + 0x10]
fld dword [esp + 0x20]
lea edx, [esi + edx + 0x60]
mov dword [edx], ebp
mov ebp, dword [esp + 0x58]
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x5c]
mov dword [edx + 8], ebp
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x6c], edi
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0x70]
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0x74]
mov edx, dword [esp + 0x10]
fstp dword [esp + 0x6c]
mov dword [esi + edx + 0x78], ecx
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x6c]
mov dword [esi + edx + 0x7c], eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x10]
fld dword [esp + 0x18]
lea edx, [esi + edx + 0x80]
mov dword [edx], ebp
mov ebp, dword [esp + 0x70]
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x74]
mov dword [edx + 8], ebp
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x8c], edi
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0x90]
fld dword [esp + 0x14]
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0x94]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x20]
mov dword [esi + edx + 0x98], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov dword [esi + eax + 0x9c], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x64], eax
lea eax, [esi + edx + 0xa0]
mov edx, dword [esp + 0x60]
mov dword [eax], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0xac], edi
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0xb0]
fld dword [esp + 0x14]
mov eax, dword [esp + 0x10]
fstp dword [esi + eax + 0xb4]
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0xb8], ecx
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x38]
mov dword [esi + eax + 0xbc], ecx
add esi, 0xc0
cmp ebp, 5
jb 0x4055b0
mov eax, dword [ebx + 0x1d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov ecx, ebx
call fcn.00402c50
mov eax, dword [ebx + 0x1d4]
push 5
push 1
push 1
mov edx, dword [eax]
push eax
call dword [edx + 0xfc]
mov eax, dword [ebx + 0x1d4]
push 4
push 4
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xfc]
mov eax, dword [ebx + 0x1d4]
push 1
push 0x1b
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [ebx + 0x1d4]
push 2
push 0x13
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [ebx + 0x1d4]
push 2
push 0x14
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [ebx + 0x1d4]
push 1
push 0x16
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [ebx + 0x1d4]
push 0
push 7
push eax
mov edx, dword [eax]
call dword [edx + 0xc8]
mov eax, dword [ebx + 0x1d4]
mov edx, dword [0x46da3c]
push edx
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf4]
mov eax, dword [ebx + 0x1d4]
mov edx, dword [0x46da50]
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf4]
mov eax, dword [ebx + 0x1d4]
push 0xa
push 0
push 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x118]
mov ecx, ebx
call fcn.00402d60
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xa8
ret