Function at 0x43cec0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
push esi
push edi
lea edi, [ebp - 0x3ac]
mov ecx, 0xeb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4cfaa8]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x354], xmm0
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x35c], 0
cmp dword [ebp + 0x18], 0
jl 0x43cf25
jg 0x43cf17
cmp dword [ebp + 0x14], 0x7fffffff
jb 0x43cf25
mov dword [ebp + 0x14], getpeername
mov dword [ebp + 0x18], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x43cf54
cmp dword [ebp + 0xc], 0xffffffff
jne 0x43cf54
cmp dword [ebp + 0x10], 0xffffffff
jne 0x43cf54
mov eax, dword [ebp + 0x14]
push eax
call fcn.0043de50
add esp, 4
mov dword [ebp - 0x364], eax
mov eax, dword [ebp - 0x364]
jmp 0x43d5e1
cmp dword [ebp + 0x18], 0
jl 0x43cf9d
jg 0x43cf62
cmp dword [ebp + 0x14], 0
jbe 0x43cf9d
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x35c], ecx
lea edx, [ebp - 0x390]
push edx
call fcn.0042b600
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x354], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x350], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x34c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x348], edx
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x340], 0xffffffff
mov dword [ebp - 0x120], 0
cmp dword [ebp + 8], 0xffffffff
je 0x43d0c4
xor eax, eax
jne 0x43cfc5
mov dword [ebp - 0x36c], 0
jmp 0x43cfe4
mov ecx, dword [ebp - 0x36c]
add ecx, 1
mov dword [ebp - 0x36c], ecx
mov edx, dword [ebp - 0x36c]
cmp edx, dword [ebp - 0x120]
jae 0x43d008
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp + eax*4 - 0x11c]
cmp ecx, dword [ebp + 8]
jne 0x43d006
jmp 0x43d008
jmp 0x43cfd5
mov edx, dword [ebp - 0x36c]
cmp edx, dword [ebp - 0x120]
jne 0x43d03e
cmp dword [ebp - 0x120], 0x40
jae 0x43d03e
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x11c], ecx
mov edx, dword [ebp - 0x120]
add edx, 1
mov dword [ebp - 0x120], edx
xor eax, eax
jne 0x43cfc9
mov dword [ebp - 0x370], 0
jmp 0x43d05d
mov ecx, dword [ebp - 0x370]
add ecx, 1
mov dword [ebp - 0x370], ecx
mov edx, dword [ebp - 0x370]
cmp edx, dword [ebp - 0x338]
jae 0x43d081
mov eax, dword [ebp - 0x370]
mov ecx, dword [ebp + eax*4 - 0x334]
cmp ecx, dword [ebp + 8]
jne 0x43d07f
jmp 0x43d081
jmp 0x43d04e
mov edx, dword [ebp - 0x370]
cmp edx, dword [ebp - 0x338]
jne 0x43d0b7
cmp dword [ebp - 0x338], 0x40
jae 0x43d0b7
mov eax, dword [ebp - 0x370]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x334], ecx
mov edx, dword [ebp - 0x338]
add edx, 1
mov dword [ebp - 0x338], edx
xor eax, eax
jne 0x43d042
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x340], ecx
cmp dword [ebp + 0xc], 0xffffffff
je 0x43d1d8
xor edx, edx
jne 0x43d0ce
mov dword [ebp - 0x374], 0
jmp 0x43d0ed
mov eax, dword [ebp - 0x374]
add eax, 1
mov dword [ebp - 0x374], eax
mov ecx, dword [ebp - 0x374]
cmp ecx, dword [ebp - 0x120]
jae 0x43d111
mov edx, dword [ebp - 0x374]
mov eax, dword [ebp + edx*4 - 0x11c]
cmp eax, dword [ebp + 0xc]
jne 0x43d10f
jmp 0x43d111
jmp 0x43d0de
mov ecx, dword [ebp - 0x374]
cmp ecx, dword [ebp - 0x120]
jne 0x43d147
cmp dword [ebp - 0x120], 0x40
jae 0x43d147
mov edx, dword [ebp - 0x374]
mov eax, dword [ebp + 0xc]
mov dword [ebp + edx*4 - 0x11c], eax
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
xor edx, edx
jne 0x43d0d2
mov dword [ebp - 0x378], 0
jmp 0x43d166
mov eax, dword [ebp - 0x378]
add eax, 1
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x378]
cmp ecx, dword [ebp - 0x338]
jae 0x43d18a
mov edx, dword [ebp - 0x378]
mov eax, dword [ebp + edx*4 - 0x334]
cmp eax, dword [ebp + 0xc]
jne 0x43d188
jmp 0x43d18a
jmp 0x43d157
mov ecx, dword [ebp - 0x378]
cmp ecx, dword [ebp - 0x338]
jne 0x43d1c0
cmp dword [ebp - 0x338], 0x40
jae 0x43d1c0
mov edx, dword [ebp - 0x378]
mov eax, dword [ebp + 0xc]
mov dword [ebp + edx*4 - 0x334], eax
mov ecx, dword [ebp - 0x338]
add ecx, 1
mov dword [ebp - 0x338], ecx
xor edx, edx
jne 0x43d14b
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x340]
jbe 0x43d1d8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x340], ecx
mov dword [ebp - 0x22c], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x43d2f6
xor edx, edx
jne 0x43d1ec
mov dword [ebp - 0x37c], 0
jmp 0x43d20b
mov eax, dword [ebp - 0x37c]
add eax, 1
mov dword [ebp - 0x37c], eax
mov ecx, dword [ebp - 0x37c]
cmp ecx, dword [ebp - 0x22c]
jae 0x43d22f
mov edx, dword [ebp - 0x37c]
mov eax, dword [ebp + edx*4 - 0x228]
cmp eax, dword [ebp + 0x10]
jne 0x43d22d
jmp 0x43d22f
jmp 0x43d1fc
mov ecx, dword [ebp - 0x37c]
cmp ecx, dword [ebp - 0x22c]
jne 0x43d265
cmp dword [ebp - 0x22c], 0x40
jae 0x43d265
mov edx, dword [ebp - 0x37c]
mov eax, dword [ebp + 0x10]
mov dword [ebp + edx*4 - 0x228], eax
mov ecx, dword [ebp - 0x22c]
add ecx, 1
mov dword [ebp - 0x22c], ecx
xor edx, edx
jne 0x43d1f0
mov dword [ebp - 0x380], 0
jmp 0x43d284
mov eax, dword [ebp - 0x380]
add eax, 1
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x380]
cmp ecx, dword [ebp - 0x338]
jae 0x43d2a8
mov edx, dword [ebp - 0x380]
mov eax, dword [ebp + edx*4 - 0x334]
cmp eax, dword [ebp + 0x10]
jne 0x43d2a6
jmp 0x43d2a8
jmp 0x43d275
mov ecx, dword [ebp - 0x380]
cmp ecx, dword [ebp - 0x338]
jne 0x43d2de
cmp dword [ebp - 0x338], 0x40
jae 0x43d2de
mov edx, dword [ebp - 0x380]
mov eax, dword [ebp + 0x10]
mov dword [ebp + edx*4 - 0x334], eax
mov ecx, dword [ebp - 0x338]
add ecx, 1
mov dword [ebp - 0x338], ecx
xor edx, edx
jne 0x43d269
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x340]
jbe 0x43d2f6
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x340], ecx
cmp dword [ebp + 0x18], 0
jg 0x43d310
jl 0x43d304
cmp dword [ebp + 0x14], 0
jae 0x43d310
mov dword [ebp - 0x3a4], 0
jmp 0x43d319
lea edx, [ebp - 0x10]
mov dword [ebp - 0x3a4], edx
mov eax, dword [ebp - 0x3a4]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x18], 0
jl 0x43d35a
jg 0x43d330
cmp dword [ebp + 0x14], 0
jbe 0x43d35a
mov eax, dword [ebp - 0x35c]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x35c]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0xc], edx
jmp 0x43d370
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
jne 0x43d370
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x22c], 0
je 0x43d387
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x3a8], ecx
jmp 0x43d391
mov dword [ebp - 0x3a8], 0
cmp dword [ebp - 0x120], 0
je 0x43d3a8
lea edx, [ebp - 0x120]
mov dword [ebp - 0x3ac], edx
jmp 0x43d3b2
mov dword [ebp - 0x3ac], 0
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x338]
push ecx
mov edx, dword [ebp - 0x3a8]
push edx
mov eax, dword [ebp - 0x3ac]
push eax
mov ecx, dword [ebp - 0x340]
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x364], eax
cmp dword [ebp - 0x364], 0xffffffff
je 0x43d3f8
jmp 0x43d4cc
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
je 0x43d430
cmp dword [0x4d1e34], 0
jne 0x43d42b
cmp dword [ebp - 0x360], 0x2714
je 0x43d430
jmp 0x43d4cc
cmp dword [ebp + 0x18], 0
jl 0x43d4bf
jg 0x43d442
cmp dword [ebp + 0x14], 0
jbe 0x43d4bf
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp - 0x354]
mov dword [edx], eax
mov ecx, dword [ebp - 0x350]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x34c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x348]
mov dword [edx + 0xc], ecx
lea edx, [ebp - 0x3a0]
push edx
call fcn.0042b600
add esp, 0xfffffff4
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
call fcn.0042b6e0
add esp, 0x20
cdq
mov ecx, dword [ebp + 0x14]
sub ecx, eax
mov eax, dword [ebp + 0x18]
sbb eax, edx
mov dword [ebp - 0x35c], ecx
cmp dword [ebp - 0x35c], 0
jg 0x43d4bf
mov dword [ebp - 0x364], 0
jmp 0x43d4cc
cmp dword [ebp - 0x364], 0xffffffff
je 0x43d322
cmp dword [ebp - 0x364], 0
jge 0x43d4dd
or eax, 0xffffffff
jmp 0x43d5e1
cmp dword [ebp - 0x364], 0
jne 0x43d4ed
xor eax, eax
jmp 0x43d5e1
mov dword [ebp - 0x368], 0
cmp dword [ebp + 8], 0xffffffff
je 0x43d543
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43d520
mov eax, dword [ebp - 0x368]
or eax, 1
mov dword [ebp - 0x368], eax
lea ecx, [ebp - 0x338]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43d543
mov eax, dword [ebp - 0x368]
or eax, 4
mov dword [ebp - 0x368], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x43d58f
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43d56c
mov eax, dword [ebp - 0x368]
or eax, 8
mov dword [ebp - 0x368], eax
lea ecx, [ebp - 0x338]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43d58f
mov eax, dword [ebp - 0x368]
or eax, 4
mov dword [ebp - 0x368], eax
cmp dword [ebp + 0x10], 0xffffffff
je 0x43d5db
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43d5b8
mov eax, dword [ebp - 0x368]
or eax, 2
mov dword [ebp - 0x368], eax
lea ecx, [ebp - 0x338]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43d5db
mov eax, dword [ebp - 0x368]
or eax, 4
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x368]
push edx
mov ecx, ebp
push eax
lea edx, [0x43d610]
call fcn.004a98cf
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a93ad
add esp, 0x3ac
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret