Function at 0x130599a0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa8
mov eax, dword [0x1315d264]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb0]
push esi
push edi
mov edi, dword [ebp]
xor esi, esi
mov dword [edx], 0xffffffff
mov dword [ecx], esi
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x24]
push edx
push eax
push ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
call fcn.130598b0
add esp, 0x10
test eax, eax
je 0x13059a14
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.1303468b
add esp, 0xa8
ret
push ebx
lea edi, [ebp + 0x9e]
lea ebx, [ebp + 0xcc]
lea esi, [esp + 0x34]
call fcn.13059460
test eax, eax
jne 0x13059a61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.1304c980
push eax
mov eax, dword [esp + 0x24]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.130570a0
mov ecx, dword [esp + 0x38]
push ecx
push ebp
call fcn.13059860
add esp, 0x20
jmp 0x13059c05
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 + 0x1c]
push str.__Trying__s..._n
push esi
call fcn.13057010
push ebp
call fcn.13059400
mov ebx, dword [esp + 0x30]
add esp, 0x10
cmp dword [esi + 0x314], 0
je 0x13059aa0
mov edx, ebx
mov edi, ebp
call fcn.13059630
push ebx
call fcn.13059690
add esp, 4
cmp dword [esi + 0x408], 0
je 0x13059ab9
mov edi, ebx
call fcn.13058d50
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x13059ae3
mov edx, dword [esi + 0x170]
push 0
push ebx
push edx
call eax
add esp, 0xc
cmp eax, 2
mov dword [esp + 0x10], eax
jne 0x13059b12
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x24]
push eax
push ebx
push ebp
call fcn.13058f00
mov edi, eax
add esp, 0xc
test edi, edi
je 0x13059b2a
push ebx
push ebp
call fcn.13059860
mov eax, edi
sub eax, 1
add esp, 8
neg eax
sbb eax, eax
and eax, edi
jmp 0x13059c07
test eax, eax
je 0x13059ae3
push ebx
push ebp
call fcn.13059860
add esp, 8
mov eax, 0x2a
jmp 0x13059c07
mov edi, 1
push edi
push ebx
call fcn.1307ad90
add esp, 8
call fcn.1305b400
cmp dword [ebp + 0x22c], edi
mov dword [ebp + 0x224], eax
mov dword [ebp + 0x228], edx
jle 0x13059b62
mov ecx, dword [ebp + 0x230]
push ecx
push esi
call fcn.13055290
add esp, 8
cmp dword [esp + 0x1c], 0
jne 0x13059bff
cmp dword [ebp + 0x74], edi
jne 0x13059bff
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x13059b98
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], eax
xor ecx, ecx
cmp dword [esp + 0x24], 0x17
sete cl
cmp edi, 0xffffffff
mov dword [ebp + 0x1dc], ecx
jne 0x13059bf7
mov edi, dword [esp + 0x10]
cmp edi, 0xb
je 0x13059bef
cmp edi, 0x2732
jle 0x13059bc6
cmp edi, 0x2734
jle 0x13059bef
push edi
push ebp
call fcn.1304c980
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push esi
call fcn.130570a0
push ebx
push ebp
mov dword [esi + 0x858c], edi
call fcn.13059860
add esp, 0x20
jmp 0x13059c05
mov edx, dword [esp + 0x14]
mov dword [edx], ebx
jmp 0x13059c05
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
jmp 0x13059c05
mov ecx, dword [esp + 0x14]
mov dword [ecx], ebx
xor eax, eax
mov ecx, dword [esp + 0xb4]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1303468b
add esp, 0xa8
ret