Function at 0x422d70
Capabilities:
Get socket status

Disassembly:
sub esp, 0x220
mov eax, dword [0x4f7600]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x228]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push esi
push edi
mov edi, dword [esp + 0x240]
push edi
push dword [esp + 0x240]
push eax
push ebp
call fcn.00416d20
mov ebx, dword [0x4f7030]
add esp, 0x10
mov esi, dword [0x4f7034]
cmp ebx, 0x257edfd1
jne 0x422dcb
cmp esi, 0xb2ab117a
je 0x422ddb
cmp ebx, 0x257edfd0
jne 0x422ddf
cmp esi, 0xb2ab117a
jne 0x422ddf
mov al, 1
jmp 0x422dff
mov eax, dword [0x4f7028]
mov ecx, 0x4f7028
push 0x2734
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x4f7034]
mov ebx, dword [0x4f7030]
movzx eax, al
add eax, 2
mov dword [esp + 0x14], 0x2734
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x20], 0x4f7028
call fcn.00412810
add esp, 8
test al, al
jne 0x422e9f
cmp ebx, 0x257edfd1
jne 0x422e3b
cmp esi, 0xb2ab117a
je 0x422e4b
cmp ebx, 0x257edfd0
jne 0x422e4f
cmp esi, 0xb2ab117a
jne 0x422e4f
mov al, 1
jmp 0x422e6f
mov eax, dword [0x4f7028]
mov ecx, 0x4f7028
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x4f7034]
mov ebx, dword [0x4f7030]
movzx eax, al
add eax, 2
mov dword [esp + 0x14], 0x2733
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x20], 0x4f7028
call fcn.00412810
add esp, 8
test al, al
je 0x423012
cmp ebp, 0xffffffff
jne 0x422ef4
cmp ebx, 0x257edfd1
jne 0x422eb4
cmp esi, 0xb2ab117a
je 0x422ec4
cmp ebx, 0x257edfd0
jne 0x422ec8
cmp esi, 0xb2ab117a
jne 0x422ec8
mov al, 1
jmp 0x422edc
mov eax, dword [0x4f7028]
mov ecx, 0x4f7028
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [edi], 0x2719
add eax, 2
mov dword [edi + 4], 0x4f7028
jmp 0x42300f
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x130], ebp
push eax
lea eax, [esp + 0x130]
mov dword [esp + 0x130], 1
push eax
push 0
lea eax, [ebp + 1]
mov dword [esp + 0x38], ebp
push eax
mov dword [esp + 0x38], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x422fef
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 4
push eax
push 0x1007
xorps xmm0, xmm0
push 0xffff
movq qword [edi], xmm0
push ebp
mov dword [edi + 8], 0
call dword [sym.imp.WS2_32.dll_getsockopt]
mov esi, eax
test esi, esi
setne cl
movzx ecx, cl
push ecx
push edi
call fcn.0041a760
add esp, 8
cmp esi, 0xffffffff
je 0x423012
mov ecx, dword [0x4f7030]
mov esi, dword [esp + 0x10]
mov eax, dword [0x4f7034]
cmp ecx, 0x257edfd1
jne 0x422fa9
cmp eax, 0xb2ab117a
je 0x422fb8
cmp ecx, 0x257edfd0
jne 0x422fce
cmp eax, 0xb2ab117a
jne 0x422fce
test esi, esi
mov dword [edi], esi
mov dword [edi + 4], 0x4f7028
setne al
movzx eax, al
add eax, 2
jmp 0x42300f
mov eax, dword [0x4f7028]
mov ecx, 0x4f7028
push esi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [edi], esi
add eax, 2
mov dword [edi + 4], 0x4f7028
jmp 0x42300f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x4f7028
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e4a0
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00489fe1
add esp, 0x220
ret