Function at 0x4686e0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xe4
cmp dword [ebp + 8], 0
je 0x4686fa
cmp dword [ebp + 0xc], 0
jne 0x4687ce
mov dword [ebp - 0x10], 0x80203bfd
lea eax, [ebp - 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046c960
cmp dword [ebp + 0x10], 0
je 0x4687c0
cmp dword [ebp + 0x10], 0xffffe7e0
je 0x4687c0
mov dword [esp + 4], 2
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x4687c0
call sub.WS2_32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046ca42
movzx edx, ax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], edx
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x468794
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
jmp 0x46879e
mov dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketConnect_sock_d_addr_s:_d_scopeId_d_errno_d__d
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xbc], eax
jmp 0x468bb6
lea eax, [ebp - 0x58]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046c960
cmp dword [ebp + 0x10], 0
je 0x468855
cmp dword [ebp + 0x10], 0xffffe7e0
je 0x468855
mov dword [esp + 4], 0x20
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x468855
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046ca42
movzx eax, ax
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketConnect_sock_d_address_s:_d_scopeId_d_
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461652
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00467712
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x468922
lea eax, [ebp - 0x68]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046c960
cmp dword [ebp + 0x10], 0
je 0x468914
cmp dword [ebp + 0x10], 0xffffe7e0
je 0x468914
mov dword [esp + 4], 2
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x468914
call sub.WS2_32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046ca42
movzx edx, ax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], edx
lea eax, [ebp - 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketConnect_sock_d_addr_s:_d_scopeId_d_errno_d__d
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xbc], eax
jmp 0x468bb6
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
je 0x4689e2
lea eax, [ebp - 0x78]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046c960
cmp dword [ebp + 0x10], 0
je 0x4689d4
cmp dword [ebp + 0x10], 0xffffe7e0
je 0x4689d4
mov dword [esp + 4], 2
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x4689d4
call sub.WS2_32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046ca42
movzx edx, ax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], edx
lea eax, [ebp - 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketConnect_sock_d_addr_s:_d_scopeId_d_errno_d__d
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xbc], eax
jmp 0x468bb6
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.WS2_32.DLL_WSAConnect
sub esp, 0x1c
cmp eax, 0xffffffff
jne 0x468a3b
call sub.WS2_32.DLL_WSAGetLastError
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0x2733
je 0x468a3b
mov dword [ebp - 0x10], 0x80203bff
cmp dword [ebp - 0x10], 0
jne 0x468b04
lea eax, [ebp - 0x98]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046c960
lea eax, [ebp - 0xa8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebp - 0xc]
mov dword [esp], eax
call fcn.0046bb84
cmp dword [ebp + 0x10], 0
je 0x468b04
cmp dword [ebp + 0x10], 0xffffe7e0
je 0x468b04
mov dword [esp + 4], 0x40
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x468b04
lea eax, [ebp - 0xa8]
mov dword [esp], eax
call fcn.0046ca42
movzx ebx, ax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046ca42
movzx eax, ax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x98]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketConnect_sock_d_address_s:_d_scopeId_d__new_local_port_d_0
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461687
cmp dword [ebp - 0x10], 0
je 0x468bad
lea eax, [ebp - 0xb8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046c960
cmp dword [ebp + 0x10], 0
je 0x468bad
cmp dword [ebp + 0x10], 0xffffe7e0
je 0x468bad
mov dword [esp + 4], 2
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x468bad
call sub.WS2_32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0046ca42
movzx edx, ax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], edx
lea eax, [ebp - 0xb8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketConnect_sock_d_address_s:_d_scopeId_d_errno_d__d
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov ebx, dword [ebp - 4]
leave
ret