Function at 0x525c9f
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 0x525cc6
push ebx
call fcn.00412773
test eax, eax
jne 0x525cdb
xor eax, eax
jmp 0x525f5a
push dword [ebp + 8]
call fcn.004127c1
mov ebx, eax
test ebx, ebx
jne 0x525cdb
xor eax, eax
jmp 0x525f5a
mov edx, dword [ebp + 0xc]
shr edx, 0x10
test dx, 0xffff
je 0x525d2b
cmp dword [ebx + 0x41c], 0
je 0x525cf8
xor eax, eax
jmp 0x525f5a
cmp dword [ebx + 0x420], 0
je 0x525d0b
mov dword [ebx + 0x440], 3
push ebx
call fcn.0052527e
push ebx
push 0
push 0x1779
call fcn.0042c564
push eax
call fcn.00525130
xor eax, eax
jmp 0x525f5a
xor edx, edx
mov dword [ebx + 0x18], edx
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.0054c150
add esp, 0xc
mov word [ebp - 0x10], 2
xor eax, eax
mov dword [ebp - 0xc], eax
mov dx, word [ebx + 0xd1c]
push edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
cmp esi, 0xffffffff
je 0x525d69
mov dword [ebp - 0xc], esi
jmp 0x525df1
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 0x525df1
mov eax, dword [esi + 0xc]
cmp dword [eax + 4], 0
je 0x525df1
mov edi, 1
jmp 0x525de8
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 0x525de7
push eax
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.0042e322
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebx + 0xd1e]
push ecx
call fcn.0054c494
add esp, 8
test eax, eax
je 0x525de7
push 0
lea eax, [ebp - 0x124]
push eax
push dword [ebx + 0x10]
call fcn.004c6a50
test eax, eax
je 0x525de7
mov dword [ebx + 0x10], eax
inc edi
mov edx, dword [esi + 0xc]
cmp dword [edx + edi*4], 0
jne 0x525d8c
cmp dword [0x563d68], 0
je 0x525e41
push dword [ebx + 8]
call fcn.0048894e
push dword [ebp - 0xc]
call sub.WSOCK32.dll_inet_ntoa
test eax, eax
je 0x525e3a
push eax
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.0042e322
push ebx
push dword [ebx + 8]
push 0
mov ax, word [ebx + 0xd1c]
push eax
lea edx, [ebp - 0x124]
push edx
call fcn.00488cd0
xor eax, eax
jmp 0x525f5a
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0xd84], edx
push 0
push 2
push 0
mov cx, word [0x561bee]
push ecx
mov ax, word [0x561bec]
push eax
call fcn.004f196d
mov esi, eax
mov dword [ebx + 4], esi
cmp esi, 0xffffffff
jne 0x525eb1
xor eax, eax
mov dword [0x56ac00], eax
mov dword [0x56ac10], 1
push dword [0x55f89c]
push 0
push 0x177a
call fcn.0042c564
push eax
push dword [ebx]
call fcn.004ef100
push ebx
call fcn.0052527e
push ebx
push 0x56d633
call fcn.00525130
xor eax, eax
jmp 0x525f5a
push dword [ebx + 4]
call fcn.00525bcd
push 0x10
push 0x800d
push dword [0x56cee8]
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 0x525ee4
xor eax, eax
jmp 0x525f5a
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x525ef4
xor eax, eax
jmp 0x525f5a
cmp dword [ebx + 0x41c], 0
je 0x525f01
xor eax, eax
jmp 0x525f5a
lea edx, [ebp - 0x124]
push edx
push eax
call fcn.00525bf6
xor ecx, ecx
mov dword [0x56ac00], ecx
mov dword [0x56ac10], 1
push dword [0x55f8a0]
lea eax, [ebp - 0x124]
push eax
push dword [ebx]
call fcn.004ef100
cmp dword [ebx + 0x420], 0
je 0x525f47
mov dword [ebx + 0x440], 4
push ebx
call fcn.0052527e
push ebx
push 0x56d637
call fcn.00525130
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10