Function at 0x418740
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa4
mov eax, dword [0x520d08]
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.00418660
add esp, 0x10
test eax, eax
je 0x4187b4
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004d2b58
add esp, 0xa4
ret
push ebx
push edi
lea edi, [ebp + 0x9e]
lea ebx, [ebp + 0xcc]
lea esi, [esp + 0x30]
call fcn.00418230
test eax, eax
jne 0x418802
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041b1c0
push eax
mov eax, dword [esp + 0x28]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00415df0
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
call fcn.00418600
add esp, 0x20
jmp 0x41897b
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.00415d60
push ebp
call fcn.004181d0
mov ebx, dword [esp + 0x24]
add esp, 0x10
cmp dword [esi + 0x34c], 0
je 0x418841
mov edx, ebx
mov edi, ebp
call fcn.004183d0
push ebx
call fcn.00418430
add esp, 4
cmp dword [esi + 0x448], 0
je 0x41885a
mov edi, ebx
call fcn.00417bb0
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x418880
mov edx, dword [esi + 0x1ac]
push 0
push ebx
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x4188ad
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x20]
push eax
push ebx
push ebp
call fcn.00417d60
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4188c5
push ebx
push ebp
call fcn.00418600
mov eax, edi
dec eax
add esp, 8
neg eax
sbb eax, eax
and eax, edi
jmp 0x41897d
test eax, eax
je 0x418880
push ebx
push ebp
call fcn.00418600
add esp, 8
mov eax, 0x2a
jmp 0x41897d
mov edi, 1
push edi
push ebx
call fcn.00429230
add esp, 8
call fcn.00415940
cmp dword [ebp + 0x230], edi
mov dword [ebp + 0x228], eax
mov dword [ebp + 0x22c], edx
jle 0x4188fd
mov ecx, dword [ebp + 0x234]
push ecx
push esi
call fcn.00413e20
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x418975
cmp dword [ebp + 0x74], edi
jne 0x418975
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 0x41896d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x418965
cmp edi, 0x2732
jle 0x41893c
cmp edi, 0x2734
jle 0x418965
push edi
push ebp
call fcn.0041b1c0
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push esi
call fcn.00415df0
push ebx
push ebp
mov dword [esi + 0x85cc], edi
call fcn.00418600
add esp, 0x20
jmp 0x41897b
mov ecx, dword [esp + 0x10]
mov dword [ecx], ebx
jmp 0x41897b
mov edx, dword [esp + 0x10]
mov dword [edx], ebx
jmp 0x41897b
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.004d2b58
add esp, 0xa4
ret