Function at 0x10002f00
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x100554b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov edx, dword [esi]
push edi
mov dword [ebp - 0xd0], edx
push esi
lea ebx, [ebp - 0xd8]
lea edx, [ebp - 0xcc]
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], 0
mov dword [eax], 0xffffffff
call fcn.100034b0
add esp, 4
mov dword [ebp - 0xd4], eax
test eax, eax
jne 0x10003225
lea ebx, [ebp - 0xe8]
lea eax, [ebp - 0x38]
lea edi, [ebp - 0xbc]
call fcn.100027f0
test eax, eax
jne 0x10002fbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.10027b30
add esp, 4
push eax
mov eax, dword [ebp - 0xd0]
push edi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.10022ce0
mov eax, dword [ebp - 0xd8]
add esp, 0x10
call fcn.10003450
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xd0]
lea ecx, [ebp - 0x38]
push ecx
push str.__Trying__s..._n
push ebx
call fcn.10022c60
add esp, 0xc
cmp dword [ebp - 0xcc], 2
jne 0x10002ff1
mov edi, 1
cmp dword [ebp - 0xc8], edi
je 0x10003087
xor edi, edi
mov ebx, dword [ebp - 0xd8]
mov esi, ebx
call fcn.10002e70
mov esi, dword [ebp - 0xd0]
test edi, edi
je 0x1000301a
cmp dword [esi + 0x530], 0
je 0x1000301a
mov edi, ebx
call fcn.100020f0
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x10003042
mov edx, dword [esi + 0x1b4]
push 0
push ebx
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x100030a8
mov dword [ebp - 0xe0], 1
cmp dword [ebp - 0xcc], 2
mov esi, dword [ebp - 0xdc]
jne 0x100030cf
push 2
push ebx
push esi
call fcn.100022a0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100030d5
mov eax, ebx
call fcn.10003450
cmp edi, 1
jne 0x1000320a
lea eax, [edi + 6]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x3f4], 0
je 0x10002ff3
mov ebx, dword [ebp - 0xd8]
mov ecx, ebx
mov eax, esi
call fcn.10002e10
jmp 0x10002ff9
test eax, eax
je 0x10003042
mov esi, dword [ebp - 0xdc]
mov eax, ebx
call fcn.10003450
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xd4]
push 1
mov edx, ebx
call fcn.1001e170
add esp, 4
call fcn.1002b060
cmp dword [esi + 0x300], 1
mov dword [esi + 0x2f8], eax
mov dword [esi + 0x2fc], edx
jle 0x1000311d
mov eax, dword [esi + 0x30c]
mov ecx, dword [esi + 0x308]
mov ebx, dword [ebp - 0xd0]
push eax
push ecx
call fcn.1001dc30
mov ebx, dword [ebp - 0xd8]
add esp, 8
cmp dword [ebp - 0xe0], 0
jne 0x1000321d
cmp dword [esi + 0x8c], 1
jne 0x1000321d
cmp dword [esi + 0x2e0], 0
jne 0x1000315e
mov edx, dword [ebp - 0xc0]
push edx
lea eax, [ebp - 0xbc]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100031fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x100031d3
cmp edi, 0x2732
jle 0x1000317b
cmp edi, 0x2734
jle 0x100031d3
push esi
call fcn.10027b30
mov esi, dword [ebp - 0xd0]
add esp, 4
push eax
lea ecx, [ebp - 0x38]
push ecx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.10022c60
mov dword [esi + 0x4734], edi
mov esi, dword [ebp - 0xdc]
add esp, 0x10
mov eax, ebx
call fcn.10003450
mov dword [ebp - 0xd4], 7
mov edi, dword [ebp - 0xd4]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xd4], 0
mov edi, dword [ebp - 0xd4]
mov dword [edx], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x1000320a
mov edx, dword [ebp - 0xe4]
mov dword [edx], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xe4]
mov dword [eax], ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10035d36
mov esp, ebp
pop ebp
ret