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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x63342e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x658
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x258]
call fcn.0047bf53
push dword [esi + 0x24]
xor ebx, ebx
push 1
lea ecx, [esp + 0x260]
mov dword [esp + 0x674], ebx
call fcn.0047bf67
push ebx
push 0xc
lea ecx, [esp + 0x260]
call fcn.0047bf67
push ebx
push 8
lea ecx, [esp + 0x260]
call fcn.0047bf67
push ebx
push 6
lea ecx, [esp + 0x260]
call fcn.0047bf67
push 1
push 0x14
lea ecx, [esp + 0x260]
call fcn.0047bf67
push 3
push 2
lea ecx, [esp + 0x260]
call fcn.0047bf67
push 0xffffffffffffffff
push 0xd
lea ecx, [esp + 0x260]
call fcn.0047bf67
push 1
push 0xc
lea ecx, [esp + 0x260]
call fcn.0047bf67
push 2
push 9
lea ecx, [esp + 0x260]
call fcn.0047bf67
push ebx
push 0xe
lea ecx, [esp + 0x260]
call fcn.0047bf67
push 7
push 0x1d
lea ecx, [esp + 0x260]
call fcn.0047bf67
push 0x14
push 0x1e
lea ecx, [esp + 0x260]
call fcn.0047bf67
push dword [esi + 0x50]
lea ecx, [esp + 0x25c]
push 0xa
call fcn.0047bf67
push dword [esi + 0x54]
lea ecx, [esp + 0x25c]
push 0xb
call fcn.0047bf67
call fcn.00401d12
mov edi, dword [eax + 0x54]
mov eax, dword [ebp + 0xc]
fld dword [eax + 8]
mov dword [esp + 0x7c], 0x40800000
fld dword [eax + 4]
mov eax, dword [eax]
fstp dword [esp + 0x74]
mov dword [esp + 0x70], eax
mov dword [esp + 0x10], ebx
fstp dword [esp + 0x78]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], connect
push dword [ebp + 8]
mov byte [esp + 0x670], 1
lea eax, [esp + 0x140]
push eax
call fcn.005a09c0
fld dword [0x64685c]
fdiv dword [esi + 0x4c]
push 2
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x14c]
push eax
fst dword [esp + 0x7c]
fstp dword [esp + 0x78]
fld dword [ebp + 0x10]
fadd dword [esi + 0x4c]
fdivr dword [0x6419bc]
fstp dword [esp + 0x80]
call fcn.005a0c10
fld dword [0x6431e4]
fst dword [esp + 0x64]
push 2
lea eax, [esp + 0x64]
fstp dword [esp + 0x64]
push eax
fldz
lea eax, [esp + 0x158]
fstp dword [esp + 0x70]
push eax
call fcn.005a0da0
fld dword [esi + 0x3c]
fmul dword [0x644cdc]
add esp, 0x20
call fcn.006009e4
mov byte [esp + 0x17c], al
mov esi, dword [edi + 0xc]
lea ecx, [esp + 0x190]
call fcn.004fbae0
lea eax, [esp + 0x190]
push eax
mov ecx, esi
mov byte [esp + 0x670], 2
call fcn.004fb550
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, edi
call dword [eax + 0x28]
cmp dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
jle 0x47908b
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov esi, dword [eax + edx*4]
push 0x20
pop ecx
sub ecx, dword [esp + 0x1b0]
mov eax, esi
shr eax, cl
mov edx, eax
shl eax, 2
shl edx, cl
mov ecx, dword [esp + 0x1f0]
mov ecx, dword [eax + ecx]
xor edx, esi
imul ecx, edx
mov edx, dword [esp + 0x1d8]
mov edx, dword [eax + edx]
shr ecx, 1
lea esi, [edx + ecx*2]
mov ecx, dword [esp + 0x1c0]
mov ebx, dword [eax + ecx]
mov ecx, dword [esp + 0x1b4]
mov edi, dword [eax + ecx]
movzx eax, word [esi]
shr ebx, 2
imul eax, ebx
fld dword [edi + eax*4]
fstp dword [esp + 0x1c]
movzx eax, word [esi]
imul eax, ebx
fld dword [edi + eax*4 + 4]
fstp dword [esp + 0x20]
movzx eax, word [esi]
imul eax, ebx
fld dword [edi + eax*4 + 8]
fstp dword [esp + 0x24]
movzx eax, word [esi + 2]
imul eax, ebx
fld dword [edi + eax*4]
fstp dword [esp + 0x28]
movzx eax, word [esi + 2]
imul eax, ebx
fld dword [edi + eax*4 + 4]
fstp dword [esp + 0x2c]
movzx eax, word [esi + 2]
imul eax, ebx
fld dword [edi + eax*4 + 8]
fstp dword [esp + 0x30]
movzx eax, word [esi + 4]
imul eax, ebx
fld dword [edi + eax*4]
fstp dword [esp + 0x34]
movzx eax, word [esi + 4]
imul eax, ebx
fld dword [edi + eax*4 + 4]
fstp dword [esp + 0x38]
movzx eax, word [esi + 4]
imul eax, ebx
fld dword [edi + eax*4 + 8]
fstp dword [esp + 0x3c]
fld dword [esp + 0x28]
fsub dword [esp + 0x1c]
fld dword [esp + 0x2c]
fsub dword [esp + 0x20]
fld dword [esp + 0x30]
fsub dword [esp + 0x24]
fld dword [esp + 0x34]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x40]
fld dword [esp + 0x38]
fsub dword [esp + 0x20]
fstp dword [esp + 0x44]
fld dword [esp + 0x3c]
fsub dword [esp + 0x24]
fld st(0)
fmul st(3)
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x128]
fld dword [esp + 0x48]
fmul st(3)
push eax
fsubp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x48]
fmul st(2)
fld st(1)
fmul st(5)
fsubp st(1)
fstp dword [esp + 0x64]
fstp st(0)
fstp st(0)
fld dword [esp + 0x4c]
fmul st(2)
fld dword [esp + 0x48]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x68]
fstp st(0)
fstp st(0)
call fcn.005a1530
add esp, 8
fstp st(0)
test byte [0x95ed00], 1
jne 0x478f05
fld qword [0x6494b8]
or dword [0x95ed00], 1
push ecx
push ecx
fstp qword [esp]
call fcn.006023a4
pop ecx
fstp dword [0x95ecfc]
pop ecx
fld dword [esp + 0x128]
fcomp dword [0x95ecfc]
fnstsw ax
test ah, 0x41
jne 0x479079
lea eax, [esp + 0x13c]
push eax
push 3
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.005a17a0
movzx ecx, byte [esp + 0x18c]
mov eax, ecx
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
mov dword [esp + 0xd8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x128], eax
movzx eax, word [esi]
imul eax, ebx
push 0x19
push 0
fld dword [edi + eax*4]
push 3
fstp dword [esp + 0xcc]
movzx eax, word [esi]
imul eax, ebx
fld dword [edi + eax*4 + 4]
fstp dword [esp + 0xd0]
movzx eax, word [esi]
imul eax, ebx
fld dword [edi + eax*4 + 8]
fstp dword [esp + 0xd4]
movzx eax, word [esi + 2]
imul eax, ebx
fld dword [edi + eax*4]
fstp dword [esp + 0xf0]
movzx eax, word [esi + 2]
imul eax, ebx
fld dword [edi + eax*4 + 4]
fstp dword [esp + 0xf4]
movzx eax, word [esi + 2]
imul eax, ebx
fld dword [edi + eax*4 + 8]
fstp dword [esp + 0xf8]
movzx eax, word [esi + 4]
imul eax, ebx
fld dword [edi + eax*4]
fstp dword [esp + 0x114]
movzx eax, word [esi + 4]
imul eax, ebx
fld dword [edi + eax*4 + 4]
fstp dword [esp + 0x118]
movzx eax, word [esi + 4]
imul eax, ebx
fld dword [edi + eax*4 + 8]
lea eax, [esp + 0xcc]
push eax
fstp dword [esp + 0x120]
call fcn.005a1ac0
add esp, 0x20
test eax, eax
je 0x479079
push 3
call fcn.005a1d20
pop ecx
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x14]
jl 0x478d7e
lea ecx, [esp + 0x190]
mov byte [esp + 0x66c], 1
call fcn.004373af
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [esp + 0x66c], 0
js 0x4790c9
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
and eax, 0x7fffffff
push 0x12
shl eax, 2
push eax
push dword [esp + 0x18]
call dword [edx + 0x14]
or dword [esp + 0x66c], 0xffffffff
lea ecx, [esp + 0x258]
call fcn.0047c035
mov ecx, dword [esp + 0x664]
pop edi
xor eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc