Function at 0x5299b0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1d8
mov edi, edx
mov esi, ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [0x7c3824]
xor ecx, ebp
mov dword [esp + 0x1d0], ecx
mov dword [edi + edx*4 + 0x150], 0xffffffff
lea ecx, [esp + 0xc]
lea edx, [esp + 0x140]
push ecx
push edx
push eax
push esi
call fcn.00529d20
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x529c8a
lea ecx, [esp + 0x150]
lea eax, [esp + 8]
lea ebx, [esp + 0x112]
push eax
push ebx
push dword [esp + 0x154]
push ecx
call fcn.00528bb0
add esp, 0x10
test al, al
je 0x529a8a
push dword [esp + 8]
push ebx
push str.__Trying__s:_d...
push esi
call fcn.0051ec50
add esp, 0x10
cmp dword [esp + 0x140], 2
jne 0x529ace
cmp dword [esp + 0x144], 1
jne 0x529ace
cmp byte [esi + 0x727], 0
mov ebx, dword [esp + 0xc]
je 0x529a6d
mov ecx, esi
mov edx, ebx
call fcn.00529f20
push ebx
call fcn.00529730
add esp, 4
cmp byte [esi + 0x730], 0
je 0x529adb
mov ecx, esi
mov edx, ebx
call fcn.00529f90
jmp 0x529adb
call fcn.005f3508
lea ecx, [esp + 0x10]
push 0x100
push ecx
push dword [eax]
call fcn.00589dd0
add esp, 0xc
mov ebx, eax
call fcn.005f3508
push ebx
push dword [eax]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.0051ed60
add esp, 0x10
push dword [esp + 0xc]
push edi
push esi
call fcn.00529660
add esp, 0xc
jmp 0x529c88
mov ebx, dword [esp + 0xc]
push ebx
call fcn.00529730
add esp, 4
cmp dword [esi + 0x1b8], 0
mov dword [esp], ebx
je 0x529b34
push 1
push esi
call fcn.00522800
add esp, 8
push 0
push ebx
push dword [esi + 0x1bc]
call dword [esi + 0x1b8]
add esp, 0xc
mov ebx, eax
push 0
push esi
call fcn.00522800
add esp, 8
test ebx, ebx
je 0x529b38
mov al, 1
cmp ebx, 2
mov ebx, dword [esp]
je 0x529b3d
push ebx
push edi
push esi
call fcn.00529660
add esp, 0xc
mov ebx, 0x2a
jmp 0x529c8a
xor eax, eax
jmp 0x529b3d
xor eax, eax
mov ebx, dword [esp]
mov dword [esp + 4], eax
cmp dword [esp + 0x140], 2
jne 0x529b90
lea eax, [esp + 0x150]
push eax
call fcn.00401a00
add esp, 4
mov ecx, esi
mov edx, ebx
push eax
push dword [esp + 0x144]
call fcn.0052a070
add esp, 8
test eax, eax
je 0x529b90
push ebx
push edi
push esi
mov esi, eax
call fcn.00529660
add esp, 0xc
cmp esi, 1
mov ebx, 7
cmovne ebx, esi
jmp 0x529c8a
push 1
push ebx
call fcn.005a1350
add esp, 8
lea ebx, [esp + 0x10]
push ebx
call fcn.0057f2b0
add esp, 4
movups xmm0, xmmword [esp + 0x10]
movups xmmword [edi + 0x280], xmm0
cmp dword [edi + 0x27c], 2
jl 0x529beb
push 3
push dword [edi + 0x294]
push dword [edi + 0x290]
push esi
call fcn.0051f8d0
add esp, 0x10
push 4
push dword [edi + 0x29c]
push dword [edi + 0x298]
push esi
call fcn.0051f8d0
add esp, 0x10
cmp byte [esp + 4], 0
jne 0x529c7b
cmp dword [edi + 0x58], 4
je 0x529c7b
cmp byte [edi + 0x272], 0
je 0x529c5d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea ecx, [eax - 0x2733]
cmp ecx, 2
jb 0x529c7b
cmp eax, 0xb
je 0x529c7b
push 0x100
push ebx
push eax
mov ebx, eax
call fcn.00589dd0
add esp, 0xc
push eax
lea eax, [esp + 0x116]
push eax
push str.Immediate_connect_fail_for__s:__s
push esi
call fcn.0051ec50
add esp, 0x10
mov dword [esi + 0x974], ebx
push dword [esp]
push edi
push esi
call fcn.00529660
add esp, 0xc
mov ebx, 7
jmp 0x529c8a
push dword [esp + 0x14c]
lea eax, [esp + 0x154]
push eax
push dword [esp + 8]
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
je 0x529c05
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp]
mov dword [edi + eax*4 + 0x150], ecx
xor ebx, ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, ebp
call fcn.005db451
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret