Function at 0x2b833f8
Capabilities:
Download and write a file
Get common file path
Move file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x10]
mov ebx, edx
mov eax, dword [ebp + 0xc]
sub ecx, eax
push edi
xor edi, edi
mov dword [ebp - 0x2c], ebx
inc ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ecx
xor ecx, ecx
mov word [ebp - 0x3bc], cx
mov word [ebp - 0x1b4], cx
mov ecx, dword [ebp + 0x14]
add eax, ecx
neg ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x30], esi
sbb ecx, ecx
or edi, 0xffffffff
and ecx, eax
xor eax, eax
push eax
push dword [ebp + 0x20]
mov dword [ebp - 0x10], ecx
push eax
push 0x2b877c8
push str.HTTP_1.1
push ebx
push 0x2b877e0
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ebx, eax
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
push eax
push 5
push ebx
mov dword [ebp - 0x1c], 0x2bf20
call esi
push 4
lea eax, [ebp - 0x1c]
push eax
push 6
push ebx
call esi
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], eax
jne 0x2b8355d
mov esi, dword [ebp + 0x1c]
cmp word [esi], ax
jne 0x2b8351a
lea ecx, [ebp - 0x1b4]
call fcn.02b83c90
lea eax, [ebp - 0x3bc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x3bc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x3bc]
mov ecx, esi
call fcn.02b854e4
xor eax, eax
push eax
push 0x80
push 2
push eax
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x2b83512
xor esi, esi
mov ebx, dword [ebp + 0x1c]
jmp 0x2b83698
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jmp 0x2b83566
push eax
push 0x80
push 3
push eax
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
je 0x2b8350a
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x2b8366b
test ebx, ebx
je 0x2b8357b
push dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
push ebx
jmp 0x2b83566
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, esi
push esi
lea eax, [ebp - 0xb4]
push str.RANGE:bytes_d__d_r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0xb4]
push 0xa0000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x2b8359e
xor esi, esi
jmp 0x2b8366b
mov ecx, esi
call fcn.02b8336c
mov esi, eax
test esi, esi
jne 0x2b835bf
inc dword [ebp + 0x18]
push 0x1e
pop eax
cmp eax, dword [ebp - 0x20]
sbb eax, eax
inc eax
mov dword [ebp - 0x18], eax
jmp 0x2b8366b
push 0x200000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x2b83630
jmp 0x2b83597
mov eax, dword [ebp - 8]
xor esi, esi
test eax, eax
je 0x2b836d8
add dword [ebp + 0xc], eax
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x2b83617
push esi
lea ecx, [ebp - 0x24]
push ecx
push eax
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x2b8366b
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 8]
jmp 0x2b8362b
mov edx, dword [ebp - 0xc]
mov ecx, esi
push eax
call fcn.02b8550e
mov eax, dword [ebp - 8]
add esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0xc]
add ebx, eax
push 0x200000
mov ecx, esi
call fcn.02b8553d
pop ecx
lea eax, [ebp - 8]
push eax
push 0x200000
push esi
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
jne 0x2b835de
mov ecx, dword [ebp + 0x18]
mov eax, ecx
inc ecx
mov dword [ebp + 0x18], ecx
cmp eax, 0x1e
ja 0x2b8366b
mov dword [ebp - 0x18], 1
mov ebx, dword [ebp + 0x1c]
cmp edi, 0xffffffff
je 0x2b83681
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x2b83698
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x2b836a6
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x2b836cf
push dword [ebp + 0x20]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.02b833f8
add esp, 0x1c
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, dword [ebp - 0x28]
jne 0x2b8370a
xor esi, esi
inc esi
cmp dword [ebp - 0x10], 0
jne 0x2b8366b
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 0x1c]
or edi, 0xffffffff
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x2b8366e
mov ecx, dword [ebp + 0x18]
mov eax, ecx
mov ebx, dword [ebp + 0x1c]
inc ecx
mov dword [ebp + 0x18], ecx
cmp eax, 0x1e
ja 0x2b8366e
mov dword [ebp - 0x18], 1
jmp 0x2b8366e