Function at 0x413ab0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa4
mov eax, dword [0x53bd24]
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.004139d0
add esp, 0x10
test eax, eax
je 0x413b24
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004cf1f2
add esp, 0xa4
ret
push ebx
push edi
lea edi, [ebp + 0x9e]
lea ebx, [ebp + 0xcc]
lea esi, [esp + 0x30]
call fcn.004135a0
test eax, eax
jne 0x413b72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004164b0
push eax
mov eax, dword [esp + 0x28]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00411180
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
call fcn.00413970
add esp, 0x20
jmp 0x413ceb
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.004110f0
push ebp
call fcn.00413540
mov ebx, dword [esp + 0x24]
add esp, 0x10
cmp dword [esi + 0x34c], 0
je 0x413bb1
mov edx, ebx
mov edi, ebp
call fcn.00413740
push ebx
call fcn.004137a0
add esp, 4
cmp dword [esi + 0x448], 0
je 0x413bca
mov edi, ebx
call fcn.00412f20
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x413bf0
mov edx, dword [esi + 0x1ac]
push 0
push ebx
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x413c1d
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x20]
push eax
push ebx
push ebp
call fcn.004130d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x413c35
push ebx
push ebp
call fcn.00413970
mov eax, edi
dec eax
add esp, 8
neg eax
sbb eax, eax
and eax, edi
jmp 0x413ced
test eax, eax
je 0x413bf0
push ebx
push ebp
call fcn.00413970
add esp, 8
mov eax, 0x2a
jmp 0x413ced
mov edi, 1
push edi
push ebx
call fcn.00424540
add esp, 8
call fcn.00410cd0
cmp dword [ebp + 0x230], edi
mov dword [ebp + 0x228], eax
mov dword [ebp + 0x22c], edx
jle 0x413c6d
mov ecx, dword [ebp + 0x234]
push ecx
push esi
call fcn.0040f1b0
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x413ce5
cmp dword [ebp + 0x74], edi
jne 0x413ce5
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 0x413cdd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x413cd5
cmp edi, 0x2732
jle 0x413cac
cmp edi, 0x2734
jle 0x413cd5
push edi
push ebp
call fcn.004164b0
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push esi
call fcn.00411180
push ebx
push ebp
mov dword [esi + 0x85cc], edi
call fcn.00413970
add esp, 0x20
jmp 0x413ceb
mov ecx, dword [esp + 0x10]
mov dword [ecx], ebx
jmp 0x413ceb
mov edx, dword [esp + 0x10]
mov dword [edx], ebx
jmp 0x413ceb
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.004cf1f2
add esp, 0xa4
ret