Function at 0x101534f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x104], ecx
mov eax, dword [ebp - 0x104]
cmp dword [eax + 8], 0xffffffff
jne 0x10153546
mov ecx, dword [ebp + 8]
call fcn.101515b0
push eax
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x104]
mov eax, dword [edx + 0x88]
call eax
push 0
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x104]
mov eax, dword [edx + 0x7c]
call eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.10151570
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp + 8]
call fcn.10151590
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1015374d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2734
je 0x10153609
cmp dword [ebp - 0x18], 0x2733
je 0x10153609
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
call fcn.101515d0
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.10155140
add esp, 8
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.10002cf0
push 7
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x104]
mov eax, dword [edx + 0x48]
call eax
mov byte [ebp - 0x115], al
movzx ecx, byte [ebp - 0x115]
test ecx, ecx
jne 0x10153721
lea edx, [ebp - 0xb9]
mov dword [ebp - 0xb8], edx
push 0
push 0
lea ecx, [ebp - 0x9c]
call fcn.10002cf0
mov dword [ebp - 0x11c], str.connect_timed_out
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x11c]
mov dl, byte [ecx]
mov byte [ebp - 0x121], dl
add dword [ebp - 0x11c], 1
cmp byte [ebp - 0x121], 0
jne 0x1015366b
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x120]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
push ecx
push str.connect_timed_out
lea ecx, [ebp - 0x9c]
call fcn.10003590
mov byte [ebp - 4], 2
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.101515d0
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 3
push 0
mov ecx, dword [ebp - 0x130]
push ecx
lea edx, [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x64]
call fcn.100fc9f0
push 0x101b98b8
lea eax, [ebp - 0x64]
push eax
call fcn.100bcb39
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.10002cf0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.10002cf0
mov ecx, dword [ebp - 0x104]
call fcn.10154ef0
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x1015374d
mov edx, dword [ebp - 0x18]
push edx
call fcn.101550d0
add esp, 4
jmp 0x1015377a
mov dword [ebp - 4], 0xffffffff
push 1
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x104]
mov eax, dword [edx + 0x7c]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8