Function at 0x5a20a0
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x663ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp + 0x28], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
wait
push 1
mov eax, dword [0x75ebc0]
push eax
call fcn.005b4f40
mov ecx, esi
call fcn.005b3fb0
mov ecx, esi
call fcn.005b4530
lea ecx, [ebp + 0x68]
call fcn.00402510
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.005b4670
mov dword [ebp + 0x20], 3
mov dword [ebp + 0x24], ebx
lea ecx, [ebp - 0x40]
push ecx
call fcn.00623d61
lea edx, [ebp + 0x2c]
push edx
call fcn.00623d61
add esp, 8
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov edi, edi
cmp dword [esi + 0x1c], ebx
je 0x5a2195
lea ecx, [esi + 0x28]
call fcn.00559aa0
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x28]
push eax
push 0x1471
push 0x111
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402580
mov eax, 0x7540
wait
jmp 0x5a2706
mov ecx, esi
call fcn.005b3ba0
mov byte [ebp + 0x38], al
test al, al
je 0x5a21c1
lea eax, [ebp + 0xc]
push eax
call fcn.00623d61
add esp, 4
mov ecx, dword [esi + 0x1c8]
mov dword [ebp + 0x3c], ecx
mov edx, dword [esi + 0x1cc]
mov dword [ebp + 0x40], edx
lea eax, [ebp + 0x20]
push eax
lea ecx, [esi + 0x658]
push ecx
lea edx, [esi + 0x454]
push edx
lea eax, [esi + 0x250]
push eax
push ebx
call sub.WS2_32.dll_select
mov edi, eax
cmp dword [esi + 0x1c], ebx
je 0x5a21f1
lea ecx, [esi + 0x28]
call fcn.00559aa0
jmp 0x5a217e
mov eax, dword [esi + 0x1c8]
or eax, dword [esi + 0x1cc]
jne 0x5a2230
lea ecx, [ebp + 0x2c]
push ecx
call fcn.00623d61
add esp, 4
mov edx, dword [ebp + 0x2c]
sub edx, dword [ebp - 0x40]
cmp edx, 0x12c
jle 0x5a2230
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402580
mov eax, 0x7532
wait
jmp 0x5a2706
cmp edi, 0xffffffff
je 0x5a226b
cmp edi, ebx
je 0x5a226b
xor edi, edi
mov dword [ebp + 0x5c], edi
cmp edi, dword [esi + 0x1b0]
jge 0x5a226b
mov eax, edi
imul eax, eax, 0x32d8
mov ecx, dword [esi + 0x24c]
add ecx, eax
cmp dword [ecx + 0x9c], ebx
je 0x5a2268
cmp dword [esi + 0x1c], ebx
jne 0x5a21e7
call fcn.005a0780
inc edi
jmp 0x5a223b
mov edx, dword [ebp + 0x38]
push edx
push ebx
mov ecx, esi
call fcn.005b4710
lea eax, [ebp - 0x34]
push eax
call fcn.00623d61
add esp, 4
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp + 0x2c]
imul ecx, ecx, 0x3e8
movzx edx, word [ebp + 0x30]
sub ecx, edx
movzx eax, word [ebp - 0x30]
add ecx, eax
cmp ecx, 0xfa
jl 0x5a22dd
lea ecx, [ebp + 0x2c]
push ecx
call fcn.00623d61
add esp, 4
xor edi, edi
mov dword [ebp + 0x5c], edi
cmp edi, dword [esi + 0x1b0]
jge 0x5a22dd
mov edx, edi
imul edx, edx, 0x32d8
mov eax, dword [esi + 0x24c]
lea ecx, [edx + eax]
cmp dword [ecx + 0x9c], ebx
je 0x5a22da
call fcn.00577040
inc edi
jmp 0x5a22b1
cmp byte [ebp + 0x38], 0
je 0x5a24ca
mov eax, dword [esi + 0x1c8]
cmp dword [esi + 0x1cc], 0
jl 0x5a24ca
jg 0x5a2307
cmp eax, 0x400
jbe 0x5a24ca
mov ecx, esi
call fcn.005b3b70
mov dword [ebp + 0x54], eax
mov ebx, edx
lea ecx, [ebp]
push ecx
call fcn.00623d61
add esp, 4
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
sub eax, dword [ebp + 0x3c]
sbb ecx, dword [ebp + 0x40]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], ecx
js 0x5a24ca
jg 0x5a2347
test eax, eax
jbe 0x5a24ca
mov eax, dword [ebp]
sub eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
movzx edx, word [ebp + 0x10]
sub eax, edx
movzx ecx, word [ebp + 4]
add eax, ecx
mov dword [ebp + 0x44], eax
jne 0x5a236b
mov dword [ebp + 0x44], 1
fild qword [ebp + 0x18]
fmul qword [0x687b30]
fidiv dword [ebp + 0x44]
call fcn.006224d6
mov ecx, eax
mov edi, edx
cmp edi, ebx
jl 0x5a24ca
jg 0x5a2393
cmp ecx, dword [ebp + 0x54]
jbe 0x5a24ca
sub ecx, dword [ebp + 0x54]
sbb edi, ebx
mov eax, dword [ebp + 0x44]
cdq
push edx
push eax
push edi
push ecx
call fcn.00624b80
push ebx
mov ecx, dword [ebp + 0x54]
push ecx
push edx
push eax
call fcn.00624220
mov edi, eax
mov dword [ebp + 0x48], edi
mov eax, dword [esi + 0x1d0]
cdq
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
push 0
push 2
push ebx
mov edx, dword [ebp + 0x54]
push edx
call fcn.00624220
cmp dword [ebp + 0x64], edx
jg 0x5a23f0
jl 0x5a23dd
cmp dword [ebp + 0x60], eax
jae 0x5a23f0
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x5a241c
push 0
push 9
push ebx
mov ecx, dword [ebp + 0x54]
push ecx
call fcn.00624b80
push 0
push 0xa
push edx
push eax
call fcn.00624220
cmp dword [ebp + 0x64], edx
jg 0x5a2421
jl 0x5a2415
cmp dword [ebp + 0x60], eax
jae 0x5a2421
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp + 0x48], edi
cmp edi, 0x2ee0
jle 0x5a2433
mov edi, 0x2ee0
mov dword [ebp + 0x48], edi
jmp 0x5a243b
test edi, edi
jle 0x5a24ca
mov eax, dword [esi + 0x85c]
cmp eax, 0xffffffff
je 0x5a24c3
lea ebx, [esi + 0x250]
mov dword [ebx], 0
mov dword [esi + 0x454], 0
lea ecx, [esi + 0x658]
mov dword [ecx], 0
mov dword [esi + 0x254], eax
inc dword [ebx]
mov eax, dword [ecx]
cmp eax, 0x80
jae 0x5a2488
mov edx, dword [esi + 0x85c]
mov dword [esi + eax*4 + 0x65c], edx
inc dword [ecx]
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 0x4c], eax
imul eax, eax, 0x3e8
sub edi, eax
imul edi, edi, 0x3e8
mov dword [ebp + 0x50], edi
lea eax, [ebp + 0x4c]
push eax
push ecx
lea eax, [esi + 0x454]
push eax
push ebx
push 0
call sub.WS2_32.dll_select
jmp 0x5a24ca
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.005a15d0
mov edi, eax
test edi, edi
je 0x5a26db
cmp dword [esi + 0x1c], 0
jne 0x5a21e7
cmp edi, 0x753c
je 0x5a2688
cmp edi, 0xffffffff
je 0x5a2688
mov ecx, dword [esi + 0x1cc]
push ecx
mov edx, dword [esi + 0x1c8]
push edx
mov eax, dword [0x75ebbc]
push eax
lea ecx, [ebp + 0x68]
push ecx
call fcn.00402f80
add esp, 0x10
push 1
mov edx, dword [ebp + 0x68]
push edx
mov ecx, esi
call fcn.005b4f40
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
mov edx, dword [esi + 0x1c0]
mov edi, dword [esi + 0x1c4]
mov dword [ebp + 0x50], edi
mov edi, edx
cmp eax, edi
jne 0x5a2553
mov edi, ecx
cmp edi, dword [ebp + 0x50]
je 0x5a2649
mov edi, edx
mov ebx, dword [esi + 0x1c4]
or edi, ebx
je 0x5a2649
mov dword [ebp + 0x60], edx
mov edx, ebx
mov dword [ebp + 0x64], edx
mov edi, dword [esi + 0x24c]
mov edx, dword [esi + 0x86c]
mov edi, dword [edi + 0x31fc]
imul edi, edx
mov dword [ebp + 0x50], 0
add edi, eax
mov dword [ebp + 0x54], edi
mov edi, ecx
mov ebx, dword [ebp + 0x50]
adc ebx, edi
mov dword [ebp + 0x58], ebx
mov edi, dword [ebp + 0x60]
cmp dword [ebp + 0x54], edi
jne 0x5a25a9
mov edi, dword [ebp + 0x64]
cmp ebx, edi
je 0x5a2649
mov ebx, dword [esi + 0x1c0]
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], ecx
mov ecx, dword [esi + 0x24c]
mov edi, dword [ecx + 0x31fc]
mov ecx, dword [esi + 0x1c4]
push ecx
push ebx
mov ecx, edi
imul ecx, edx
xor ebx, ebx
add ecx, eax
adc ebx, dword [ebp + 0x50]
push ebx
push ecx
push edi
push edx
mov edx, dword [ebp + 0x64]
push edx
push eax
push str.Error_NMSD__ttd_I64d__ttsp_ld__mpln_ld__s1_I64d__fsize_I64d_n
lea ecx, [ebp + 0x68]
push ecx
call fcn.00402f80
add esp, 0x28
mov edx, dword [ebp + 0x68]
push edx
mov ecx, esi
call fcn.005b3e00
mov ecx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1cc]
mov edx, dword [esi + 0x1c0]
cmp eax, dword [esi + 0x1c4]
jl 0x5a2634
jg 0x5a261d
cmp ecx, edx
jbe 0x5a2634
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402580
mov eax, 0x7570
wait
jmp 0x5a2706
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402580
or eax, 0xffffffff
wait
jmp 0x5a2706
xor edi, edi
mov dword [ebp + 0x5c], edi
cmp edi, dword [esi + 0x1b0]
jge 0x5a2677
mov eax, edi
imul eax, eax, 0x32d8
mov ecx, dword [esi + 0x24c]
add ecx, eax
cmp dword [ecx + 0x9c], 0
je 0x5a2674
call fcn.00577040
inc edi
jmp 0x5a264b
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402580
xor eax, eax
wait
jmp 0x5a2706
mov edx, dword [esi + 0x1cc]
push edx
mov eax, dword [esi + 0x1c8]
push eax
mov ecx, dword [0x75ebc8]
push ecx
lea edx, [ebp + 0x68]
push edx
call fcn.00402f80
add esp, 0x10
push 1
mov eax, dword [ebp + 0x68]
push eax
mov ecx, esi
call fcn.005b4f40
mov esi, dword [esi + 0x14c]
test esi, esi
je 0x5a26c8
cmp edi, 0x753c
je 0x5a26ca
mov esi, edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402580
mov eax, esi
wait
jmp 0x5a2706
mov ecx, esi
call fcn.005a12f0
xor ebx, ebx
jmp 0x5a2130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret