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

Disassembly:
sub esp, 0x70
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
mov ecx, dword [eax]
mov eax, dword [esp + 0x84]
inc eax
mov dword [esp + 0x5c], ecx
add eax, ecx
mov dword [esp + 0xc], eax
add eax, 1
push edi
mov edi, eax
je 0x5864f0
shl eax, 2
mov ecx, 0x7d8954
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x7d8954]
call dword [eax + 0xc]
mov ebp, eax
mov eax, dword [esp + 0x28]
cdq
and edx, 3
add eax, edx
sar eax, 2
jmp 0x5864f2
xor ebp, ebp
test eax, eax
mov dword [esp + 0x74], ebp
mov esi, connect
mov dword [esp + 0x78], edi
cmovne esi, eax
mov dword [esp + 0x7c], esi
test edi, edi
jle 0x586517
mov ecx, edi
mov eax, 0x7f7fffee
mov edi, ebp
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x94]
add ebx, 1
mov eax, ebx
mov edi, eax
je 0x586557
shl eax, 2
mov ecx, 0x7d8954
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [0x7d8954]
call dword [eax + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x20]
sar eax, 2
jmp 0x58655d
xor edx, edx
mov dword [esp + 0x20], edx
test eax, eax
mov ecx, connect
cmovne ecx, eax
mov dword [esp + 0x70], ecx
test edi, edi
jle 0x586577
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, ebx
mov edi, eax
test eax, eax
je 0x5865af
shl eax, 2
mov ecx, 0x7d8954
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x7d8954]
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x14]
sar eax, 2
jmp 0x5865b5
xor edx, edx
mov dword [esp + 0x14], edx
test eax, eax
mov ecx, connect
cmovne ecx, eax
mov dword [esp + 0x6c], ecx
test edi, edi
jle 0x5865cf
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, ebx
test eax, eax
je 0x586601
shl eax, 2
mov ecx, 0x7d8954
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x7d8954]
call dword [eax + 0xc]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
cdq
and edx, 3
add eax, edx
sar eax, 2
jmp 0x586609
mov dword [esp + 0x54], 0
mov edi, connect
test eax, eax
mov ecx, edi
cmovne ecx, eax
mov dword [esp + 0x68], ecx
test ebx, ebx
je 0x58664e
lea eax, [ebx*4]
mov ecx, 0x7d8954
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [0x7d8954]
call dword [eax + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
cdq
and edx, 3
lea ebx, [edx + eax]
sar ebx, 2
jmp 0x586656
mov dword [esp + 0x50], 0
test ebx, ebx
cmovne edi, ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x10]
mov eax, edi
sub eax, ebx
dec eax
lea ecx, [ebx + 1]
push eax
push ecx
lea eax, [esp + 0x7c]
mov dword [esp + 0x64], ecx
push eax
push dword [esp + 0x9c]
mov eax, dword [esp + 0x94]
push dword [esp + 0x9c]
push ebx
push dword [eax]
call fcn.00587340
lea eax, [edi + 1]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00588950
push dword [esp + 0xb0]
mov edi, eax
push dword [esp + 0x38]
mov dword [esp + 0x78], edi
push edi
call fcn.00586430
lea ecx, [edi*4]
add esp, 0x30
add ecx, ebp
mov edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
movss xmm0, dword [ecx]
ucomiss xmm0, dword [0x77fe14]
lahf
test ah, 0x44
jnp 0x586bbe
mov ebp, dword [esp + 0x9c]
lea eax, [edx + ebx]
mov ecx, eax
and ecx, reloc.WSOCK32.dll_accept
jns 0x586706
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x58671c
cdq
xorps xmm0, xmm0
sub eax, edx
movss dword [esp + 0x28], xmm0
sar eax, 1
mov ebx, edi
sub ebx, eax
jmp 0x58675a
lea eax, [edx + 1]
add eax, ebx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
sub edx, eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
lea eax, [edx + ebx]
lea ebx, [edx + 1]
movss xmm2, dword [ecx + edi*4]
movss xmm0, dword [ecx + eax*4 + 8]
subss xmm2, dword [ecx + edx*4 + 4]
subss xmm0, dword [ecx + edx*4 + 4]
divss xmm2, xmm0
movss dword [esp + 0x28], xmm2
mov eax, dword [esp + 0x8c]
push dword [esp + 0x94]
mov dword [esp + 0x40], ebx
push dword [esp + 0x9c]
mov esi, dword [eax]
push ecx
movss xmm0, dword [esi + ebx*4]
movss dword [esp], xmm0
call fcn.00587560
mov ecx, dword [esp + 0x94]
add esp, 0xc
add ecx, ebx
mov edi, eax
mov dword [esp + 0x24], edi
push dword [esp + 0x94]
movss xmm0, dword [esi + ecx*4 + 4]
push dword [esp + 0x9c]
push ecx
movss dword [esp], xmm0
call fcn.00587560
add esp, 0xc
xorps xmm0, xmm0
movss dword [esp + 0x40], xmm0
mov esi, edi
lea ebx, [eax - 1]
mov dword [esp + 0x48], ebx
cmp edi, ebx
jg 0x586894
movss xmm0, dword [0x718824]
subss xmm0, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
movss dword [esp + 0x28], xmm0
nop word [eax + eax]
mov eax, dword [esp + 0x98]
push ecx
mov eax, dword [eax]
movss xmm0, dword [eax + esi*4]
movss dword [esp], xmm0
push edi
push dword [esp + 0x94]
push dword [esp + 0x1c]
push dword [esp + 0x98]
call fcn.00585ad0
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [esp + 0x14]
lea ecx, [eax + esi*4]
mov eax, dword [esp + 0x58]
movss xmm0, dword [edx]
mulss xmm0, dword [esp + 0x28]
movss dword [esp + 0x3c], xmm0
fmul dword [esp + 0x3c]
fstp dword [esp + 0x3c]
movss xmm0, dword [esp + 0x3c]
movss dword [eax + ecx], xmm0
mov eax, dword [ebp]
movss xmm1, dword [eax + esi*4]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x40]
comiss xmm0, xmm1
movss dword [ecx], xmm1
ja 0x586885
movaps xmm0, xmm1
movss dword [esp + 0x40], xmm0
inc esi
cmp esi, ebx
jle 0x586800
mov edi, dword [esp + 0x24]
jmp 0x586898
mov edx, dword [esp + 0x18]
movss xmm1, dword [esp + 0xa0]
comiss xmm1, xmm0
jb 0x586b38
mov eax, dword [ebp + 4]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], connect
test eax, eax
jle 0x5868f2
shl eax, 2
mov ecx, 0x7d8954
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [0x7d8954]
call dword [eax + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
cdq
and edx, 3
lea ecx, [edx + eax]
sar ecx, 2
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp + 4]
xor edx, edx
mov eax, dword [ebp]
mov dword [esp + 0x3c], eax
cmp esi, 4
jl 0x586956
lea ebx, [esi - 4]
add ecx, 4
lea edx, [eax + 0xc]
shr ebx, 2
sub eax, dword [esp + 0x18]
inc ebx
mov dword [esp + 0x58], eax
mov ebp, eax
lea eax, [ebx*4]
mov dword [esp + 0x40], eax
mov eax, dword [edx - 0xc]
lea edx, [edx + 0x10]
mov dword [ecx - 4], eax
mov eax, dword [ecx + ebp]
mov dword [ecx], eax
mov eax, dword [edx - 0x14]
mov dword [ecx + 4], eax
mov eax, dword [edx - 0x10]
mov dword [ecx + 8], eax
add ecx, 0x10
sub ebx, 1
jne 0x586925
mov ebp, dword [esp + 0x9c]
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
cmp edx, esi
jge 0x586984
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
sub ebp, eax
sub esi, edx
lea ecx, [eax + edx*4]
nop dword [eax]
mov eax, dword [ecx + ebp]
mov dword [ecx], eax
add ecx, 4
sub esi, 1
jne 0x586970
mov ebp, dword [esp + 0x9c]
cmp edi, ebx
jg 0x586a32
mov eax, ebx
sub eax, edi
inc eax
cmp eax, 4
jl 0x586a1b
mov ecx, dword [esp + 0x14]
lea eax, [edi*4 + 8]
mov dword [esp + 0x58], eax
sub ebx, edi
sub ebx, 3
shr ebx, 2
lea esi, [ecx + eax]
mov eax, 4
sub eax, ecx
mov dword [esp + 0x40], eax
mov eax, 0xfffffff8
sub eax, ecx
inc ebx
mov dword [esp + 0x3c], eax
lea edi, [edi + ebx*4]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x58]
mov ecx, dword [ebp]
lea edx, [eax + esi]
mov eax, dword [esi - 8]
lea edi, [edi + 0x10]
mov dword [edx + ecx], eax
mov ecx, dword [ebp]
mov eax, dword [esi - 4]
mov dword [ecx + edx + 4], eax
mov ecx, dword [ebp]
mov eax, dword [esi]
mov edx, dword [esp + 0x40]
add edx, esi
mov dword [edi + ecx - 0x10], eax
mov ecx, dword [ebp]
mov eax, dword [esi + 4]
add esi, 0x10
mov dword [edx + ecx], eax
mov eax, dword [esp + 0x3c]
sub ebx, 1
jne 0x5869d6
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x48]
cmp edi, ebx
jg 0x586a32
nop
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
mov eax, dword [eax + edi*4]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebx
jle 0x586a20
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x90]
mov dword [esp], 0x7f7fffee
push 1
push dword [esp + 0x24]
mov eax, dword [ecx]
push ebx
push ecx
movss xmm0, dword [eax + ebx*4]
movss dword [esp], xmm0
push dword [esp + 0xa4]
push ecx
push edi
push dword [esi]
call fcn.00586c80
mov eax, dword [esp + 0x34]
add esp, 0x24
dec dword [esi]
dec eax
mov dword [esp + 0x10], eax
lea ecx, [eax + 1]
lea eax, [edi*2 + 2]
cmp ecx, eax
jle 0x586b98
push ecx
lea eax, [esp + 0x78]
push eax
push ebx
call fcn.00588270
mov eax, dword [esp + 0x90]
mov esi, ebx
sub ebx, dword [esp + 0x28]
sub esi, edi
add ebx, dword [esp + 0x94]
push dword [esp + 0x1c]
mov edi, dword [eax]
mov eax, edi
push dword [esp + 0x9c]
cmp ebx, edi
cmovl eax, ebx
push eax
call fcn.00588230
mov ebx, dword [esp + 0xa4]
add esp, 0x18
push eax
mov eax, dword [esp + 0x60]
cmp esi, eax
push dword [esp + 0x14]
cmovg eax, esi
push ebx
push eax
call fcn.00588230
add esp, 0xc
push eax
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push ebx
push edi
call fcn.00587340
mov eax, dword [esp + 0x44]
add esp, 0x1c
test eax, eax
js 0x586b45
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x1c]
call dword [eax + 0x10]
jmp 0x586b45
mov ebx, dword [esp + 0x88]
mov dword [edx], 0x7f7fffee
mov esi, dword [esp + 0x10]
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00588950
push dword [esp + 0x94]
mov edi, eax
mov dword [esp + 0x58], eax
push esi
push edi
call fcn.00586430
mov dword [esp + 0x30], eax
add esp, 0x14
mov eax, dword [esp + 0x74]
movss xmm0, dword [eax + edi*4]
lea edx, [eax + edi*4]
ucomiss xmm0, dword [0x77fe14]
mov dword [esp + 0x18], edx
lahf
test ah, 0x44
jnp 0x586bba
mov edx, dword [esp + 0x1c]
jmp 0x5866f4
mov eax, dword [esp + 0x28]
test eax, eax
js 0x586bba
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x1c]
call dword [eax + 0x10]
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0x60]
sub ebx, dword [eax]
mov eax, dword [esp + 0x64]
test eax, eax
js 0x586bed
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x54]
call dword [eax + 0x10]
mov eax, dword [esp + 0x68]
test eax, eax
js 0x586c0f
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x58]
call dword [eax + 0x10]
mov eax, dword [esp + 0x6c]
test eax, eax
js 0x586c31
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x18]
call dword [eax + 0x10]
mov eax, dword [esp + 0x70]
test eax, eax
js 0x586c53
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x24]
call dword [eax + 0x10]
test esi, esi
js 0x586c73
mov edx, dword [0x7d8954]
and esi, 0x3fffffff
shl esi, 2
mov ecx, 0x7d8954
push esi
push dword [esp + 0x78]
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x70
ret