Function at 0x40bbb3
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x24], 0
call fcn.0058de8a
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x2c], 0
setne al
movzx eax, al
test eax, eax
jne 0x40bc3d
mov dword [esp], str.src_core_mainloop_connection.c
call fcn.006c14d2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x7029c8
mov dword [esp + 8], 0x7045e0
mov dword [esp + 4], 0x79f
mov dword [esp], eax
call fcn.006c1140
call fcn.006c14b8
cmp dword [ebp - 0x30], 0
setne al
movzx eax, al
test eax, eax
jne 0x40bc84
mov dword [esp], str.src_core_mainloop_connection.c
call fcn.006c14d2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x7029cd
mov dword [esp + 8], 0x7045e0
mov dword [esp + 4], 0x7a0
mov dword [esp], eax
call fcn.006c1140
call fcn.006c14b8
cmp dword [ebp - 0x40], 0
setne al
movzx eax, al
test eax, eax
jne 0x40bccb
mov dword [esp], str.src_core_mainloop_connection.c
call fcn.006c14d2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.socket_error
mov dword [esp + 8], 0x7045e0
mov dword [esp + 4], 0x7a1
mov dword [esp], eax
call fcn.006c1140
call fcn.006c14b8
call fcn.0041c746
test eax, eax
je 0x40bd6e
mov eax, dword [ebp - 0x40]
mov dword [eax], 0x2743
mov dword [esp + 0x14], str.Tried_to_open_a_socket_with_DisableNetwork_set.
mov dword [esp + 0x10], str.connection_connect_sockaddr
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 0
mov dword [esp + 4], 4
mov dword [esp], 0x6f40e0
call fcn.006bf0fb
mov eax, dword [0x7c91cc]
test eax, eax
jne 0x40bd64
mov dword [0x7c91cc], 1
mov dword [esp], str.src_core_mainloop_connection.c
call fcn.006c14d2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7045e0
mov dword [esp + 4], 0x7ae
mov dword [esp], eax
call fcn.006c12a3
mov eax, 0xffffffff
jmp 0x40c10c
mov eax, dword [ebp - 0x30]
movzx eax, word [eax]
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
movzx eax, word [eax]
cmp ax, 0x17
je 0x40bd92
mov eax, dword [ebp - 0x30]
movzx eax, word [eax]
cmp ax, 2
jne 0x40bd99
mov eax, 6
jmp 0x40bd9e
mov eax, 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.006b865c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40be68
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.006b8d37
mov edx, dword [ebp - 0x40]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
cmp eax, 0x2728
je 0x40bdf0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
cmp eax, 0x2747
jne 0x40be0c
call fcn.00409f1c
call fcn.006b898d
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00413dc5
jmp 0x40be5e
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.006b8dc5
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.Error_creating_network_socket:__s
mov dword [esp + 0xc], str.connection_connect_sockaddr
mov dword [esp + 4], 4
mov dword [esp + 8], 0
mov dword [esp], 4
call fcn.006bf072
call fcn.006b898d
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00413dc5
mov eax, 0xffffffff
jmp 0x40c10c
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00409fd7
test eax, eax
jns 0x40beb8
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call fcn.006b8dc5
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.Error_setting_SO_REUSEADDR_flag_on_new_connection:__s
mov dword [esp + 0xc], str.connection_connect_sockaddr
mov dword [esp + 4], 4
mov dword [esp + 8], 0
mov dword [esp], 4
call fcn.006bf072
call fcn.006b898d
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00413dc5
cmp dword [ebp - 0x38], 0
je 0x40bf5b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_bind]
call eax
sub esp, 0xc
test eax, eax
jns 0x40bf5b
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.006b8d37
mov edx, dword [ebp - 0x40]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.006b8dc5
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.Error_binding_network_socket:__s
mov dword [esp + 0xc], str.connection_connect_sockaddr
mov dword [esp + 4], 4
mov dword [esp + 8], 0
mov dword [esp], 4
call fcn.006bf072
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.006b84eb
mov eax, 0xffffffff
jmp 0x40c10c
cmp dword [ebp - 0x20], 0
setne al
movzx eax, al
test eax, eax
jne 0x40bfa2
mov dword [esp], str.src_core_mainloop_connection.c
call fcn.006c14d2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x702a8d
mov dword [esp + 8], 0x7045e0
mov dword [esp + 4], 0x7dc
mov dword [esp], eax
call fcn.006c1140
call fcn.006c14b8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x234]
test eax, eax
je 0x40bfcd
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x23c]
mov eax, dword [eax + 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00412f73
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
test eax, eax
jns 0x40c07b
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.006b8d37
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2734
je 0x40c074
cmp dword [ebp - 0x10], 0x2726
je 0x40c074
cmp dword [ebp - 0x10], 0x2733
je 0x40c074
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.006b8dc5
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.connect___to_socket_failed:__s
mov dword [esp + 0xc], str.connection_connect_sockaddr
mov dword [esp + 4], 4
mov dword [esp + 8], 0
mov dword [esp], 6
call fcn.006bf072
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.006b84eb
mov eax, 0xffffffff
jmp 0x40c10c
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0
je 0x40c088
mov ecx, str.in_progress
jmp 0x40c08d
mov ecx, str.established
cmp dword [ebp - 0x24], 0
je 0x40c09a
mov edx, 7
jmp 0x40c09f
mov edx, 6
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], str.Connection_to_socket__s__sock__u_.
mov dword [esp + 0xc], str.connection_connect_sockaddr
mov dword [esp + 4], 4
mov dword [esp + 8], 0
mov dword [esp], edx
call fcn.006bf072
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.0041758b
test eax, eax
jns 0x40c102
mov eax, dword [ebp - 0x40]
mov dword [eax], 0x2747
mov eax, 0xffffffff
jmp 0x40c10c
cmp dword [ebp - 0x24], 0
sete al
movzx eax, al
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x40c11c
call sub.libssp_0.dll___stack_chk_fail
leave
ret