Function at 0x100473c0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xdc
mov eax, dword [0x1018b080]
xor eax, esp
mov dword [esp + 0xd8], eax
mov edx, dword [esp + 0xe8]
xor ecx, ecx
mov eax, dword [esp + 0xe4]
push ebx
push ebp
push edi
mov edi, dword [esp + 0xec]
mov dword [esp + 0x10], ecx
mov byte [esp + 0xf], cl
lea ecx, [esp + 0x14]
push ecx
mov ebp, dword [edi]
lea ecx, [esp + 0x28]
push ecx
push eax
push edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], 0xffffffff
mov dword [edx], 0xffffffff
call fcn.10046a10
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1004743e
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.1006d454
add esp, 0xdc
ret
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.10047330
add esp, 0xc
test al, al
jne 0x1004748b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.1004f2f0
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.100457d0
push dword [esp + 0x30]
push edi
call fcn.10046140
add esp, 0x20
jmp 0x1004768f
lea eax, [esp + 0xb8]
push eax
push str.__Trying__s..._n
push ebp
call fcn.100458b0
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp eax, 2
je 0x100474af
cmp eax, 0x17
jne 0x100474ba
cmp dword [esp + 0x2c], 1
jne 0x100474ba
mov al, 1
jmp 0x100474bc
xor al, al
mov esi, dword [esp + 0x18]
mov byte [esp + 0x12], al
test al, al
je 0x100474db
cmp byte [ebp + 0x366], 0
je 0x100474db
push esi
push edi
call fcn.10046b00
add esp, 8
push esi
call fcn.10046970
add esp, 4
cmp byte [esp + 0x12], 0
je 0x100474fe
cmp byte [ebp + 0x49c], 0
je 0x100474fe
push esi
push ebp
call fcn.100476b0
add esp, 8
mov eax, dword [ebp + 0x198]
test eax, eax
je 0x10047526
push 0
push esi
push dword [ebp + 0x19c]
call eax
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x14], ecx
cmp ecx, 2
jne 0x1004756f
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x28]
cmp eax, 2
je 0x10047534
cmp eax, 0x17
jne 0x10047587
lea eax, [esp + 0x38]
push eax
call fcn.100638f0
push eax
push dword [esp + 0x30]
push esi
push edi
call fcn.10046e60
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x10047587
push esi
push edi
call fcn.10046140
add esp, 8
mov eax, 7
cmp ebx, 1
cmove ebx, eax
mov eax, ebx
jmp 0x10047691
test ecx, ecx
je 0x10047526
push esi
push edi
call fcn.10046140
add esp, 8
mov eax, 0x2a
jmp 0x10047691
push 1
push esi
call fcn.10063970
add esp, 8
call fcn.100433a0
cmp dword [edi + 0x390], 1
mov dword [edi + 0x388], eax
mov dword [edi + 0x38c], edx
jle 0x100475c1
push dword [edi + 0x39c]
push dword [edi + 0x398]
push ebp
call fcn.100428a0
add esp, 0xc
cmp byte [esp + 0x13], 0
jne 0x10047689
cmp dword [edi + 0x8c], 1
jne 0x10047689
cmp byte [edi + 0x382], 0
jne 0x100475fb
push dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x10047609
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x1004760d
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], 0x17
sete al
cmp dword [esp + 0x1c], 0xffffffff
mov byte [edi + 0x36f], al
jne 0x1004767b
cmp ecx, 0xb
je 0x1004766f
cmp ecx, 0x2732
jle 0x10047637
cmp ecx, 0x2734
jle 0x1004766f
push ecx
push edi
call fcn.1004f2f0
push eax
lea eax, [esp + 0xc4]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebp
call fcn.100458b0
mov ecx, dword [esp + 0x2c]
push esi
push edi
mov dword [ebp + 0x4694], ecx
call fcn.10046140
mov ebx, 7
add esp, 0x20
mov eax, ebx
jmp 0x10047691
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov dword [eax], esi
mov eax, ebx
jmp 0x10047691
test ebx, ebx
jne 0x10047685
mov eax, dword [esp + 0x20]
mov dword [eax], esi
mov eax, ebx
jmp 0x10047691
mov eax, dword [esp + 0x20]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [esp + 0xe8]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006d454
add esp, 0xdc
ret