Function at 0x545cb0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov eax, edx
mov dword [ebp - 0x340], 0
xor edx, edx
mov dword [ebp - 0x330], eax
push esi
push edi
mov dword [ebp - 0x334], edx
mov edi, ecx
mov edx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x348], edi
movlpd qword [ebp - 0x35c], xmm0
mov dword [ebp - 0x338], edx
test edx, edx
jl 0x545d1c
jg 0x545d0d
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x7fffffff
jb 0x545d1f
xor edx, edx
mov ebx, bind
mov dword [ebp - 0x338], edx
jmp 0x545d1f
mov ebx, dword [ebp + 0xc]
cmp edi, 0xffffffff
jne 0x545d6c
cmp eax, edi
jne 0x545d6c
cmp dword [ebp + 8], edi
jne 0x545d6c
test ebx, ebx
je 0x545d59
jns 0x545d52
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x545dd2
jg 0x545d76
test ebx, ebx
je 0x545dd2
mov dword [ebp - 0x334], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x358], 0
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [ebp - 0x35c], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [ebp - 0x354], eax
movups xmm0, xmmword [ebp - 0x35c]
movups xmmword [ebp - 0x35c], xmm0
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x330]
xor esi, esi
mov dword [ebp - 0x224], esi
cmp edi, 0xffffffff
je 0x545df6
mov esi, 1
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x118], edi
or ecx, 0xffffffff
mov edx, edi
cmp edi, ecx
mov edi, esi
cmove edx, ecx
mov ecx, edi
mov dword [ebp - 0x11c], ecx
cmp eax, 0xffffffff
je 0x545e9d
mov ecx, dword [ebp - 0x330]
xor eax, eax
test esi, esi
je 0x545e2e
nop
cmp dword [ebp + eax*4 - 0x220], ecx
je 0x545e2e
inc eax
cmp eax, esi
jb 0x545e20
cmp eax, esi
jne 0x545e4b
cmp esi, 0x40
jae 0x545e4b
mov dword [ebp + eax*4 - 0x220], ecx
mov esi, dword [ebp - 0x224]
inc esi
mov dword [ebp - 0x224], esi
xor eax, eax
test edi, edi
je 0x545e5f
cmp dword [ebp + eax*4 - 0x118], ecx
je 0x545e5f
inc eax
cmp eax, edi
jb 0x545e51
mov ecx, edi
mov dword [ebp - 0x11c], ecx
cmp eax, edi
jne 0x545e90
mov dword [ebp - 0x11c], ecx
cmp edi, 0x40
jae 0x545e90
mov ecx, dword [ebp - 0x330]
mov dword [ebp + eax*4 - 0x118], ecx
mov ecx, dword [ebp - 0x11c]
inc ecx
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x330], edx
cmova edx, dword [ebp - 0x330]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x32c], 0
cmp edi, 0xffffffff
je 0x545eee
xor eax, eax
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x32c], 1
test ecx, ecx
je 0x545ed3
cmp dword [ebp + eax*4 - 0x118], edi
je 0x545ed3
inc eax
cmp eax, ecx
jb 0x545ec5
cmp eax, ecx
jne 0x545ee9
cmp ecx, 0x40
jae 0x545ee9
mov dword [ebp + eax*4 - 0x118], edi
inc dword [ebp - 0x11c]
cmp edi, edx
cmova edx, edi
mov edi, dword [ebp - 0x338]
test edi, edi
jg 0x545f0a
jl 0x545efe
test ebx, ebx
jae 0x545f0a
mov dword [ebp - 0x33c], 0
jmp 0x545f13
lea eax, [ebp - 0x10]
mov dword [ebp - 0x33c], eax
lea eax, [edx + 1]
mov dword [ebp - 0x344], eax
nop dword [eax]
test edi, edi
jl 0x545f57
jg 0x545f2a
test ebx, ebx
je 0x545f57
mov ecx, dword [ebp - 0x334]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x10], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0xc], eax
jmp 0x545f63
mov eax, ebx
or eax, edi
jne 0x545f63
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push dword [ebp - 0x33c]
xor ecx, ecx
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x32c], ecx
push eax
lea eax, [ebp - 0x32c]
cmove eax, ecx
test esi, esi
push eax
lea eax, [ebp - 0x224]
cmove eax, ecx
push eax
push dword [ebp - 0x344]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x546045
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x545fc5
cmp dword [0x66547c], 0
jne 0x545d3e
cmp eax, 0x2714
jne 0x545d3e
test edi, edi
jl 0x545fd0
jg 0x545fdb
test ebx, ebx
jne 0x545fdb
nop
mov esi, dword [ebp - 0x224]
jmp 0x545f20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, 0x10624dd3
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
sub ecx, dword [ebp - 0x340]
imul ecx
mov eax, dword [ebp - 0x35c]
sub eax, edi
sar edx, 6
imul eax, eax, 0x3e8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add eax, ebx
mov dword [ebp - 0x334], eax
test eax, eax
jle 0x545d59
mov esi, dword [ebp - 0x224]
mov edi, dword [ebp - 0x338]
jmp 0x545f20
test eax, eax
js 0x545d3e
je 0x545d59
mov ebx, dword [ebp - 0x348]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmp ebx, 0xffffffff
je 0x54608b
lea eax, [ebp - 0x224]
push eax
push ebx
call edi
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x11c]
push eax
push ebx
cmovne esi, ecx
call edi
test eax, eax
je 0x54608b
or esi, 4
mov ebx, dword [ebp - 0x330]
cmp ebx, 0xffffffff
je 0x5460b8
lea eax, [ebp - 0x224]
push eax
push ebx
call edi
test eax, eax
je 0x5460a7
or esi, 8
lea eax, [ebp - 0x11c]
push eax
push ebx
call edi
test eax, eax
je 0x5460b8
or esi, 4
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x5460e2
lea eax, [ebp - 0x32c]
push eax
push ebx
call edi
test eax, eax
je 0x5460d1
or esi, 2
lea eax, [ebp - 0x11c]
push eax
push ebx
call edi
test eax, eax
je 0x5460e2
or esi, 4
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret