Function at 0x10019090
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e4
mov eax, dword [0x1009e024]
xor eax, esp
mov dword [esp + 0x1e0], eax
mov eax, dword [esp + 0x1f0]
mov ecx, dword [esp + 0x1ec]
add eax, 0x10a
push ebx
mov ebx, dword [esp + 0x1ec]
push ebp
lea eax, [ebx + eax*4]
mov byte [esp + 0xa], 0
push edi
mov ebp, dword [ebx]
mov dword [esp + 0x14], eax
mov dword [eax], 0xffffffff
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push ebx
call fcn.100185b0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1001936e
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x4c]
push eax
call fcn.10017b00
add esp, 0x10
test al, al
jne 0x10019158
call fcn.10047afb
mov esi, eax
call fcn.10047afb
mov edi, eax
lea eax, [esp + 0xf0]
push 0x100
push eax
push dword [esi]
call fcn.10038050
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.10017100
push dword [esp + 0x38]
push ebx
call fcn.10017b90
add esp, 0x24
jmp 0x1001936b
push dword [esp + 0x14]
lea eax, [esp + 0xc4]
push eax
push str.__Trying__s:_ld..._n
push ebp
call fcn.100171e0
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp eax, 2
je 0x10019180
cmp eax, 0x17
jne 0x1001918e
cmp dword [esp + 0x34], 1
jne 0x1001918e
mov eax, 1
jmp 0x10019190
xor eax, eax
mov esi, dword [esp + 0x1c]
test eax, eax
setne al
mov byte [esp + 0x13], al
test al, al
je 0x100191b4
cmp byte [ebp + 0xb17], 0
je 0x100191b4
push esi
push ebx
call fcn.10019480
add esp, 8
push esi
call fcn.10018510
add esp, 4
cmp byte [esp + 0x13], 0
je 0x100191d7
cmp byte [ebp + 0xb20], 0
je 0x100191d7
push esi
push ebp
call fcn.10019390
add esp, 8
cmp dword [ebp + 0x610], 0
je 0x10019216
push 1
push ebp
call fcn.10010180
mov eax, dword [ebp + 0x610]
push 0
push esi
push dword [ebp + 0x614]
call eax
push 0
push ebp
mov dword [esp + 0x30], eax
call fcn.10010180
mov eax, dword [esp + 0x30]
add esp, 0x1c
cmp eax, 2
jne 0x1001925f
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x10019224
cmp eax, 0x17
jne 0x10019277
lea eax, [esp + 0x40]
push eax
call fcn.100388b0
push eax
push dword [esp + 0x38]
push esi
push ebx
call fcn.10018a50
mov edi, eax
add esp, 0x14
test edi, edi
je 0x10019277
push esi
push ebx
call fcn.10017b90
add esp, 8
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x1001936d
test eax, eax
je 0x10019216
push esi
push ebx
call fcn.10017b90
add esp, 8
mov eax, 0x2a
jmp 0x1001936d
push 1
push esi
call fcn.10020190
lea eax, [esp + 0x28]
push eax
call fcn.1001b5d0
add esp, 0xc
cmp dword [ebx + 0x528], 1
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebx + 0x518], xmm0
jle 0x100192b8
push 3
push dword [ebx + 0x534]
push dword [ebx + 0x530]
push ebp
call fcn.1000fe90
add esp, 0x10
cmp byte [esp + 0x12], 0
jne 0x10019365
cmp dword [ebx + 0x2f8], 4
je 0x10019365
cmp byte [ebx + 0x50f], 0
jne 0x100192fc
push dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100192fc
test edi, edi
jne 0x10019361
mov eax, dword [esp + 0x18]
mov dword [eax], esi
mov eax, edi
jmp 0x1001936d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x10019359
cmp edi, 0x2732
jle 0x10019319
cmp edi, 0x2734
jle 0x10019359
push 0x100
lea eax, [esp + 0xf4]
push eax
push edi
call fcn.10038050
push eax
lea eax, [esp + 0xd0]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebp
call fcn.100171e0
push esi
push ebx
mov dword [ebp + 0xd44], edi
call fcn.10017b90
mov edi, 7
add esp, 0x24
mov eax, edi
jmp 0x1001936d
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [eax], esi
mov eax, edi
jmp 0x1001936d
mov eax, dword [esp + 0x18]
mov dword [eax], esi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1ec]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004138c
add esp, 0x1e4
ret