Function at 0x452b40
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa0
mov eax, dword [0x4cdbb4]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa4]
push ebp
mov ebp, dword [ebx]
push edi
xor edi, edi
mov dword [edx], 0xffffffff
mov dword [ecx], edi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], edx
lea edx, [esp + 0x18]
push edx
push eax
push ebx
mov dword [esp + 0x20], edi
call fcn.00452a60
add esp, 0x10
test eax, eax
je 0x452ba2
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004874cc
add esp, 0xa0
ret
movzx eax, word [esp + 0x24]
sub eax, 2
push esi
lea esi, [ebx + 0x9e]
jne 0x452c9a
push 0x2e
push esi
lea eax, [esp + 0x34]
push eax
push 2
call fcn.00455df0
add esp, 0x10
test eax, eax
je 0x452c9a
mov ecx, dword [esp + 0x2a]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea eax, [ebx + 0x40]
mov dword [ebx + 0xcc], edx
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
push str.__Trying__s..._n
push ebp
movsw word es:[edi], word [esi]
call fcn.00450a50
push ebx
call fcn.00452690
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp dword [ebp + 0x34c], 0
je 0x452c1e
mov edx, esi
mov edi, ebx
call fcn.00452890
push esi
call fcn.004528f0
add esp, 4
cmp dword [ebp + 0x440], 0
je 0x452c37
mov edi, ebp
call fcn.00452150
mov eax, dword [ebp + 0x1a4]
test eax, eax
je 0x452c5d
mov ecx, dword [ebp + 0x1a8]
push 0
push esi
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x452cd2
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x18]
push edx
push esi
push ebx
call fcn.00452250
mov edi, eax
add esp, 0xc
test edi, edi
je 0x452cfd
push esi
push ebx
call fcn.00452a10
add esp, 8
pop esi
mov eax, edi
pop edi
pop ebp
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004874cc
add esp, 0xa0
ret
mov byte [esi], 0
mov dword [ebx + 0xcc], edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00455520
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00450ae0
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.00452a10
add esp, 0x20
jmp 0x452db3
test eax, eax
je 0x452c5d
push esi
push ebx
call fcn.00452a10
add esp, 8
pop esi
pop edi
mov eax, 0x2a
pop ebp
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004874cc
add esp, 0xa0
ret
mov edi, 1
push edi
push esi
call fcn.0046e1d0
add esp, 8
call fcn.00455600
cmp dword [ebx + 0x20c], edi
mov dword [ebx + 0x204], eax
mov dword [ebx + 0x208], edx
jle 0x452d35
mov eax, dword [ebx + 0x210]
push eax
push ebp
call fcn.0044ee10
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x452dad
cmp dword [ebx + 0x74], edi
jne 0x452dad
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x452da5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x452d9d
cmp edi, 0x2732
jle 0x452d74
cmp edi, 0x2734
jle 0x452d9d
push edi
push ebx
call fcn.00455520
push eax
lea eax, [ebx + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push ebp
call fcn.00450ae0
push esi
push ebx
mov dword [ebp + 0x85cc], edi
call fcn.00452a10
add esp, 0x20
jmp 0x452db3
mov eax, dword [esp + 0xc]
mov dword [eax], esi
jmp 0x452db3
mov ecx, dword [esp + 0xc]
mov dword [ecx], esi
jmp 0x452db3
mov edx, dword [esp + 0xc]
mov dword [edx], esi
mov ecx, dword [esp + 0xa8]
pop esi
pop edi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004874cc
add esp, 0xa0
ret