Function at 0x532f10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x834
call fcn.00609610
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 6
push 1
push 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], 0
mov dword [eax], 0xffffffff
call sub.WSOCK32.dll_socket
mov ecx, dword [ebp + 0xc]
push 0x10
mov ebx, eax
push ecx
push ebx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
je 0x533244
lea ebx, [ebx]
movzx eax, word [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push edx
lea eax, [esp + 0x48]
push str.CONNECT__s:_d_HTTP_1.0_r_n
push eax
call fcn.006097c6
lea eax, [esp + 0x50]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x532f82
push 0
sub eax, edx
push eax
lea ecx, [esp + 0x48]
push ecx
push ebx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x53323e
lea ecx, [esp + 0x40]
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x532fb0
sub ecx, esi
cmp eax, ecx
jne 0x53323e
mov ecx, dword [esp + 0x18]
call fcn.00532d40
test eax, eax
je 0x5330e3
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5330e3
lea ecx, [esp + 0x2c]
call fcn.00512e60
lea ecx, [esp + 0x1c]
call fcn.00512e60
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x533001
push edi
lea ecx, [esp + 0x30]
call fcn.004e1be0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x53301f
push eax
lea ecx, [esp + 0x20]
call fcn.004e1be0
lea ecx, [esp + 0x1c]
call fcn.00533d50
mov esi, eax
jmp 0x533024
mov esi, 0x61c436
test edi, edi
je 0x533033
lea ecx, [esp + 0x2c]
call fcn.00533d50
jmp 0x533038
mov eax, 0x61c436
push esi
push eax
lea edx, [esp + 0x48]
push str._s:_s
push edx
call fcn.006097c6
lea eax, [esp + 0x50]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x533053
sub eax, edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.00553620
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x44]
push str.Proxy_Authorization:_Basic__s
push ecx
call fcn.006097c6
mov ecx, dword [esp + 0x1c]
add esp, 0xc
call fcn.004dc710
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x533098
push 0
sub eax, edx
push eax
lea edx, [esp + 0x48]
push edx
push ebx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x533208
lea ecx, [esp + 0x40]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x5330c0
sub ecx, esi
cmp eax, ecx
jne 0x533208
lea ecx, [esp + 0x1c]
call fcn.004e1cf0
lea ecx, [esp + 0x2c]
call fcn.004e1cf0
lea eax, [esp + 0x40]
push 0x626a9c
push eax
call fcn.006097c6
lea eax, [esp + 0x48]
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x533100
push 0
sub eax, edx
push eax
lea ecx, [esp + 0x48]
push ecx
push ebx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x53323e
lea ecx, [esp + 0x40]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x533127
sub ecx, esi
cmp eax, ecx
jne 0x53323e
xor eax, eax
push eax
push 0x7ff
lea edx, [esp + 0x48]
push edx
mov ecx, 0x200
lea edi, [esp + 0x4c]
push ebx
rep stosd dword es:[edi], eax
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x53323e
test eax, eax
je 0x53323e
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.0060a7f0
add esp, 8
test eax, eax
je 0x53323e
xor edx, edx
mov dword [esp + 0x14], edx
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x30
jl 0x53319e
cmp cl, 0x39
jg 0x53319e
cmp edx, 3
jae 0x53319e
mov byte [esp + edx + 0x14], cl
inc edx
jmp 0x533184
lea ecx, [esp + 0x14]
push ecx
call fcn.00609a1b
add esp, 4
sub eax, 0xc8
je 0x53322e
sub eax, 0xc9
push ebx
je 0x53323f
sub eax, 6
jne 0x53323f
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esp + 0xc]
mov eax, 1
cmp ecx, eax
je 0x533249
push 6
push eax
push 2
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_socket
mov edx, dword [ebp + 0xc]
push 0x10
mov ebx, eax
push edx
push ebx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x532f60
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push ebx
call sub.WSOCK32.dll_closesocket
lea ecx, [esp + 0x1c]
call fcn.004e1cf0
lea ecx, [esp + 0x2c]
call fcn.004e1cf0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18