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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa4
mov eax, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx], vtable.hkMultiSphereAgent.0
push ebx
lea ebx, [ecx + 0xc]
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0xc]
mov dword [ebx], ecx
mov dword [ebx + 4], 0
mov dword [ebx + 8], reloc.WS2_32.dll_connect
mov eax, dword [ebx + 8]
push edi
mov edi, dword [esi]
mov ecx, dword [edi + 0xc]
and eax, 0x7fffffff
cmp eax, ecx
mov dword [esp + 0x14], ecx
jge 0x51b641
add eax, eax
cmp ecx, eax
jl 0x51b635
mov eax, ecx
push 8
push eax
push ebx
call fcn.0054d250
add esp, 0xc
push 0
lea ecx, [esp + 0x20]
call fcn.004fcfc0
mov edx, dword [esi + 8]
push edx
lea ecx, [esp + 0x54]
call fcn.004fef90
lea eax, [esp + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
add edi, 0x10
test eax, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x10], 0
jle 0x51b7cb
jmp 0x51b681
mov esi, dword [ebp + 8]
fld dword [edi]
mov eax, dword [esi + 8]
fld dword [edi + 4]
add eax, 0x50
fld dword [edi + 8]
fld dword [esp + 0x90]
fmul st(1)
fld dword [esp + 0x80]
fmul st(3)
faddp st(1)
fld dword [esp + 0x70]
fmul st(4)
faddp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x94]
fmul st(1)
fld dword [esp + 0x84]
fmul st(3)
faddp st(1)
fld dword [esp + 0x74]
fmul st(4)
faddp st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x98]
fmul st(1)
fld dword [esp + 0x88]
fmul st(3)
faddp st(1)
fld dword [esp + 0x78]
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [esp + 0x40]
fadd dword [eax]
fstp dword [esp + 0xa0]
fld dword [esp + 0x44]
fadd dword [eax + 4]
fstp dword [esp + 0xa4]
fadd dword [eax + 8]
fstp dword [esp + 0xa8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xac], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], eax
call dword [edx + 0x14]
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
shl esi, 5
add esi, eax
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + esi*4 + 0x18c]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
call esi
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51b7b3
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
and edx, 0x7fffffff
cmp eax, edx
jne 0x51b79e
push 8
push ebx
call fcn.0054d2c0
add esp, 8
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x10]
lea ecx, [ecx + eax*8]
inc eax
mov dword [ebx + 4], eax
mov dword [ecx + 4], esi
mov dword [ecx], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add edi, 0x10
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x51b67e
mov eax, dword [esp + 0x20]
test ah, ah
mov dword [esp + 0x1c], vtable.hkSerializable.0
jns 0x51b7eb
and byte [esp + 0x21], 0x7f
push 0
lea ecx, [esp + 0x20]
call fcn.0054d460
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10