Function at 0x417b30
Capabilities:
Connect socket

Disassembly:
sub esp, 0xe0
mov eax, dword [0x46c180]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe4]
push ebp
push esi
mov esi, dword [ebx]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
push ebx
mov dword [esp + 0x20], 0
call fcn.004179a0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x417b94
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0044404d
add esp, 0xe0
ret
movzx eax, word [esp + 0x34]
sub eax, 2
push edi
jne 0x417cbf
push 0x2e
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x44]
push ecx
push 2
call fcn.00420bb0
add esp, 0x10
test eax, eax
je 0x417cbf
mov edx, dword [esp + 0x3a]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
lea eax, [esp + 0xb8]
push eax
push str.__Trying__s..._n
push esi
call fcn.00414ea0
mov edi, dword [esp + 0x18]
add esp, 0xc
cmp dword [esp + 0x28], 2
jne 0x417d0c
mov eax, 1
cmp dword [esp + 0x2c], eax
jne 0x417d0c
cmp dword [esi + 0x5a0], 0
mov dword [esp + 0xc], eax
je 0x417c1a
push edi
push ebx
call fcn.004177f0
add esp, 8
push edi
call fcn.00417850
add esp, 4
cmp dword [esp + 0xc], 0
je 0x417c38
cmp dword [esi + 0x6e8], 0
je 0x417c38
call fcn.00416f10
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x417c62
mov ecx, dword [esi + 0x1ec]
push 0
push edi
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x417d19
mov dword [esp + 0x14], 1
cmp dword [esp + 0x28], 2
jne 0x417d48
lea edx, [esp + 0x38]
push edx
call fcn.0043aee0
push eax
mov eax, dword [esp + 0x30]
push eax
push edi
push ebx
call fcn.004170f0
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x417d48
push edi
push ebx
call fcn.00417940
add esp, 8
cmp ebp, 1
jne 0x417e70
pop edi
pop esi
lea eax, [ebp + 6]
pop ebp
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0044404d
add esp, 0xe0
ret
mov byte [esp + 0xb8], 0
call fcn.00446520
mov dword [eax], 0x273f
call fcn.00446520
mov edi, eax
call fcn.00446520
mov ebp, eax
mov eax, dword [edi]
push eax
push ebx
call fcn.0041c9b0
mov ecx, dword [ebp]
push eax
push ecx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.00414f30
mov edx, dword [esp + 0x24]
push edx
push ebx
call fcn.00417940
add esp, 0x20
jmp 0x417e90
mov dword [esp + 0xc], 0
jmp 0x417c1a
test eax, eax
je 0x417c62
push edi
push ebx
call fcn.00417940
add esp, 8
pop edi
pop esi
mov eax, 0x2a
pop ebp
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0044404d
add esp, 0xe0
ret
push 1
push edi
call fcn.0043aef0
lea ecx, [esp + 0x20]
push ecx
call fcn.00414840
mov edx, dword [eax]
mov dword [ebx + 0x320], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 0x324], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 0x328], edx
mov eax, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x330], 1
mov dword [ebx + 0x32c], eax
jle 0x417da2
mov ecx, dword [ebx + 0x33c]
mov edx, dword [ebx + 0x338]
push 3
push ecx
push edx
push esi
call fcn.00412a90
add esp, 0x10
cmp dword [esp + 0x14], 0
jne 0x417e8a
cmp dword [ebx + 0x94], 1
jne 0x417e8a
cmp dword [ebx + 0x308], 0
jne 0x417ddd
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x417e66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xb
je 0x417e44
cmp ebp, 0x2732
jle 0x417dfa
cmp ebp, 0x2734
jle 0x417e44
push ebp
push ebx
call fcn.0041c9b0
push eax
lea edx, [esp + 0xc4]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00414ea0
push edi
push ebx
mov dword [esi + 0x495c], ebp
call fcn.00417940
add esp, 0x20
pop edi
mov ebp, 7
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0044404d
add esp, 0xe0
ret
mov eax, dword [esp + 0x10]
mov dword [eax], edi
pop edi
xor ebp, ebp
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0044404d
add esp, 0xe0
ret
test ebp, ebp
jne 0x417e70
mov eax, dword [esp + 0x10]
mov dword [eax], edi
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0044404d
add esp, 0xe0
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0044404d
add esp, 0xe0
ret