Function at 0x10112090
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa4
mov eax, dword [0x1019a984]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [ebp]
mov dword [edx], 0xffffffff
mov dword [ecx], 0
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], edx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], esi
call fcn.10111fb0
add esp, 0x10
test eax, eax
je 0x10112104
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10135c7b
add esp, 0xa4
ret
push ebx
push edi
lea edi, [ebp + 0x9e]
lea ebx, [ebp + 0xcc]
lea esi, [esp + 0x30]
call fcn.10111ba0
test eax, eax
jne 0x10112152
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.1011c140
push eax
mov eax, dword [esp + 0x28]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.1010f7d0
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
call fcn.10111f50
add esp, 0x20
jmp 0x101122cb
lea eax, [ebp + 0x40]
mov esi, edi
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x20]
push str.__Trying__s..._n
push esi
call fcn.1010f740
push ebp
call fcn.10111b40
mov ebx, dword [esp + 0x24]
add esp, 0x10
cmp dword [esi + 0x314], 0
je 0x10112191
mov edx, ebx
mov edi, ebp
call fcn.10111d40
push ebx
call fcn.10111da0
add esp, 4
cmp dword [esi + 0x410], 0
je 0x101121aa
mov edi, ebx
call fcn.10111520
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x101121d0
mov edx, dword [esi + 0x170]
push 0
push ebx
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x101121fd
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x20]
push eax
push ebx
push ebp
call fcn.101116d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10112215
push ebx
push ebp
call fcn.10111f50
mov eax, edi
dec eax
add esp, 8
neg eax
sbb eax, eax
and eax, edi
jmp 0x101122cd
test eax, eax
je 0x101121d0
push ebx
push ebp
call fcn.10111f50
add esp, 8
mov eax, 0x2a
jmp 0x101122cd
mov edi, 1
push edi
push ebx
call fcn.1012dc70
add esp, 8
call fcn.1010f320
cmp dword [ebp + 0x210], edi
mov dword [ebp + 0x208], eax
mov dword [ebp + 0x20c], edx
jle 0x1011224d
mov ecx, dword [ebp + 0x214]
push ecx
push esi
call fcn.10104d30
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x101122c5
cmp dword [ebp + 0x74], edi
jne 0x101122c5
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x101122bd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x101122b5
cmp edi, 0x2732
jle 0x1011228c
cmp edi, 0x2734
jle 0x101122b5
push edi
push ebp
call fcn.1011c140
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push esi
call fcn.1010f7d0
push ebx
push ebp
mov dword [esi + 0x8594], edi
call fcn.10111f50
add esp, 0x20
jmp 0x101122cb
mov ecx, dword [esp + 0x10]
mov dword [ecx], ebx
jmp 0x101122cb
mov edx, dword [esp + 0x10]
mov dword [edx], ebx
jmp 0x101122cb
mov eax, dword [esp + 0x10]
mov dword [eax], ebx
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.10135c7b
add esp, 0xa4
ret