Function at 0x4477d0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xe4
mov eax, dword [0x4bcad4]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xec]
push ebp
mov ebp, dword [esp + 0xec]
mov edx, dword [ebp]
push esi
mov dword [esp + 0x1c], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x10], edx
lea edx, [esp + 0x2c]
push edx
push eax
xor esi, esi
push ebp
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.00447680
add esp, 0x10
mov dword [esp + 8], eax
cmp eax, esi
je 0x44784c
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.004751f1
add esp, 0xe4
ret
push ebx
push edi
lea ebx, [esp + 0x2c]
lea edi, [esp + 0xc0]
lea esi, [esp + 0x40]
call fcn.004471e0
test eax, eax
jne 0x447899
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0044a830
push eax
mov eax, dword [esp + 0x20]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00444910
mov ecx, dword [esp + 0x38]
push ecx
push ebp
call fcn.00447620
add esp, 0x20
jmp 0x447ab2
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0xc0]
push edx
push str.__Trying__s..._n
push ebx
call fcn.00444880
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 2
je 0x4478c5
cmp eax, 0x17
jne 0x4478d0
mov esi, 1
cmp dword [esp + 0x34], esi
je 0x4478d4
xor esi, esi
jmp 0x4478e7
cmp dword [ebx + 0x3ac], 0
je 0x4478e7
push edi
push ebp
call fcn.00447440
add esp, 8
push edi
call fcn.004474a0
add esp, 4
test esi, esi
je 0x447904
cmp dword [ebx + 0x4c8], 0
je 0x447904
mov esi, ebx
call fcn.00446aa0
mov eax, dword [ebx + 0x1f0]
test eax, eax
je 0x447946
mov ecx, dword [ebx + 0x1f4]
push 0
push edi
push ecx
call eax
mov esi, eax
add esp, 0xc
cmp esi, 2
jne 0x44792e
mov dword [esp + 0x1c], 1
jmp 0x44794a
test esi, esi
je 0x44794a
push edi
push ebp
call fcn.00447620
add esp, 8
mov eax, 0x2a
jmp 0x447ab4
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x447958
cmp eax, 0x17
jne 0x44799e
lea edx, [esp + 0x40]
push edx
call fcn.004684d0
push eax
mov eax, dword [esp + 0x38]
push eax
push edi
push ebp
call fcn.00446c50
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x44799a
push edi
push ebp
call fcn.00447620
add esp, 8
cmp ebx, 1
jne 0x447993
lea eax, [ebx + 6]
jmp 0x447ab4
mov eax, ebx
jmp 0x447ab4
mov ebx, dword [esp + 0x14]
push 1
push edi
call fcn.00468550
add esp, 8
call fcn.00444380
cmp dword [ebp + 0x330], 1
mov dword [ebp + 0x328], eax
mov dword [ebp + 0x32c], edx
jle 0x4479d3
mov ecx, dword [ebp + 0x334]
push ecx
push ebx
call fcn.00442af0
add esp, 8
cmp dword [esp + 0x1c], 0
jne 0x447aac
cmp dword [ebp + 0x8c], 1
jne 0x447aac
cmp dword [ebp + 0x31c], 0
jne 0x447a0e
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x447a1e
jmp 0x447a12
mov ebx, dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], eax
mov esi, eax
xor ecx, ecx
cmp dword [esp + 0x30], 0x17
sete cl
mov dword [ebp + 0x2d4], ecx
cmp ebx, 0xffffffff
jne 0x447a99
cmp esi, 0xb
je 0x447a85
cmp esi, 0x2732
jle 0x447a48
cmp esi, 0x2734
jle 0x447a85
push esi
push ebp
call fcn.0044a830
mov ebx, dword [esp + 0x1c]
push eax
lea edx, [esp + 0xcc]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push ebx
call fcn.00444880
push edi
push ebp
mov dword [ebx + 0x86a0], esi
call fcn.00447620
mov dword [esp + 0x30], 7
mov eax, dword [esp + 0x30]
add esp, 0x20
jmp 0x447ab4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], 0
mov dword [eax], edi
mov eax, dword [esp + 0x10]
jmp 0x447ab4
cmp dword [esp + 0x10], 0
jne 0x447aa6
mov eax, dword [esp + 0x24]
mov dword [eax], edi
mov eax, dword [esp + 0x10]
jmp 0x447ab4
mov ecx, dword [esp + 0x24]
mov dword [ecx], edi
xor eax, eax
mov ecx, dword [esp + 0xf0]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.004751f1
add esp, 0xe4
ret