Function at 0x5a71a0
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x6574f8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
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 + 0x2c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
wait
push 1
mov eax, dword [0x74f9a8]
push eax
call fcn.005a90a0
mov ecx, esi
call fcn.005a80a0
mov ecx, esi
call fcn.005a86a0
lea ecx, [ebp + 0x68]
call fcn.00402500
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.005a87e0
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x24], 5
jne 0x5a721e
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], 0xc8
jmp 0x5a7228
mov dword [ebp + 0x30], 3
mov dword [ebp + 0x34], ebx
lea edx, [ebp - 0x40]
push edx
call fcn.00616d61
lea eax, [ebp + 0x20]
push eax
call fcn.00616d61
add esp, 8
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], ebx
cmp dword [esi + 0x1c], ebx
je 0x5a72a8
lea ecx, [esi + 0x28]
call fcn.0054fb20
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
push ecx
push 0x1471
push 0x111
mov edx, dword [esi + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402570
mov eax, 0x7540
wait
jmp 0x5a77c9
mov ecx, esi
call fcn.005a7c90
mov byte [ebp + 0x40], al
test al, al
je 0x5a72d4
lea ecx, [ebp + 0xc]
push ecx
call fcn.00616d61
add esp, 4
mov edx, dword [esi + 0x1c0]
mov dword [ebp + 0x38], edx
mov eax, dword [esi + 0x1c4]
mov dword [ebp + 0x3c], eax
lea ecx, [ebp + 0x30]
push ecx
lea edx, [esi + 0x64c]
push edx
lea eax, [esi + 0x448]
push eax
lea ecx, [esi + 0x244]
push ecx
push ebx
call sub.WS2_32.dll_select
mov edi, eax
cmp dword [esi + 0x1c], ebx
jne 0x5a7444
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
jne 0x5a733c
lea edx, [ebp + 0x20]
push edx
call fcn.00616d61
add esp, 4
mov eax, dword [ebp + 0x20]
sub eax, dword [ebp - 0x40]
cmp eax, 0x12c
jle 0x5a733c
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402570
mov eax, 0x7532
wait
jmp 0x5a77c9
cmp edi, 0xffffffff
je 0x5a7381
cmp edi, ebx
je 0x5a7381
mov dword [esi + 0x858], ebx
xor edi, edi
mov dword [ebp + 0x64], edi
cmp edi, dword [esi + 0x1a8]
jge 0x5a738e
mov ecx, edi
imul ecx, ecx, 0x4a48
mov edx, dword [esi + 0x240]
add ecx, edx
cmp dword [ecx + 0x94], ebx
je 0x5a737e
cmp dword [esi + 0x1c], ebx
jne 0x5a7444
call fcn.005a5c60
inc edi
jmp 0x5a734d
mov ecx, esi
call fcn.005a6870
inc dword [esi + 0x858]
mov eax, dword [ebp + 0x40]
push eax
push ebx
mov ecx, esi
call fcn.005a8880
lea ecx, [ebp - 0x34]
push ecx
call fcn.00616d61
add esp, 4
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp + 0x20]
imul edx, edx, 0x3e8
movzx eax, word [ebp + 0x24]
sub edx, eax
movzx ecx, word [ebp - 0x30]
add edx, ecx
cmp edx, 0xfa
jl 0x5a73ff
lea edx, [ebp + 0x20]
push edx
call fcn.00616d61
add esp, 4
xor edi, edi
mov dword [ebp + 0x64], edi
cmp edi, dword [esi + 0x1a8]
jge 0x5a73ff
mov eax, edi
imul eax, eax, 0x4a48
mov ecx, dword [esi + 0x240]
add ecx, eax
cmp dword [ecx + 0x94], ebx
je 0x5a73fc
call fcn.0056cb60
inc edi
jmp 0x5a73d4
mov edi, dword [esi + 0xc]
cmp byte [edi + 0x342], 0
je 0x5a7451
mov ecx, 0x74f0a0
call fcn.0056cc70
test al, al
je 0x5a7451
fldz
fcomp qword [edi + 0x3a8]
fnstsw ax
test ah, 5
jnp 0x5a7437
mov edx, dword [esi + 0x240]
cmp dword [edx + 0xe4], 0x64
jbe 0x5a7451
mov ecx, dword [esi + 0x240]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
lea ecx, [esi + 0x28]
call fcn.0054fb20
jmp 0x5a7291
cmp byte [ebp + 0x40], 0
je 0x5a763e
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jl 0x5a763e
jg 0x5a747b
cmp eax, 0x400
jbe 0x5a763e
mov ecx, esi
call fcn.005a7c60
mov dword [ebp + 0x44], eax
mov ebx, edx
lea eax, [ebp]
push eax
call fcn.00616d61
add esp, 4
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
sub eax, dword [ebp + 0x38]
sbb ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], ecx
js 0x5a763e
jg 0x5a74bb
test eax, eax
jbe 0x5a763e
mov eax, dword [ebp]
sub eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
movzx ecx, word [ebp + 0x10]
sub eax, ecx
movzx edx, word [ebp + 4]
add eax, edx
mov dword [ebp + 0x60], eax
jne 0x5a74df
mov dword [ebp + 0x60], 1
fild qword [ebp + 0x18]
fmul qword [0x6796f0]
fidiv dword [ebp + 0x60]
call fcn.006154d6
mov ecx, eax
mov edi, edx
cmp edi, ebx
jl 0x5a763e
jg 0x5a7507
cmp ecx, dword [ebp + 0x44]
jbe 0x5a763e
sub ecx, dword [ebp + 0x44]
sbb edi, ebx
mov eax, dword [ebp + 0x60]
cdq
push edx
push eax
push edi
push ecx
call fcn.00617ef0
push ebx
mov ecx, dword [ebp + 0x44]
push ecx
push edx
push eax
call fcn.00617220
mov edi, eax
mov dword [ebp + 0x5c], edi
mov eax, dword [esi + 0x1c8]
cdq
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], edx
push 0
push 2
push ebx
mov edx, dword [ebp + 0x44]
push edx
call fcn.00617220
cmp dword [ebp + 0x58], edx
jg 0x5a7564
jl 0x5a7551
cmp dword [ebp + 0x54], eax
jae 0x5a7564
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x5a7590
push 0
push 9
push ebx
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.00617ef0
push 0
push 0xa
push edx
push eax
call fcn.00617220
cmp dword [ebp + 0x58], edx
jg 0x5a7595
jl 0x5a7589
cmp dword [ebp + 0x54], eax
jae 0x5a7595
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp + 0x5c], edi
cmp edi, 0x2ee0
jle 0x5a75a7
mov edi, 0x2ee0
mov dword [ebp + 0x5c], edi
jmp 0x5a75af
test edi, edi
jle 0x5a763e
mov eax, dword [esi + 0x850]
cmp eax, 0xffffffff
je 0x5a7637
lea ebx, [esi + 0x244]
mov dword [ebx], 0
mov dword [esi + 0x448], 0
lea ecx, [esi + 0x64c]
mov dword [ecx], 0
mov dword [esi + 0x248], eax
inc dword [ebx]
mov eax, dword [ecx]
cmp eax, 0x80
jae 0x5a75fc
mov edx, dword [esi + 0x850]
mov dword [esi + eax*4 + 0x650], 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 + 0x448]
push eax
push ebx
push 0
call sub.WS2_32.dll_select
jmp 0x5a763e
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.005a6910
mov edi, eax
mov ecx, esi
test edi, edi
je 0x5a77a0
push str.Flagexit_n
call fcn.005a7ef0
cmp dword [esi + 0x1c], 0
jne 0x5a7444
cmp edi, 0x753c
je 0x5a774d
cmp edi, 0xffffffff
je 0x5a774d
mov ecx, dword [esi + 0x1c4]
push ecx
mov edx, dword [esi + 0x1c0]
push edx
mov eax, dword [0x74f9a4]
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.005a90a0
mov edx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1c4]
mov dword [ebp + 0x50], eax
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp edx, eax
jne 0x5a76cf
mov edi, dword [ebp + 0x50]
mov ebx, ecx
cmp edi, ebx
je 0x5a770e
mov edi, eax
or edi, ecx
je 0x5a770e
mov esi, dword [ebp + 0x50]
cmp esi, ecx
jl 0x5a76f9
jg 0x5a76e2
cmp edx, eax
jbe 0x5a76f9
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402570
mov eax, 0x7570
wait
jmp 0x5a77c9
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402570
or eax, 0xffffffff
wait
jmp 0x5a77c9
xor edi, edi
mov dword [ebp + 0x64], edi
cmp edi, dword [esi + 0x1a8]
jge 0x5a773c
mov ecx, edi
imul ecx, ecx, 0x4a48
mov edx, dword [esi + 0x240]
add ecx, edx
cmp dword [ecx + 0x94], 0
je 0x5a7739
call fcn.0056cb60
inc edi
jmp 0x5a7710
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402570
xor eax, eax
wait
jmp 0x5a77c9
mov eax, dword [esi + 0x1c4]
push eax
mov ecx, dword [esi + 0x1c0]
push ecx
mov edx, dword [0x74f9b0]
push edx
lea eax, [ebp + 0x68]
push eax
call fcn.00402f80
add esp, 0x10
push 1
mov ecx, dword [ebp + 0x68]
push ecx
mov ecx, esi
call fcn.005a90a0
mov esi, dword [esi + 0x140]
test esi, esi
je 0x5a778d
cmp edi, 0x753c
je 0x5a778f
mov esi, edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x68]
call fcn.00402570
mov eax, esi
wait
jmp 0x5a77c9
call fcn.005a6b70
xor ebx, ebx
jmp 0x5a7243
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