Function at 0x4fe030
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x541ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov al, byte [esp + 0x38]
push ebp
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x10], al
call fcn.004feb60
mov ebp, dword [esp + 0x3c]
mov ecx, esi
push ebp
mov dword [esp + 0x38], 0
call fcn.004fdfa0
test eax, eax
jne 0x4fe0a7
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004feb60
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
push ebx
push edi
push 0x800
call fcn.00517a77
mov ebx, eax
mov eax, dword [esi + 0x24]
add esp, 4
mov dword [esp + 0x44], ebx
test eax, eax
jne 0x4fe103
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 8]
add eax, 0x190
push eax
call fcn.00517a77
mov edi, eax
mov eax, dword [esi + 4]
add esp, 4
mov dword [esp + 0x48], edi
test eax, eax
jne 0x4fe0ea
mov eax, 0xfba8bc
mov ecx, dword [esp + 0x4c]
push ecx
push eax
push str.CONNECT__s:_d_HTTP_1.1_r_nAccept:___r_nProxy_Connection:_Keep_Alive_r_nContent_length:_0_r_n_r_n
push edi
call fcn.005186d5
add esp, 0x10
jmp 0x4fe1e8
mov dl, byte [esp + 0x48]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call fcn.004feb60
mov eax, dword [0xfba8c0]
lea ecx, [esi + 0x1c]
push eax
push 0
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
call fcn.004febb0
push 0x3a
push 1
lea ecx, [esp + 0x2c]
call fcn.004fe890
mov edx, dword [0xfba8c0]
add esi, 0x2c
push edx
push 0
push esi
lea ecx, [esp + 0x30]
call fcn.004febb0
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax]
push ecx
call fcn.00517a77
mov ecx, dword [esp + 0x2c]
add esp, 4
test ecx, ecx
mov esi, eax
jne 0x4fe172
mov ecx, 0xfba8bc
mov eax, dword [esp + 0x2c]
lea edx, [eax + eax]
push edx
push eax
push esi
push ecx
call fcn.004fb4d0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x58]
repne scasb al, byte es:[edi]
mov edx, dword [ebx + 8]
not ecx
dec ecx
lea eax, [ecx + edx + 0x190]
push eax
call fcn.00517a77
mov ecx, dword [ebx + 4]
add esp, 0x14
test ecx, ecx
mov dword [esp + 0x48], eax
jne 0x4fe1b5
mov ecx, 0xfba8bc
mov edx, dword [esp + 0x4c]
push esi
push edx
push ecx
push str.CONNECT__s:_d_HTTP_1.1_r_nProxy_Authorization:_Basic__s_r_nAccept:___r_nProxy_Connection:_Keep_Alive_r_nContent_length:_0_r_n_r_n
push eax
call fcn.005186d5
push esi
call fcn.0051798e
add esp, 0x18
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
push 1
call fcn.004feb60
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x48]
push 0
not ecx
dec ecx
push ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4fe213
mov dword [esp + 0x10], 0
jmp 0x4fe3e3
push 0
push 0x800
push ebx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4fe206
cmp eax, 0xffffffff
je 0x4fe206
mov byte [ebx + eax], 0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.004fedb0
test al, al
je 0x4fe271
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov byte [eax + ebx], 0
mov edi, 0xfe759c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x4c], esi
je 0x4fe2f0
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jbe 0x4fe2eb
cmp esi, ebp
ja 0x4fe2eb
movsx edx, byte [0xfe759c]
mov ebx, dword [esp + 0x18]
mov ecx, 1
sub ecx, esi
add ebp, ecx
push ebp
push edx
push ebx
call fcn.005183d0
add esp, 0xc
test eax, eax
je 0x4fe2eb
jmp 0x4fe2bd
mov esi, dword [esp + 0x4c]
mov ecx, esi
mov edi, 0xfe759c
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4fe341
sub ebx, eax
lea ebp, [ebx + ebp - 1]
lea ebx, [eax + 1]
movsx eax, byte [0xfe759c]
push ebp
push eax
push ebx
call fcn.005183d0
add esp, 0xc
test eax, eax
jne 0x4fe2b9
mov eax, dword [0xfba8c0]
cmp eax, dword [0xfba8c0]
je 0x4fe3d7
push eax
lea ecx, [esp + 0x28]
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.004fe700
mov edx, dword [0xfba8c0]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
mov byte [esp + 0x48], 2
call fcn.004fe960
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4fe350
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4fe347
cmp al, 0xff
je 0x4fe347
dec al
mov byte [ecx], al
jmp 0x4fe350
sub eax, dword [esp + 0x18]
jmp 0x4fe2f0
push ecx
call fcn.0052c081
add esp, 4
mov edi, 0xfe7598
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x4c], esi
je 0x4fe3cf
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jbe 0x4fe3ca
cmp esi, ebp
ja 0x4fe3ca
movsx ecx, byte [0xfe7598]
mov ebx, dword [esp + 0x18]
mov eax, 1
sub eax, esi
add ebp, eax
push ebp
push ecx
push ebx
call fcn.005183d0
add esp, 0xc
test eax, eax
je 0x4fe3ca
jmp 0x4fe39c
mov esi, dword [esp + 0x4c]
mov ecx, esi
mov edi, 0xfe7598
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4fe41d
sub ebx, eax
lea ebp, [ebx + ebp - 1]
lea ebx, [eax + 1]
movsx eax, byte [0xfe7598]
push ebp
push eax
push ebx
call fcn.005183d0
add esp, 0xc
test eax, eax
jne 0x4fe398
mov eax, dword [0xfba8c0]
cmp eax, dword [0xfba8c0]
jne 0x4fe3df
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x4fe3f0
push ebx
call fcn.0051798e
add esp, 4
mov eax, dword [esp + 0x48]
pop edi
test eax, eax
pop ebx
je 0x4fe403
push eax
call fcn.0051798e
add esp, 4
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4fe42d
mov al, byte [ecx - 1]
test al, al
je 0x4fe423
cmp al, 0xff
je 0x4fe423
dec al
mov byte [ecx - 1], al
jmp 0x4fe42d
sub eax, dword [esp + 0x18]
jmp 0x4fe3cf
dec ecx
push ecx
call fcn.0052c081
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 8]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc