Function at 0x10056120
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1012eb00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], ecx
mov al, dl
mov edx, dword [ebp + 8]
mov byte [ebp - 0x111], al
mov dword [ebp - 0x11c], edx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
cmp ecx, 0xffffffff
jne 0x100561aa
mov ecx, dword [0x1012ee80]
mov eax, dword [0x1012ee84]
cmp ecx, 0x257edfd1
jne 0x1005616f
cmp eax, 0xb2ab117a
je 0x1005617e
cmp ecx, 0x257edfd0
jne 0x1005618b
cmp eax, 0xb2ab117a
jne 0x1005618b
mov al, 1
mov dword [ebx], 0x2719
jmp 0x1005639c
mov eax, dword [0x1012ee78]
mov ecx, 0x1012ee78
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [ebx], 0x2719
jmp 0x1005639c
cmp byte [ebp + 0x14], 0
je 0x100561d5
test al, 0x10
je 0x100561d5
xorps xmm0, xmm0
xor eax, eax
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e4fca
mov esp, ebp
pop ebp
ret
push ebx
push ecx
push dword [ebp + 0xc]
call fcn.10055f50
add esp, 0xc
test eax, eax
jns 0x100563ae
test byte [ebp - 0x111], 1
jne 0x100563ac
mov edi, dword [0x1012ee80]
mov esi, dword [0x1012ee84]
cmp edi, 0x257edfd1
jne 0x10056213
cmp esi, 0xb2ab117a
je 0x10056223
cmp edi, 0x257edfd0
jne 0x10056227
cmp esi, 0xb2ab117a
jne 0x10056227
mov al, 1
jmp 0x10056247
mov eax, dword [0x1012ee78]
mov ecx, 0x1012ee78
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x1012ee84]
mov edi, dword [0x1012ee80]
movzx eax, al
lea edx, [ebp - 0x128]
add eax, 2
mov dword [ebp - 0x128], 0x2733
mov ecx, ebx
mov dword [ebp - 0x124], 0x1012ee78
mov dword [ebp - 0x120], eax
call fcn.10052ca0
test al, al
jne 0x100562e5
cmp edi, 0x257edfd1
jne 0x10056288
cmp esi, 0xb2ab117a
je 0x10056298
cmp edi, 0x257edfd0
jne 0x1005629c
cmp esi, 0xb2ab117a
jne 0x1005629c
mov al, 1
jmp 0x100562b0
mov eax, dword [0x1012ee78]
mov ecx, 0x1012ee78
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
lea edx, [ebp - 0x134]
add eax, 2
mov dword [ebp - 0x134], 0x4d5
mov ecx, ebx
mov dword [ebp - 0x130], 0x1012ee78
mov dword [ebp - 0x12c], eax
call fcn.10052ca0
test al, al
je 0x100563ac
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push 0
push 0
push eax
push 0
lea eax, [esi + 1]
mov dword [ebp - 0x10c], esi
push eax
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x10056352
mov edx, dword [ebp - 0x11c]
xorps xmm0, xmm0
push ebx
push ecx
push dword [ebp + 0xc]
movq qword [ebx], xmm0
mov ecx, esi
mov dword [ebx + 8], 0
call fcn.10055f50
add esp, 0xc
test eax, eax
js 0x100561f7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e4fca
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x1012ee80]
mov esi, eax
mov eax, dword [0x1012ee84]
cmp ecx, 0x257edfd1
jne 0x10056374
cmp eax, 0xb2ab117a
je 0x10056383
cmp ecx, 0x257edfd0
jne 0x1005638a
cmp eax, 0xb2ab117a
jne 0x1005638a
test esi, esi
setne al
jmp 0x1005639a
mov eax, dword [0x1012ee78]
mov ecx, 0x1012ee78
push esi
mov eax, dword [eax + 0x18]
call eax
mov dword [ebx], esi
movzx eax, al
add eax, 2
mov dword [ebx + 4], 0x1012ee78
mov dword [ebx + 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e4fca
mov esp, ebp
pop ebp
ret