Function at 0x596c90
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62d228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x6d3510]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push 1
push eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], ebx
call fcn.005a81e0
mov ecx, esi
call fcn.005a8d50
mov ecx, esi
call fcn.005a97b0
mov ecx, dword [0x6cd768]
mov dword [ebp - 0x14], ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.005a84b0
lea edx, [ebp - 0xa4]
mov dword [ebp - 0x54], 3
push edx
mov dword [ebp - 0x50], ebx
call fcn.005e8b67
lea eax, [ebp - 0x48]
push eax
call fcn.005e8b67
add esp, 8
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
cmp dword [esi + 0x1c], ebx
je 0x596d74
lea ecx, [esi + 0x28]
call fcn.0054b6d0
mov ecx, dword [esi + 0x1bc]
mov eax, dword [esi + 0x1b8]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x88], ecx
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0x1c0]
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], ebx
mov eax, dword [edx]
push ecx
push 0x1471
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x597183
mov ecx, esi
call fcn.005a7fe0
test al, al
mov byte [ebp - 0x20], al
je 0x596da0
lea ecx, [ebp - 0x68]
push ecx
call fcn.005e8b67
mov edx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1c4]
add esp, 4
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x54]
lea edx, [esi + 0x650]
push ecx
lea eax, [esi + 0x44c]
push edx
lea ecx, [esi + 0x248]
push eax
push ecx
push ebx
call sub.WS2_32.dll_select
mov edi, eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jne 0x59717b
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
or eax, ecx
jne 0x596e1c
lea edx, [ebp - 0x48]
push edx
call fcn.005e8b67
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0xa4]
sub eax, edx
add esp, 4
cmp eax, 0x12c
jle 0x596e1c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, 0x7532
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x596e63
cmp edi, ebx
je 0x596e63
xor edi, edi
cmp edi, dword [esi + 0x1a8]
jge 0x596e6a
lea eax, [edi + edi*2]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*4]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x244]
lea ecx, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x84]
cmp eax, ebx
je 0x596e60
cmp dword [esi + 0x1c], ebx
jne 0x59717b
call fcn.005953f0
inc edi
jmp 0x596e27
mov ecx, esi
call fcn.00597750
mov ecx, dword [ebp - 0x20]
push ecx
push ebx
mov ecx, esi
call fcn.005a8580
lea edx, [ebp - 0x98]
push edx
call fcn.005e8b67
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x48]
sub eax, ecx
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x94]
and ecx, 0xffff
lea eax, [eax + eax*4]
and edx, 0xffff
add esp, 4
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, ecx
add eax, edx
cmp eax, 0xfa
jl 0x596f43
lea eax, [ebp - 0x48]
push eax
call fcn.005e8b67
add esp, 4
xor ebx, ebx
cmp ebx, dword [esi + 0x1a8]
jge 0x596f43
lea eax, [ebx + ebx*2]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
lea eax, [ebx + ecx*4]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x244]
lea edi, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x84]
test eax, eax
je 0x596f40
mov ecx, dword [edi + 0xa0]
mov edx, dword [ecx]
cmp dword [edx], 0
je 0x596f40
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
or eax, ecx
je 0x596f40
lea eax, [edi + 0x3e8]
mov ecx, edi
push eax
call fcn.005515d0
mov ecx, dword [edi + 0xa0]
lea eax, [edi + 0x3e8]
push eax
push 0x13ef
mov edx, dword [ecx]
push 0x111
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
jmp 0x596ece
mov al, byte [ebp - 0x20]
test al, al
je 0x597159
mov ecx, dword [esi + 0x1c4]
mov eax, dword [esi + 0x1c0]
test ecx, ecx
jl 0x597159
jg 0x596f6f
cmp eax, 0x400
jbe 0x597159
mov ecx, esi
call fcn.005a7fa0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x3c], eax
push ecx
mov ebx, edx
call fcn.005e8b67
mov eax, dword [esi + 0x1c0]
mov edi, dword [ebp - 0x34]
mov ecx, dword [esi + 0x1c4]
mov edx, dword [ebp - 0x30]
add esp, 4
sub eax, edi
sbb ecx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
js 0x597159
jg 0x596fb3
test eax, eax
jbe 0x597159
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x68]
sub eax, edx
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x70]
and edx, 0xffff
lea eax, [eax + eax*4]
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, edx
add eax, ecx
mov dword [ebp - 0x2c], eax
jne 0x596fe9
mov dword [ebp - 0x2c], 1
fild qword [ebp - 0x28]
fmul dword [0x636a28]
fidiv dword [ebp - 0x2c]
call fcn.005e7794
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x597159
jg 0x597011
cmp ecx, dword [ebp - 0x3c]
jbe 0x597159
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
sub ecx, edx
cdq
sbb edi, ebx
push edx
push eax
push edi
push ecx
call fcn.005e9a70
mov ecx, dword [ebp - 0x3c]
push ebx
push ecx
push edx
push eax
call fcn.005e9080
mov edi, eax
mov eax, dword [esi + 0x1c8]
cdq
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x3c]
push 0
push 2
push ebx
push edx
mov dword [ebp - 0x1c], eax
call fcn.005e9080
cmp dword [ebp - 0x18], edx
jg 0x59706f
jl 0x59705a
cmp dword [ebp - 0x1c], eax
jae 0x59706f
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x59709d
mov ecx, dword [ebp - 0x3c]
push 0
push 9
push ebx
push ecx
call fcn.005e9a70
push 0
push 0xa
push edx
push eax
call fcn.005e9080
cmp dword [ebp - 0x18], edx
jg 0x59709d
jl 0x597094
cmp dword [ebp - 0x1c], eax
jae 0x59709d
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x5970ac
mov edi, 0x2ee0
jmp 0x5970b4
test edi, edi
jle 0x597159
mov eax, dword [esi + 0x854]
cmp eax, 0xffffffff
je 0x597152
lea ecx, [esi + 0x248]
lea ebx, [esi + 0x650]
mov dword [esi + 0x44c], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [esi + 0x24c], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, 0x80
jae 0x59710b
mov edx, dword [esi + 0x854]
mov dword [esi + eax*4 + 0x654], edx
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x5c], edx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
sub edi, edx
lea edx, [ebp - 0x5c]
push edx
push ebx
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp - 0x58], eax
lea eax, [esi + 0x44c]
push eax
push ecx
push 0
call sub.WS2_32.dll_select
jmp 0x597159
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00597760
mov edi, eax
test edi, edi
jne 0x597174
mov ecx, esi
call fcn.00597420
xor ebx, ebx
jmp 0x596d15
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5971a5
lea ecx, [esi + 0x28]
call fcn.0054b6d0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x753c
je 0x5973ab
cmp edi, 0xffffffff
je 0x5973ab
mov eax, dword [esi + 0x1c4]
mov ecx, dword [esi + 0x1c0]
mov edx, dword [0x6d3514]
push eax
push ecx
lea eax, [ebp - 0x14]
push edx
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push 1
push ecx
mov ecx, esi
call fcn.005a81e0
mov edi, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp edi, eax
jne 0x59720e
mov edx, dword [esi + 0x1c4]
mov ebx, ecx
cmp edx, ebx
je 0x597315
mov edx, eax
or edx, ecx
je 0x597315
mov edx, dword [esi + 0x1c4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x864]
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 0x244]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx + 0x31dc]
imul eax, ecx
mov dword [ebp - 0x20], ecx
xor ecx, ecx
mov edx, eax
mov ebx, ecx
add edx, edi
adc ebx, dword [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x1c]
cmp edx, ebx
jne 0x597262
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
cmp ebx, edx
je 0x597315
mov edx, dword [esi + 0x1c4]
mov dword [ebp - 0x28], edi
mov ebx, edx
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x1bc]
push edx
mov edx, dword [esi + 0x1b8]
push edx
mov edx, edi
add eax, edx
lea edx, [ebp - 0x14]
adc ecx, ebx
push ecx
push eax
mov eax, dword [ebp - 0x20]
mov ecx, ebx
push eax
mov eax, dword [esi + 0x864]
push eax
push ecx
push edi
push str.Error_NMSD__ttd_I64d__ttsp_ld__mpln_ld__s1_I64d__fsize_I64d_n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x14]
add esp, 0x28
mov ecx, esi
push eax
call fcn.005a8330
mov eax, dword [esi + 0x1c4]
mov edi, dword [esi + 0x1bc]
mov ecx, dword [esi + 0x1c0]
mov edx, dword [esi + 0x1b8]
cmp eax, edi
jl 0x5972f5
jg 0x5972d3
cmp ecx, edx
jbe 0x5972f5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, 0x7570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00603a3c
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp ebx, dword [esi + 0x1a8]
jge 0x59738c
lea eax, [ebx + ebx*2]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
lea eax, [ebx + ecx*4]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x244]
lea edi, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x84]
test eax, eax
je 0x597389
mov ecx, dword [edi + 0xa0]
mov edx, dword [ecx]
cmp dword [edx], 0
je 0x597389
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
or eax, ecx
je 0x597389
lea eax, [edi + 0x3e8]
mov ecx, edi
push eax
call fcn.005515d0
mov ecx, dword [edi + 0xa0]
lea eax, [edi + 0x3e8]
push eax
push 0x13ef
mov edx, dword [ecx]
push 0x111
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
jmp 0x597317
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00603a3c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x1c4]
mov edx, dword [esi + 0x1c0]
mov eax, dword [0x6d3508]
push ecx
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, esi
push 1
push edx
call fcn.005a81e0
mov esi, dword [esi + 0x140]
test esi, esi
je 0x5973ea
cmp edi, 0x753c
je 0x5973ec
mov esi, edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret