Function at 0x100030ee
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx], 0xffffffff
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003e08
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000314b
xor eax, eax
jmp 0x1000345c
lea ecx, [ebp - 0xdc]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0xc8]
push eax
call fcn.1000292f
add esp, 0xc
test eax, eax
jne 0x100031b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003c041
add esp, 8
push eax
mov eax, dword [ebp - 0xe0]
push eax
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100350d3
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003d83
add esp, 8
xor eax, eax
jmp 0x1000345c
lea ecx, [ebp - 0x44]
push ecx
push str.__Trying__s..._n
mov edx, dword [ebp - 0xc]
push edx
call fcn.1003504f
add esp, 0xc
cmp dword [ebp - 0xd8], 2
jne 0x100031eb
cmp dword [ebp - 0xd4], 1
jne 0x100031eb
mov dword [ebp - 0xe4], 1
jmp 0x100031f5
mov dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x10003220
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x3e4], 0
je 0x10003220
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10002fdb
add esp, 8
xor ecx, ecx
test ecx, ecx
jne 0x10003220
mov edx, dword [ebp - 0x14]
push edx
call fcn.1000304d
add esp, 4
cmp dword [ebp - 0x48], 0
je 0x10003254
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x520], 0
je 0x10003254
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10003460
add esp, 8
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1a8], 0
je 0x100032b7
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1ac]
push eax
mov ecx, dword [ebp - 0xc]
call dword [ecx + 0x1a8]
add esp, 0xc
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 2
jne 0x10003294
mov dword [ebp - 0x10], 1
jmp 0x100032b7
cmp dword [ebp - 0xe0], 0
je 0x100032b7
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003d83
add esp, 8
mov eax, 0x2a
jmp 0x1000345c
cmp dword [ebp - 0xd8], 2
jne 0x10003318
lea ecx, [ebp - 0xc8]
push ecx
call fcn.10022a40
add esp, 4
push eax
mov edx, dword [ebp - 0xd8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003547
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10003318
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003d83
add esp, 8
cmp dword [ebp - 4], 1
jne 0x10003310
mov eax, 7
jmp 0x1000345c
mov eax, dword [ebp - 4]
jmp 0x1000345c
push 1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1002d670
add esp, 8
call fcn.10041620
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2f8], eax
mov dword [ecx + 0x2fc], edx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x300], 1
jle 0x1000335c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x304]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.1002cfd2
add esp, 8
cmp dword [ebp - 0x10], 0
jne 0x100033ab
mov eax, dword [ebp + 8]
cmp dword [eax + 0x8c], 1
jne 0x100033ab
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2e0], 0
je 0x1000337c
jmp 0x10003397
mov edx, dword [ebp - 0xcc]
push edx
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100033a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xe0], eax
jmp 0x100033ba
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
xor eax, eax
jmp 0x1000345c
cmp dword [ebp - 8], 0xffffffff
jne 0x1000344b
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe8], ecx
cmp dword [ebp - 0xe8], 0xb
je 0x100033f3
cmp dword [ebp - 0xe8], 0x2732
jle 0x100033fc
cmp dword [ebp - 0xe8], 0x2734
jle 0x100033f3
jmp 0x100033fc
mov dword [ebp - 4], 0
jmp 0x1000344b
mov edx, dword [ebp - 0xe0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1003c041
add esp, 8
push eax
lea ecx, [ebp - 0x44]
push ecx
push str.Immediate_connect_fail_for__s:__s_n
mov edx, dword [ebp - 0xc]
push edx
call fcn.1003504f
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xe0]
mov dword [eax + 0x4724], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003d83
add esp, 8
mov dword [ebp - 4], 7
cmp dword [ebp - 4], 0
jne 0x10003459
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret