Function at 0x4168a0
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ad100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x41691d
mov ecx, dword [0x4adc10]
mov eax, dword [0x4adc14]
cmp ecx, 0x257edfd1
jne 0x4168de
cmp eax, 0xb2ab117a
je 0x4168ed
cmp ecx, 0x257edfd0
jne 0x4168f1
cmp eax, 0xb2ab117a
jne 0x4168f1
mov al, 1
jmp 0x416905
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [edi], 0x2719
add eax, 2
mov dword [edi + 4], 0x4adc08
mov dword [edi + 8], eax
jmp 0x416934
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov ecx, edi
setne dl
call fcn.00409e80
mov ebx, dword [0x4adc10]
mov esi, dword [0x4adc14]
cmp ebx, 0x257edfd1
jne 0x416950
cmp esi, 0xb2ab117a
je 0x416960
cmp ebx, 0x257edfd0
jne 0x416964
cmp esi, 0xb2ab117a
jne 0x416964
mov al, 1
jmp 0x416984
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push 0x2734
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x4adc14]
mov ebx, dword [0x4adc10]
movzx eax, al
lea edx, [ebp - 0x224]
add eax, 2
mov dword [ebp - 0x224], 0x2734
mov ecx, edi
mov dword [ebp - 0x220], 0x4adc08
mov dword [ebp - 0x21c], eax
call fcn.004165d0
test al, al
jne 0x416a2e
cmp ebx, 0x257edfd1
jne 0x4169c5
cmp esi, 0xb2ab117a
je 0x4169d5
cmp ebx, 0x257edfd0
jne 0x4169d9
cmp esi, 0xb2ab117a
jne 0x4169d9
mov al, 1
jmp 0x4169f9
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x4adc14]
mov ebx, dword [0x4adc10]
movzx eax, al
lea edx, [ebp - 0x224]
add eax, 2
mov dword [ebp - 0x224], 0x2733
mov ecx, edi
mov dword [ebp - 0x220], 0x4adc08
mov dword [ebp - 0x21c], eax
call fcn.004165d0
test al, al
je 0x416b79
mov eax, dword [ebp - 0x218]
cmp eax, 0xffffffff
jne 0x416a85
cmp ebx, 0x257edfd1
jne 0x416a49
cmp esi, 0xb2ab117a
je 0x416a59
cmp ebx, 0x257edfd0
jne 0x416a66
cmp esi, 0xb2ab117a
jne 0x416a66
mov al, 1
mov dword [edi], 0x2719
jmp 0x416b69
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [edi], 0x2719
jmp 0x416b69
push 0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x20c], eax
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x108], eax
push ecx
push 0
inc eax
mov dword [ebp - 0x210], 1
push eax
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x416b1f
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0x1007
xorps xmm0, xmm0
mov dword [ebp - 8], 4
push 0xffff
movq qword [edi], xmm0
push ecx
mov dword [edi + 8], 0
call dword [sym.imp.WS2_32.dll_getsockopt]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.00409e80
cmp esi, 0xffffffff
je 0x416b79
mov esi, dword [ebp - 0x214]
jmp 0x416b27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, dword [0x4adc10]
mov eax, dword [0x4adc14]
cmp ecx, 0x257edfd1
jne 0x416b41
cmp eax, 0xb2ab117a
je 0x416b50
cmp ecx, 0x257edfd0
jne 0x416b57
cmp eax, 0xb2ab117a
jne 0x416b57
test esi, esi
setne al
jmp 0x416b67
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push esi
mov eax, dword [eax + 0x18]
call eax
mov dword [edi], esi
movzx eax, al
add eax, 2
mov dword [edi + 4], 0x4adc08
mov dword [edi + 8], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466048
mov esp, ebp
pop ebp
ret