Function at 0x45bfa0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov edx, dword [ebx]
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov eax, dword [ebx + 0x70]
cmp eax, 2
mov ecx, dword [esi + 4]
push edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x45bfdc
mov dword [esp + 0x20], 0x11
jmp 0x45bfe3
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x10]
cmp ecx, 0x80
mov dword [esp + 0x24], ecx
jbe 0x45bffb
mov ecx, 0x80
mov dword [esp + 0x24], ecx
mov esi, dword [esi + 0x18]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov eax, dword [edx + 0x16c]
test eax, eax
je 0x45c03e
mov edx, dword [edx + 0x170]
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
call eax
mov edi, eax
add esp, 0xc
mov dword [esp + 0x10], edi
jmp 0x45c059
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x10], eax
mov edi, eax
cmp edi, 0xffffffff
je 0x45c301
movzx eax, word [esp + 0x28]
sub eax, 2
lea esi, [ebx + 0x9a]
jne 0x45c13c
push 0x2e
push esi
lea eax, [esp + 0x34]
push eax
push 2
call fcn.0045d8c0
add esp, 0x10
test eax, eax
je 0x45c13c
mov ecx, dword [esp + 0x2a]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea eax, [ebx + 0x3c]
mov dword [ebx + 0xc8], edx
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x10]
push str.__Trying__s...
push edi
call fcn.0045b210
push ebx
call fcn.0045bcc0
mov eax, dword [edi + 0x2f8]
mov esi, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x45c0e6
mov edx, esi
mov edi, ebx
call fcn.0045bed0
mov edi, dword [esp + 0xc]
push esi
call fcn.0045bf30
mov eax, dword [edi + 0x164]
add esp, 4
test eax, eax
je 0x45c114
mov ecx, dword [edi + 0x168]
push 0
push esi
push ecx
call eax
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x45c236
mov edx, dword [esp + 0x18]
push edx
push esi
push ebx
call fcn.0045b960
add esp, 0xc
test eax, eax
mov dword [esp + 8], eax
je 0x45c17b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi], 0
mov dword [ebx + 0xc8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00469d70
push eax
mov eax, dword [esp + 0x18]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0045b2d0
add esp, 0x18
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.0046a620
mov eax, dword [ebx + 0x70]
add esp, 8
cmp eax, 1
jne 0x45c21b
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 8], eax
call fcn.00467320
mov dword [ebx + 0x1f8], eax
cmp dword [ebx + 0x200], 1
mov dword [ebx + 0x1fc], edx
jle 0x45c1d1
mov edx, dword [ebx + 0x204]
push edx
push edi
call fcn.00465ea0
add esp, 8
cmp dword [esp + 8], 0xffffffff
jne 0x45c24c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
mov dword [esp + 0x14], eax
je 0x45c21f
cmp eax, 0x2732
jle 0x45c1f5
cmp eax, 0x2734
jle 0x45c21f
push eax
push ebx
call fcn.00469d70
push eax
lea eax, [ebx + 0x3c]
push eax
push str.Failed_to_connect_to__s:__s
push edi
call fcn.0045b2d0
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov dword [edi + 0x854c], eax
jmp 0x45c25c
xor edi, edi
jmp 0x45c260
mov eax, dword [ebp + 8]
push ebx
mov edi, esi
call fcn.0045b8f0
add esp, 4
cmp eax, 3
mov dword [esp + 8], eax
jne 0x45c248
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x2a
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0xc]
cmp dword [esp + 8], 1
jne 0x45c25c
cmp dword [edi + 0x500], 2
je 0x45c29b
mov edi, dword [esp + 8]
push esi
lea esi, [esp + 0x18]
call fcn.0045bc50
add esp, 4
test edi, edi
jne 0x45c2a8
test eax, eax
je 0x45c2d2
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
push str.connected_n
push eax
mov dword [edx], 1
call fcn.0045b210
mov esi, dword [esp + 0x18]
push esi
push ebx
call fcn.0045bd70
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [ecx], esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 1
jne 0x45c2d2
mov edx, dword [esp + 0xc]
push str.Timeout_n
push edx
call fcn.0045b210
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push eax
push ebx
mov dword [esi + 0x854c], eax
call fcn.00469d70
push eax
push 0x532164
push esi
call fcn.0045b210
mov eax, dword [esp + 0x24]
add esp, 0x14
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret