Function at 0x4632e0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x9c
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
push ebp
mov ebp, dword [ebx]
push edi
xor edi, edi
mov dword [eax], 0xffffffff
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x18]
mov dword [ecx], edi
mov ecx, dword [esp + 0xac]
push eax
push ecx
push ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.00463220
add esp, 0x10
test eax, eax
je 0x463334
pop edi
xor eax, eax
pop ebp
add esp, 0x9c
ret
movzx eax, word [esp + 0x24]
sub eax, 2
push esi
lea esi, [ebx + 0x9e]
jne 0x463424
push 0x2e
push esi
lea edx, [esp + 0x34]
push edx
push 2
call fcn.00466cf0
add esp, 0x10
test eax, eax
je 0x463424
mov eax, dword [esp + 0x2a]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx ecx, ax
mov dword [ebx + 0xcc], ecx
lea eax, [ebx + 0x40]
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.004622f0
push ebx
call fcn.00462e90
mov eax, dword [ebp + 0x304]
mov esi, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
je 0x4633b1
mov edx, esi
mov edi, ebx
call fcn.004630a0
push esi
call fcn.00463100
mov eax, dword [ebp + 0x3f8]
add esp, 4
test eax, eax
je 0x4633cf
mov edi, ebp
call fcn.00462910
mov esi, dword [esp + 0xc]
mov eax, dword [ebp + 0x164]
test eax, eax
je 0x4633f9
mov ecx, dword [ebp + 0x168]
push 0
push esi
push ecx
call eax
add esp, 0xc
cmp eax, 2
mov dword [esp + 0x10], eax
jne 0x463463
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x18]
push edx
push esi
push ebx
call fcn.00462a90
mov edi, eax
add esp, 0xc
test edi, edi
je 0x463480
push esi
push ebx
call fcn.004631d0
add esp, 8
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x9c
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.00456660
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.004623b0
mov edx, dword [esp + 0x24]
push edx
push ebx
call fcn.004631d0
add esp, 0x20
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x9c
ret
test eax, eax
je 0x4633f9
push esi
push ebx
call fcn.004631d0
add esp, 8
pop esi
pop edi
mov eax, 0x2a
pop ebp
add esp, 0x9c
ret
push 1
push esi
call fcn.0047cf80
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x46353b
cmp dword [ebx + 0x74], 1
jne 0x46353b
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.WSOCK32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4634c3
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [esp + 0x10], eax
call fcn.00466ae0
mov dword [ebx + 0x204], eax
cmp dword [ebx + 0x20c], 1
mov dword [ebx + 0x208], edx
jle 0x4634ed
mov edx, dword [ebx + 0x210]
push edx
push ebp
call fcn.00466280
add esp, 8
cmp edi, 0xffffffff
jne 0x4635ba
mov eax, dword [esp + 0x10]
cmp eax, 0xb
je 0x46359d
cmp eax, 0x2732
jle 0x463515
cmp eax, 0x2734
jle 0x46359d
push eax
push ebx
call fcn.00456660
push eax
lea eax, [ebx + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push ebp
call fcn.004623b0
mov eax, dword [esp + 0x28]
add esp, 0x18
mov dword [ebp + 0x857c], eax
jmp 0x463545
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jne 0x463566
push esi
lea esi, [esp + 0x14]
call fcn.00462e20
add esp, 4
test edi, edi
jne 0x4635e1
test eax, eax
je 0x4635f6
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0xb8]
push str.connected_n
push ebp
mov dword [edx], 1
call fcn.004622f0
push esi
push ebx
call fcn.00462f40
mov eax, dword [esp + 0xc4]
add esp, 0x10
mov dword [eax], esi
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x9c
ret
mov eax, dword [esp + 0xb0]
push ebx
mov edi, esi
call fcn.00462a10
mov edi, eax
add esp, 4
cmp edi, 3
je 0x463467
cmp edi, 1
jne 0x463545
cmp dword [ebp + 0x530], 2
jne 0x463545
mov ecx, dword [esp + 0xb4]
mov dword [ecx], esi
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x9c
ret
cmp edi, 1
jne 0x4635f6
push str.Timeout_n
push ebp
call fcn.004622f0
add esp, 8
jmp 0x463616
mov eax, dword [esp + 0x10]
push eax
push ebx
mov dword [ebp + 0x857c], eax
call fcn.00456660
push eax
push 0x4edca0
push ebp
call fcn.004622f0
add esp, 0x14
mov ecx, dword [esp + 0xc]
push ecx
push ebx
call fcn.004631d0
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x9c
ret