Function at 0x4f1960
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559c98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
mov eax, dword [0x5bb568]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], ebx
call fcn.004f4120
mov ecx, esi
call fcn.004f4a60
mov ecx, esi
call fcn.004f4f60
mov ecx, esi
call fcn.004f4320
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x70], 3
push ecx
mov dword [ebp - 0x6c], ebx
call fcn.0051dd2e
lea edx, [ebp - 0x38]
push edx
call fcn.0051dd2e
add esp, 8
cmp dword [esi + 0x38], ebx
je 0x4f1a33
lea ecx, [esi + 0x48]
call fcn.004c5fb0
mov ecx, dword [esi + 0x210]
mov edx, dword [esi + 0x214]
lea eax, [esi + 0x20]
mov dword [esi + 0x30], ebx
push eax
push 0x1389
mov dword [eax], ecx
mov ecx, dword [esi + 0x218]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x21c]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
push 0x111
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
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
lea edx, [ebp - 0x70]
lea eax, [esi + 0x6a8]
push edx
lea ecx, [esi + 0x4a4]
push eax
lea edx, [esi + 0x2a0]
push ecx
push edx
push ebx
call sub.WSOCK32.dll_select
mov edi, eax
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x4f1a79
lea ecx, [esi + 0x48]
call fcn.004c5fb0
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
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x21c]
or eax, ecx
jne 0x4f1abe
lea eax, [ebp - 0x38]
push eax
call fcn.0051dd2e
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x88]
sub ecx, edx
add esp, 4
cmp ecx, 0x12c
jle 0x4f1abe
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 0x4f1b19
cmp edi, ebx
je 0x4f1b19
xor edi, edi
cmp edi, dword [esi + 0x1fc]
jge 0x4f1b20
mov eax, edi
mov ecx, dword [esi + 0x29c]
shl eax, 6
sub eax, edi
lea edx, [eax + eax*2]
lea eax, [edi + edx*4]
shl eax, 4
add ecx, eax
cmp dword [ecx + 0x54], ebx
je 0x4f1b16
cmp dword [esi + 0x38], ebx
je 0x4f1b11
lea ecx, [esi + 0x48]
call fcn.004c5fb0
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
call fcn.004f0060
inc edi
jmp 0x4f1ac9
mov ecx, esi
call fcn.004b7c70
push ebx
mov ecx, esi
call fcn.004f43f0
lea edx, [ebp - 0x7c]
push edx
call fcn.0051dd2e
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x38]
sub eax, edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x78]
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 0x4f1c1b
lea eax, [ebp - 0x38]
push eax
call fcn.0051dd2e
add esp, 4
xor edi, edi
cmp edi, dword [esi + 0x1fc]
jge 0x4f1c19
mov eax, edi
shl eax, 6
sub eax, edi
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x29c]
lea edx, [edi + ecx*4]
shl edx, 4
add eax, edx
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x4f1c13
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx]
cmp dword [ecx], 0
je 0x4f1c13
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov ebx, ecx
or ebx, edx
je 0x4f1c13
mov dword [ebp - 0x5c], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x58]
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [edx]
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [eax]
push 0x13ef
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
jmp 0x4f1b77
xor ebx, ebx
mov ecx, esi
call fcn.004f2220
mov edi, eax
cmp edi, ebx
jne 0x4f1c34
mov ecx, esi
call fcn.004f1f20
jmp 0x4f19d0
cmp dword [esi + 0x38], ebx
je 0x4f1c57
lea ecx, [esi + 0x48]
call fcn.004c5fb0
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 0x4f1ea7
cmp edi, 0xffffffff
je 0x4f1ea7
mov edx, dword [esi + 0x21c]
mov eax, dword [esi + 0x218]
mov ecx, dword [0x5bb56c]
push edx
push eax
lea edx, [ebp - 0x108]
push ecx
push edx
call fcn.0051d0e8
add esp, 0x10
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004f4120
mov edi, dword [esi + 0x214]
mov edx, dword [esi + 0x210]
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x21c]
mov dword [ebp - 0x1c], edi
mov edi, edx
cmp eax, edi
jne 0x4f1ccc
mov ebx, dword [ebp - 0x1c]
mov edi, ecx
cmp edi, ebx
je 0x4f1dee
mov ebx, dword [esi + 0x214]
mov edi, edx
or edi, ebx
je 0x4f1dee
mov edi, dword [esi + 0x8bc]
mov dword [ebp - 0x18], edx
mov edx, ebx
mov ebx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [esi + 0x29c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], ecx
mov edx, dword [edx + 0x2e74]
imul edx, edi
add edx, ebx
mov ebx, dword [ebp - 0x1c]
adc ebx, ecx
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x18]
cmp edx, ebx
jne 0x4f1d24
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
cmp ebx, edx
je 0x4f1dee
mov edx, dword [0x5b5ecc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x29c]
mov ebx, dword [esi + 0x210]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov edx, dword [ecx + 0x2e74]
mov ecx, dword [esi + 0x214]
push ecx
mov ecx, edx
imul ecx, edi
push ebx
xor ebx, ebx
add ecx, eax
mov eax, dword [ebp - 0x24]
adc ebx, eax
mov eax, dword [ebp - 0x20]
push ebx
push ecx
push edx
mov edx, dword [ebp - 0x1c]
push edi
push edx
push eax
lea ecx, [ebp - 0x14]
push str.Error_NMSD__ttd_I64d__ttsp_ld__mpln_ld__s1_I64d__fsize_I64d_n
push ecx
call fcn.0053091a
mov edx, dword [ebp - 0x14]
add esp, 0x28
mov ecx, esi
push edx
call fcn.004f4240
mov eax, dword [esi + 0x21c]
mov edi, dword [esi + 0x214]
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x210]
cmp eax, edi
jl 0x4f1dce
jg 0x4f1dac
cmp ecx, edx
jbe 0x4f1dce
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
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.00537b04
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 edi, edi
cmp edi, dword [esi + 0x1fc]
jge 0x4f1e94
mov eax, edi
mov edx, dword [esi + 0x29c]
shl eax, 6
sub eax, edi
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
shl ecx, 4
lea eax, [ecx + edx]
mov ecx, dword [ecx + edx + 0x54]
test ecx, ecx
je 0x4f1e8e
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx]
cmp dword [ecx], 0
je 0x4f1e8e
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov ebx, ecx
or ebx, edx
je 0x4f1e8e
mov dword [ebp - 0x5c], edx
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x58]
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [edx]
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [eax]
push 0x13ef
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
jmp 0x4f1df0
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 edx, dword [esi + 0x21c]
mov eax, dword [esi + 0x218]
mov ecx, dword [0x5bb560]
push edx
push eax
lea edx, [ebp - 0x108]
push ecx
push edx
call fcn.0051d0e8
add esp, 0x10
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004f4120
mov esi, dword [esi + 0x1d4]
cmp esi, ebx
je 0x4f1ef1
cmp edi, 0x753c
mov eax, esi
je 0x4f1ddd
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret