Function at 0x4029c0
Capabilities:
Create http request
Encode data using xor
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2110
call fcn.004a06f0
movups xmm0, xmmword [str._O__TX]
mov eax, dword [0x4c053c]
xor ecx, ecx
cmp dword [0x4dcc20], 2
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x20], eax
movups xmm0, xmmword [0x4c0514]
movups xmmword [ebp - 0x48], xmm0
movups xmm0, xmmword [0x4c0524]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [str.__fP]
movq qword [ebp - 0x28], xmm0
jl 0x402b34
movaps xmm4, xmmword [0x4c0630]
mov eax, 5
movaps xmm3, xmmword [0x4c0660]
movaps xmm6, xmmword [str.::::]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
nop dword [eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x4c0650]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x58]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x58], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x4c0650]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x50]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x50], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x402a40
cmp ecx, 0x1e
jge 0x402b5c
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x3a
sub edx, eax
add edx, 0x33
xor word [ebp + ecx*2 - 0x58], dx
inc ecx
cmp ecx, 0x1e
jl 0x402b34
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
lea edx, [ecx + 2]
mov dword [ebp - 8], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b77
sub ecx, edx
lea eax, [ebp - 0x58]
push edi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004032f0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 8]
mov edi, eax
cmp edx, 8
jb 0x402bea
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402be0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d75
push edx
push ecx
call fcn.004a06de
add esp, 8
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
test edi, edi
jne 0x402c0a
lea eax, [edi + 1]
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x402c15
mov eax, dword [eax]
push esi
push 0
push 0x84000000
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x402c3f
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [esi + 1]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x402c4a
mov eax, dword [eax]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0x110]
call fcn.00401cc0
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x114], eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x104], 6
je 0x402cba
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [ebp - 0x110]
mov esi, 1
call fcn.00402690
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 4]
push eax
push 0x2000
lea eax, [ebp - 0x2110]
push eax
push esi
call ebx
test eax, eax
je 0x402d0b
mov eax, dword [ebp - 4]
test eax, eax
je 0x402d0b
push 0
push eax
lea eax, [ebp - 0x2110]
push eax
lea ecx, [ebp - 0x110]
call fcn.004040f0
lea eax, [ebp - 4]
push eax
push 0x2000
lea eax, [ebp - 0x2110]
push eax
push esi
call ebx
test eax, eax
jne 0x402cd8
lea ecx, [ebp - 0x10c]
call fcn.00403480
pop ebx
test eax, eax
jne 0x402d54
mov eax, dword [ebp - 0x110]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0xd8], edx
cmovne eax, edx
or eax, dword [ebp + ecx - 0x104]
and eax, 0x15
or eax, 2
mov dword [ebp + ecx - 0x104], eax
mov ecx, dword [ebp + ecx - 0x100]
and ecx, eax
jne 0x402d7a
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [ebp - 0x110]
xor esi, esi
call fcn.00402690
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
call fcn.004a514f
test cl, 4
je 0x402d86
mov esi, str.ios_base::badbit_set
jmp 0x402d96
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x60]
push 1
push eax
call fcn.004037b0
add esp, 8
lea ecx, [ebp - 0x18]
push eax
push esi
call fcn.00402310
push 0x4d7260
lea eax, [ebp - 0x18]
push eax
call fcn.004a1ad0
int3