Function at 0x130455e0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa8
mov eax, dword [0x13147f14]
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.130454f0
add esp, 0x10
test eax, eax
je 0x13045654
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.130222cb
add esp, 0xa8
ret
push ebx
lea edi, [ebp + 0x9e]
lea ebx, [ebp + 0xcc]
lea esi, [esp + 0x34]
call fcn.130450a0
test eax, eax
jne 0x130456a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.130385f0
push eax
mov eax, dword [esp + 0x24]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.13042ce0
mov ecx, dword [esp + 0x38]
push ecx
push ebp
call fcn.130454a0
add esp, 0x20
jmp 0x13045845
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.13042c50
push ebp
call fcn.13045040
mov ebx, dword [esp + 0x30]
add esp, 0x10
cmp dword [esi + 0x314], 0
je 0x130456e0
mov edx, ebx
mov edi, ebp
call fcn.13045270
push ebx
call fcn.130452d0
add esp, 4
cmp dword [esi + 0x408], 0
je 0x130456f9
mov edi, ebx
call fcn.13044990
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x13045723
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 0x13045752
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x24]
push eax
push ebx
push ebp
call fcn.13044b40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1304576a
push ebx
push ebp
call fcn.130454a0
mov eax, edi
sub eax, 1
add esp, 8
neg eax
sbb eax, eax
and eax, edi
jmp 0x13045847
test eax, eax
je 0x13045723
push ebx
push ebp
call fcn.130454a0
add esp, 8
mov eax, 0x2a
jmp 0x13045847
mov edi, 1
push edi
push ebx
call fcn.13066a00
add esp, 8
call fcn.13047040
cmp dword [ebp + 0x22c], edi
mov dword [ebp + 0x224], eax
mov dword [ebp + 0x228], edx
jle 0x130457a2
mov ecx, dword [ebp + 0x230]
push ecx
push esi
call fcn.13040ed0
add esp, 8
cmp dword [esp + 0x1c], 0
jne 0x1304583f
cmp dword [ebp + 0x74], edi
jne 0x1304583f
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 0x130457d8
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 0x13045837
mov edi, dword [esp + 0x10]
cmp edi, 0xb
je 0x1304582f
cmp edi, 0x2732
jle 0x13045806
cmp edi, 0x2734
jle 0x1304582f
push edi
push ebp
call fcn.130385f0
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push esi
call fcn.13042ce0
push ebx
push ebp
mov dword [esi + 0x858c], edi
call fcn.130454a0
add esp, 0x20
jmp 0x13045845
mov edx, dword [esp + 0x14]
mov dword [edx], ebx
jmp 0x13045845
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
jmp 0x13045845
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.130222cb
add esp, 0xa8
ret