Function at 0x4506b0
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x6a7d40]
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 0x45072d
mov ecx, dword [0x6a89a0]
mov eax, dword [0x6a89a4]
cmp ecx, 0x257edfd1
jne 0x4506ee
cmp eax, 0xb2ab117a
je 0x4506fd
cmp ecx, 0x257edfd0
jne 0x450701
cmp eax, 0xb2ab117a
jne 0x450701
mov al, 1
jmp 0x450715
mov eax, dword [0x6a8998]
mov ecx, 0x6a8998
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [edi], 0x2719
add eax, 2
mov dword [edi + 4], 0x6a8998
mov dword [edi + 8], eax
jmp 0x450744
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.00450450
mov ebx, dword [0x6a89a0]
mov esi, dword [0x6a89a4]
cmp ebx, 0x257edfd1
jne 0x450760
cmp esi, 0xb2ab117a
je 0x450770
cmp ebx, 0x257edfd0
jne 0x450774
cmp esi, 0xb2ab117a
jne 0x450774
mov al, 1
jmp 0x450794
mov eax, dword [0x6a8998]
mov ecx, 0x6a8998
push 0x2734
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x6a89a4]
mov ebx, dword [0x6a89a0]
movzx eax, al
lea edx, [ebp - 0x224]
add eax, 2
mov dword [ebp - 0x224], 0x2734
mov ecx, edi
mov dword [ebp - 0x220], 0x6a8998
mov dword [ebp - 0x21c], eax
call fcn.0044da80
test al, al
jne 0x45083e
cmp ebx, 0x257edfd1
jne 0x4507d5
cmp esi, 0xb2ab117a
je 0x4507e5
cmp ebx, 0x257edfd0
jne 0x4507e9
cmp esi, 0xb2ab117a
jne 0x4507e9
mov al, 1
jmp 0x450809
mov eax, dword [0x6a8998]
mov ecx, 0x6a8998
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x6a89a4]
mov ebx, dword [0x6a89a0]
movzx eax, al
lea edx, [ebp - 0x224]
add eax, 2
mov dword [ebp - 0x224], 0x2733
mov ecx, edi
mov dword [ebp - 0x220], 0x6a8998
mov dword [ebp - 0x21c], eax
call fcn.0044da80
test al, al
je 0x450989
mov eax, dword [ebp - 0x218]
cmp eax, 0xffffffff
jne 0x450895
cmp ebx, 0x257edfd1
jne 0x450859
cmp esi, 0xb2ab117a
je 0x450869
cmp ebx, 0x257edfd0
jne 0x450876
cmp esi, 0xb2ab117a
jne 0x450876
mov al, 1
mov dword [edi], 0x2719
jmp 0x450979
mov eax, dword [0x6a8998]
mov ecx, 0x6a8998
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [edi], 0x2719
jmp 0x450979
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 0x45092f
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.00450450
cmp esi, 0xffffffff
je 0x450989
mov esi, dword [ebp - 0x214]
jmp 0x450937
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, dword [0x6a89a0]
mov eax, dword [0x6a89a4]
cmp ecx, 0x257edfd1
jne 0x450951
cmp eax, 0xb2ab117a
je 0x450960
cmp ecx, 0x257edfd0
jne 0x450967
cmp eax, 0xb2ab117a
jne 0x450967
test esi, esi
setne al
jmp 0x450977
mov eax, dword [0x6a8998]
mov ecx, 0x6a8998
push esi
mov eax, dword [eax + 0x18]
call eax
mov dword [edi], esi
movzx eax, al
add eax, 2
mov dword [edi + 4], 0x6a8998
mov dword [edi + 8], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005df387
mov esp, ebp
pop ebp
ret