Function at 0x451080
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x6a7d40]
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 0x45110a
mov ecx, dword [0x6a89a0]
mov eax, dword [0x6a89a4]
cmp ecx, 0x257edfd1
jne 0x4510cf
cmp eax, 0xb2ab117a
je 0x4510de
cmp ecx, 0x257edfd0
jne 0x4510eb
cmp eax, 0xb2ab117a
jne 0x4510eb
mov al, 1
mov dword [ebx], 0x2719
jmp 0x4512fc
mov eax, dword [0x6a8998]
mov ecx, 0x6a8998
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [ebx], 0x2719
jmp 0x4512fc
cmp byte [ebp + 0x14], 0
je 0x451135
test al, 0x10
je 0x451135
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.005df387
mov esp, ebp
pop ebp
ret
push ebx
push ecx
push dword [ebp + 0xc]
call fcn.00450eb0
add esp, 0xc
test eax, eax
jns 0x45130e
test byte [ebp - 0x111], 1
jne 0x45130c
mov edi, dword [0x6a89a0]
mov esi, dword [0x6a89a4]
cmp edi, 0x257edfd1
jne 0x451173
cmp esi, 0xb2ab117a
je 0x451183
cmp edi, 0x257edfd0
jne 0x451187
cmp esi, 0xb2ab117a
jne 0x451187
mov al, 1
jmp 0x4511a7
mov eax, dword [0x6a8998]
mov ecx, 0x6a8998
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x6a89a4]
mov edi, dword [0x6a89a0]
movzx eax, al
lea edx, [ebp - 0x128]
add eax, 2
mov dword [ebp - 0x128], 0x2733
mov ecx, ebx
mov dword [ebp - 0x124], 0x6a8998
mov dword [ebp - 0x120], eax
call fcn.0044da80
test al, al
jne 0x451245
cmp edi, 0x257edfd1
jne 0x4511e8
cmp esi, 0xb2ab117a
je 0x4511f8
cmp edi, 0x257edfd0
jne 0x4511fc
cmp esi, 0xb2ab117a
jne 0x4511fc
mov al, 1
jmp 0x451210
mov eax, dword [0x6a8998]
mov ecx, 0x6a8998
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], 0x6a8998
mov dword [ebp - 0x12c], eax
call fcn.0044da80
test al, al
je 0x45130c
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 0x4512b2
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.00450eb0
add esp, 0xc
test eax, eax
js 0x451157
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005df387
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x6a89a0]
mov esi, eax
mov eax, dword [0x6a89a4]
cmp ecx, 0x257edfd1
jne 0x4512d4
cmp eax, 0xb2ab117a
je 0x4512e3
cmp ecx, 0x257edfd0
jne 0x4512ea
cmp eax, 0xb2ab117a
jne 0x4512ea
test esi, esi
setne al
jmp 0x4512fa
mov eax, dword [0x6a8998]
mov ecx, 0x6a8998
push esi
mov eax, dword [eax + 0x18]
call eax
mov dword [ebx], esi
movzx eax, al
add eax, 2
mov dword [ebx + 4], 0x6a8998
mov dword [ebx + 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005df387
mov esp, ebp
pop ebp
ret