Function at 0x413cd0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x4580b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
mov dword [edx], 0xffffffff
mov dword [ecx], 0
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0xa4], edx
lea edx, [ebp - 0x94]
push edx
push eax
push esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], edi
call fcn.00413c10
add esp, 0x10
test eax, eax
je 0x413d43
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
push ebx
lea edi, [esi + 0x9e]
lea ebx, [esi + 0xcc]
lea esi, [ebp - 0x84]
call fcn.004137a0
test eax, eax
jne 0x413daa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xa8]
mov esi, eax
push esi
push edi
call fcn.00416800
push eax
mov eax, dword [ebp - 0x9c]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00411180
mov ecx, dword [ebp - 0x98]
push ecx
push edi
call fcn.00413bb0
add esp, 0x20
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xa8]
lea eax, [ebx + 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 [ebp - 0x9c]
push str.__Trying__s..._n
push esi
call fcn.00411100
push ebx
call fcn.00413740
add esp, 0x10
cmp dword [esi + 0x314], 0
je 0x413df1
mov edx, dword [ebp - 0x98]
mov edi, ebx
call fcn.004139a0
mov edi, dword [ebp - 0x98]
push edi
call fcn.00413a00
add esp, 4
cmp dword [esi + 0x410], 0
je 0x413e0e
call fcn.004130b0
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x413e36
mov edx, dword [esi + 0x170]
push 0
push edi
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x413e7b
mov dword [ebp - 0xa0], 1
mov eax, dword [ebp - 0x94]
push eax
push edi
push ebx
call fcn.00413270
add esp, 0xc
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x413e9f
push edi
push ebx
call fcn.00413bb0
mov ecx, dword [ebp - 0x9c]
add esp, 8
lea eax, [ecx - 1]
neg eax
pop ebx
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x413e36
push edi
push ebx
call fcn.00413bb0
add esp, 8
pop ebx
pop edi
mov eax, 0x2a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
push 1
push edi
call fcn.00430ac0
add esp, 8
call fcn.00410cf0
cmp dword [ebx + 0x210], 1
mov dword [ebx + 0x208], eax
mov dword [ebx + 0x20c], edx
jle 0x413ed4
mov ecx, dword [ebx + 0x214]
push ecx
push esi
call fcn.0040f110
add esp, 8
cmp dword [ebp - 0xa0], 0
jne 0x413f9a
cmp dword [ebx + 0x74], 1
jne 0x413f9a
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x413f7f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xa0], eax
cmp eax, 0xb
je 0x413f64
cmp eax, 0x2732
jle 0x413f24
cmp eax, 0x2734
jle 0x413f64
push eax
push ebx
call fcn.00416800
push eax
lea eax, [ebx + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push esi
call fcn.00411180
mov ecx, dword [ebp - 0xa0]
push edi
push ebx
mov dword [esi + 0x8594], ecx
call fcn.00413bb0
add esp, 0x20
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xa4]
pop ebx
mov dword [edx], edi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xa4]
pop ebx
mov dword [eax], edi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xa4]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043561f
mov esp, ebp
pop ebp
ret