Function at 0x447870
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov edx, dword [esi]
push edi
mov dword [ebp - 0xd0], edx
push esi
lea ebx, [ebp - 0xe0]
lea edx, [ebp - 0xcc]
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd4], 0
mov dword [eax], 0xffffffff
call fcn.00447d20
add esp, 4
test eax, eax
jne 0x447b21
lea ebx, [ebp - 0xe4]
lea eax, [ebp - 0x38]
lea edi, [ebp - 0xbc]
call fcn.00447190
test eax, eax
jne 0x44792f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.00468450
add esp, 4
push eax
mov eax, dword [ebp - 0xd0]
push edi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004492c0
mov esi, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xd8]
add esp, 0x10
call fcn.00447cd0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xd0]
lea ecx, [ebp - 0x38]
push ecx
push str.__Trying__s..._n
push edi
call fcn.00449240
mov ebx, dword [ebp - 0xe0]
add esp, 0xc
cmp dword [edi + 0x354], 0
je 0x44795f
mov edx, ebx
mov eax, esi
call fcn.00447700
mov esi, ebx
call fcn.00447770
mov esi, edi
cmp dword [esi + 0x454], 0
je 0x447978
mov edi, ebx
call fcn.00446b00
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4479a0
mov edx, dword [esi + 0x1b4]
push 0
push ebx
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x4479ea
mov dword [ebp - 0xd4], 1
mov eax, dword [ebp - 0xcc]
mov edi, dword [ebp - 0xd8]
push eax
push ebx
push edi
call fcn.00446c80
add esp, 0xc
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x447a11
mov esi, ebx
mov eax, edi
call fcn.00447cd0
mov ecx, dword [ebp - 0xd0]
lea eax, [ecx - 1]
neg eax
sbb eax, eax
and eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4479a0
mov eax, dword [ebp - 0xd8]
mov esi, ebx
call fcn.00447cd0
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
push 1
mov edx, ebx
call fcn.00467b90
add esp, 4
call fcn.00449b70
cmp dword [edi + 0x224], 1
mov dword [edi + 0x21c], eax
mov dword [edi + 0x220], edx
jle 0x447a44
mov eax, dword [edi + 0x228]
mov ecx, esi
call fcn.00440b10
cmp dword [ebp - 0xd4], 0
jne 0x447b19
cmp dword [edi + 0x7c], 1
jne 0x447b19
mov ecx, dword [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xbc]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x447afa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xd4], eax
cmp eax, 0xb
je 0x447af0
cmp eax, 0x2732
jle 0x447a98
cmp eax, 0x2734
jle 0x447af0
push edi
mov edi, eax
call fcn.00468450
add esp, 4
push eax
lea eax, [ebp - 0x38]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00449240
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd8]
mov dword [esi + 0x85dc], ecx
add esp, 0x10
mov esi, ebx
call fcn.00447cd0
mov dword [ebp - 0xd0], 7
mov eax, dword [ebp - 0xd0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xd0], 0
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xd0]
mov dword [edx], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xdc]
mov dword [eax], ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0047f164
mov esp, ebp
pop ebp
ret