Function at 0x532f20
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.005e6090
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 0x533254
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.005e6246
lea eax, [esp + 0x50]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x532f92
push 0
sub eax, edx
push eax
lea ecx, [esp + 0x48]
push ecx
push ebx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x53324e
lea ecx, [esp + 0x40]
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x532fc0
sub ecx, esi
cmp eax, ecx
jne 0x53324e
mov ecx, dword [esp + 0x18]
call fcn.00532d50
test eax, eax
je 0x5330f3
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5330f3
lea ecx, [esp + 0x2c]
call fcn.00512e40
lea ecx, [esp + 0x1c]
call fcn.00512e40
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x533011
push edi
lea ecx, [esp + 0x30]
call fcn.004e1bb0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x53302f
push eax
lea ecx, [esp + 0x20]
call fcn.004e1bb0
lea ecx, [esp + 0x1c]
call fcn.004e1b90
mov esi, eax
jmp 0x533034
mov esi, 0x5f8416
test edi, edi
je 0x533043
lea ecx, [esp + 0x2c]
call fcn.004e1b90
jmp 0x533048
mov eax, 0x5f8416
push esi
push eax
lea edx, [esp + 0x48]
push str._s:_s
push edx
call fcn.005e6246
lea eax, [esp + 0x50]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x533063
sub eax, edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.005535a0
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x44]
push str.Proxy_Authorization:_Basic__s
push ecx
call fcn.005e6246
mov ecx, dword [esp + 0x1c]
add esp, 0xc
call fcn.004dc6a0
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5330a8
push 0
sub eax, edx
push eax
lea edx, [esp + 0x48]
push edx
push ebx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x533218
lea ecx, [esp + 0x40]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x5330d0
sub ecx, esi
cmp eax, ecx
jne 0x533218
lea ecx, [esp + 0x1c]
call fcn.004e1cc0
lea ecx, [esp + 0x2c]
call fcn.004e1cc0
lea eax, [esp + 0x40]
push 0x602a7c
push eax
call fcn.005e6246
lea eax, [esp + 0x48]
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x533110
push 0
sub eax, edx
push eax
lea ecx, [esp + 0x48]
push ecx
push ebx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x53324e
lea ecx, [esp + 0x40]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x533137
sub ecx, esi
cmp eax, ecx
jne 0x53324e
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 0x53324e
test eax, eax
je 0x53324e
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.005e7280
add esp, 8
test eax, eax
je 0x53324e
xor edx, edx
mov dword [esp + 0x14], edx
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x30
jl 0x5331ae
cmp cl, 0x39
jg 0x5331ae
cmp edx, 3
jae 0x5331ae
mov byte [esp + edx + 0x14], cl
inc edx
jmp 0x533194
lea ecx, [esp + 0x14]
push ecx
call fcn.005e64a5
add esp, 4
sub eax, 0xc8
je 0x53323e
sub eax, 0xc9
push ebx
je 0x53324f
sub eax, 6
jne 0x53324f
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esp + 0xc]
mov eax, 1
cmp ecx, eax
je 0x533259
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 0x532f70
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.004e1cc0
lea ecx, [esp + 0x2c]
call fcn.004e1cc0
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