Function at 0x527ac7
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
test ebx, ebx
je 0x527aee
push ebx
call fcn.0041261f
test eax, eax
jne 0x527b03
xor eax, eax
jmp 0x527dbb
push dword [ebp + 8]
call fcn.0041266d
mov ebx, eax
test ebx, ebx
jne 0x527b03
xor eax, eax
jmp 0x527dbb
mov edx, dword [ebp + 0xc]
shr edx, 0x10
test dx, 0xffff
je 0x527b53
cmp dword [ebx + 0x41c], 0
je 0x527b20
xor eax, eax
jmp 0x527dbb
cmp dword [ebx + 0x420], 0
je 0x527b33
mov dword [ebx + 0x440], 3
push ebx
call fcn.00527096
push ebx
push 0
push 0x1779
call fcn.0042c771
push eax
call fcn.00526f48
xor eax, eax
jmp 0x527dbb
xor edx, edx
mov dword [ebx + 0x18], edx
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.0054e10c
add esp, 0xc
mov word [ebp - 0x10], 2
xor eax, eax
mov dword [ebp - 0xc], eax
mov dx, word [ebx + 0xd20]
push edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
cmp esi, 0xffffffff
je 0x527b91
mov dword [ebp - 0xc], esi
jmp 0x527c19
lea esi, [ebx + 0x1c]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0xc], ecx
cmp dword [ebx + 0x10], 0
jne 0x527c19
mov eax, dword [esi + 0xc]
cmp dword [eax + 4], 0
je 0x527c19
mov edi, 1
jmp 0x527c10
mov eax, dword [esi + 0xc]
mov edx, dword [eax + edi*4]
mov ecx, dword [edx]
mov dword [ebp - 0x1c], ecx
push dword [ebp - 0x1c]
call sub.WSOCK32.dll_inet_ntoa
test eax, eax
je 0x527c0f
push eax
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.0042e5e3
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebx + 0xd22]
push ecx
call fcn.0054e450
add esp, 8
test eax, eax
je 0x527c0f
push 0
lea eax, [ebp - 0x124]
push eax
push dword [ebx + 0x10]
call fcn.004c6a18
test eax, eax
je 0x527c0f
mov dword [ebx + 0x10], eax
inc edi
mov edx, dword [esi + 0xc]
cmp dword [edx + edi*4], 0
jne 0x527bb4
cmp dword [0x565dc4], 0
je 0x527c99
push dword [ebx + 8]
call fcn.0048845a
mov byte [ebp - 0x124], 0
push dword [ebp - 0xc]
call sub.WSOCK32.dll_inet_ntoa
test eax, eax
je 0x527c4f
push eax
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.0042e5e3
cmp byte [ebp - 0x124], 0
je 0x527c99
lea eax, [ebx + 0xd22]
push eax
call fcn.004882eb
test eax, eax
jne 0x527c99
lea edx, [ebp - 0x124]
push edx
call fcn.004882eb
test eax, eax
jne 0x527c99
push ebx
push dword [ebx + 8]
push 0
mov cx, word [ebx + 0xd20]
push ecx
lea eax, [ebp - 0x124]
push eax
call fcn.004887dc
xor eax, eax
jmp 0x527dbb
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0x1db4], edx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x448], ecx
push 0
push 2
push 0
mov ax, word [0x563c12]
push eax
mov dx, word [0x563c10]
push edx
call fcn.004f316d
mov esi, eax
mov dword [ebx + 4], esi
cmp esi, 0xffffffff
jne 0x527d12
xor eax, eax
mov dword [0x56cd18], eax
mov dword [0x56cd28], 1
push dword [0x5618e8]
push 0
push 0x177a
call fcn.0042c771
push eax
push dword [ebx]
call fcn.004f0245
push ebx
call fcn.00527096
push ebx
push 0x56f763
call fcn.00526f48
xor eax, eax
jmp 0x527dbb
push dword [ebx + 4]
call fcn.005279f5
push 0x10
push 0x800d
push dword [0x56f018]
push dword [ebx + 4]
call sub.WSOCK32.dll_WSAAsyncSelect
push 0x10
lea edx, [ebp - 0x10]
push edx
push dword [ebx + 4]
call sub.WSOCK32.dll_connect
test eax, eax
jne 0x527d45
xor eax, eax
jmp 0x527dbb
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x527d55
xor eax, eax
jmp 0x527dbb
cmp dword [ebx + 0x41c], 0
je 0x527d62
xor eax, eax
jmp 0x527dbb
lea edx, [ebp - 0x124]
push edx
push eax
call fcn.00527a1e
xor ecx, ecx
mov dword [0x56cd18], ecx
mov dword [0x56cd28], 1
push dword [0x5618ec]
lea eax, [ebp - 0x124]
push eax
push dword [ebx]
call fcn.004f0245
cmp dword [ebx + 0x420], 0
je 0x527da8
mov dword [ebx + 0x440], 4
push ebx
call fcn.00527096
push ebx
push 0x56f767
call fcn.00526f48
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10