Function at 0x10079c00
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push 0x3f
lea eax, [ebp - 0x4b]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x4c], 0
call sub.MSVCR100.dll_memset
mov ecx, dword [0x1045b910]
mov edx, dword [0x1045b8f0]
add esp, 0xc
push 0
push 0
push 0
push edi
push str.MSPSocket_Connect__x___in_
push 0x1fe
push 0x10440db4
push ecx
push 2
push edx
mov dword [ebp - 0x50], 0
call fcn.10062060
add esp, 0x28
test edi, edi
jne 0x10079c76
mov eax, 0x277c
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10079ebb
mov eax, dword [ebp + 8]
test eax, eax
jle 0x10079ebb
push eax
lea ebx, [edi + 8]
push esi
push ebx
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp + 8]
mov dword [edi + 0x24], eax
movzx eax, word [ebx]
add esp, 0xc
cmp eax, 2
jne 0x10079cb5
lea ecx, [edi + 0xc]
push 0x40
push ecx
lea esi, [ebp - 0x4c]
call fcn.10089b50
jmp 0x10079cc7
cmp eax, 0x17
jne 0x10079cca
lea edx, [ebp - 0x4c]
push edx
lea eax, [edi + 0x10]
push eax
call fcn.10089bc0
add esp, 8
cmp dword [edi + 0x34], 1
jne 0x10079d2b
mov ecx, dword [edi + 0x24]
mov edx, dword [edi]
push ecx
push ebx
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi]
mov edx, dword [0x1045b910]
push edi
push ebx
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x1045b8f0]
push ecx
push str.connect__x__s___ret_d__hd_x
push 0x20c
push 0x10440e10
push edx
push 6
push eax
call fcn.10062060
add esp, 0x28
cmp ebx, 0xffffffff
jne 0x10079de4
test esi, esi
jne 0x10079d53
mov esi, edi
call fcn.10079ab0
push 0
push 0
push 0
push 0
push 2
call fcn.100626b0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10079e48
mov dword [ebp - 0x50], 0x2785
jmp 0x10079e70
cmp esi, 0x2733
je 0x10079daa
cmp esi, 0x2734
je 0x10079daa
mov ecx, dword [edi]
mov edx, dword [0x1045b910]
mov eax, dword [0x1045b8f0]
push esi
push 0xffffffffffffffff
push ecx
push edi
push 0x10440e9c
push 0x21b
push 0x10440ebc
push edx
push 0
push eax
call fcn.10062060
push 0x27da
mov edx, esi
mov eax, edi
call fcn.10079bc0
add esp, 0x2c
mov dword [ebp - 0x50], 0x27da
jmp 0x10079e70
mov ecx, dword [edi]
mov edx, dword [0x1045b910]
mov eax, dword [0x1045b8f0]
push 0
push 0
push edi
push ecx
push str.connecting...__x__x
push 0x217
push 0x10440e60
push edx
push 6
push eax
call fcn.10062060
add esp, 0x28
mov dword [edi + 0x34], 2
jmp 0x10079d2b
test ebx, ebx
jne 0x10079e1f
cmp dword [edi + 0x2c], 2
jne 0x10079e1f
mov eax, dword [edi + 0x80]
mov dword [edi + 0x34], 5
mov dword [edi + 0x70], 1
test eax, eax
je 0x10079d2b
mov ecx, dword [edi + 0x84]
push ebx
push ebx
push 1
push ecx
call eax
add esp, 0x10
jmp 0x10079d2b
mov edx, dword [edi]
mov eax, dword [0x1045b910]
mov ecx, dword [0x1045b8f0]
push esi
push ebx
push edx
push edi
push str.connect___failed___x__x__d__d
push 0x228
push 0x10440f18
push eax
push 0
push ecx
jmp 0x10079d88
mov edx, dword [edi + 4]
mov eax, dword [edx*4 + 0x104580f8]
push esi
push eax
call fcn.10062fb0
add esp, 8
test eax, eax
je 0x10079e79
push esi
call fcn.10062700
add esp, 4
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [ebp - 0x50]
mov dword [edi + 0x8c], ecx
mov esi, dword [ebp - 0x50]
mov edx, dword [0x1045b910]
mov eax, dword [0x1045b8f0]
push 0
push 0
push 0
push esi
push str.MSPSocket_Connect____out___d
push 0x23e
push 0x10440f74
push edx
push 2
push eax
call fcn.10062060
add esp, 0x28
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
mov eax, 0x277a
pop ebx
call fcn.1015eea7
mov esp, ebp
pop ebp
ret