Function at 0x10036030
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 0xffffffffffffffff
push 0x10093b26
mov eax, dword fs:[0]
push eax
sub esp, 0x3ac
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x3a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x3c0]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x3d4]
mov edx, dword [esp + 0x3d8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c8], 1
mov eax, dword [esp + 0x3fc]
sub eax, dword [esp + 0x3f8]
xor ebx, ebx
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3d0]
neg eax
push ebx
sbb eax, eax
and eax, 0x800000
add eax, 0x80000000
push eax
push ebx
push 0x1009edfc
push str.HTTP_1.1
push edx
push 0x100a0df4
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [esp + 0x28]
push ecx
mov ebp, eax
push 5
push ebp
mov dword [esp + 0x34], 0x2bf20
call esi
push 4
lea edx, [esp + 0x28]
push edx
push 6
push ebp
call esi
mov eax, dword [esp + 0x418]
xor edi, edi
lea ecx, [esp + 0x404]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
call fcn.10037740
test eax, eax
jne 0x10036246
push 0x206
push eax
lea ecx, [esp + 0x1be]
push ecx
mov word [esp + 0x1c0], ax
call fcn.1007dcf0
xor edx, edx
push 0xfe
push edx
lea eax, [esp + 0xca]
push eax
mov word [esp + 0xcc], dx
call fcn.1007dcf0
add esp, 0x18
mov edi, 0x80
lea esi, [esp + 0xb4]
call fcn.100483d0
lea ecx, [esp + 0x1b4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, esi
push edx
lea eax, [esp + 0x1b8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1b4]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100361a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1b8]
push ecx
lea esi, [esp + 0x40c]
call fcn.10013510
cmp dword [esp + 0x41c], 8
mov eax, dword [esp + 0x408]
jae 0x100361dc
lea eax, [esp + 0x408]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10036203
xor esi, esi
jmp 0x100363c6
mov edx, dword [esp + 0x3fc]
mov eax, dword [esp + 0x3f8]
push edx
push eax
push str.RANGE:bytes_d__d_r_n_r_n
lea edx, [esp + 0x40]
call fcn.100377f0
add esp, 0xc
push 0xa0000000
push 0xffffffffffffffff
lea ecx, [esp + 0x3c]
push ecx
push ebp
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x100362da
xor esi, esi
jmp 0x100363ab
cmp dword [esp + 0x41c], 8
mov eax, dword [esp + 0x408]
jae 0x1003625e
lea eax, [esp + 0x408]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10036285
xor esi, esi
jmp 0x100363c6
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x100362a2
xor esi, esi
jmp 0x100363ab
test eax, eax
je 0x100362da
mov edx, dword [esp + 0x3fc]
mov ecx, dword [esp + 0x3f8]
push edx
add eax, ecx
push eax
push str.RANGE:bytes_d__d_r_n_r_n
lea edx, [esp + 0x40]
call fcn.100377f0
add esp, 0xc
push 0xa0000000
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push edx
jmp 0x10036230
mov esi, ebp
call fcn.10035f20
mov esi, eax
test esi, esi
je 0x1003638d
push 0x100da440
push 0x200000
call fcn.10079cfe
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1003623f
push 0x200000
push 0
push ebx
call fcn.1007dcf0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0x200000
push ebx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x1003638d
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jbe 0x1003635f
push esi
lea ecx, [esp + 0x34]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x100363ab
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x18], edx
jmp 0x10036365
je 0x1003651c
push 0x200000
push 0
push ebx
call fcn.1007dcf0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x200000
push ebx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
jne 0x1003632f
mov eax, dword [esp + 0x400]
mov ecx, eax
inc eax
cmp ecx, 0x1e
mov dword [esp + 0x400], eax
ja 0x100363ab
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100363c6
push ebx
call fcn.10079d09
add esp, 4
test ebp, ebp
je 0x100363d1
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
mov edi, 7
cmp dword [esp + 0x14], ebx
je 0x10036478
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x428]
xor edx, edx
mov dword [eax + 0x18], edi
mov dword [eax + 0x14], ebx
push ecx
mov word [eax + 4], dx
call fcn.10013690
mov byte [esp + 0x3e4], 2
mov edx, dword [esp + 0x41c]
mov eax, dword [esp + 0x418]
mov ecx, dword [esp + 0x414]
push edx
push eax
push ecx
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x58], esp
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x428]
xor edx, edx
mov dword [eax + 0x18], edi
mov dword [eax + 0x14], ebx
push ecx
mov word [eax + 4], dx
call fcn.10013690
mov byte [esp + 0x40c], 3
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x414]
push edx
push eax
push ecx
mov byte [esp + 0x418], 1
call fcn.10036030
add esp, 0x50
mov esi, eax
mov byte [esp + 0x3c8], 0
mov ebp, 8
cmp dword [esp + 0x3f4], ebp
jb 0x1003649e
mov edx, dword [esp + 0x3e0]
push edx
call fcn.100799fa
add esp, 4
xor eax, eax
mov dword [esp + 0x3f4], edi
mov dword [esp + 0x3f0], ebx
mov word [esp + 0x3e0], ax
mov dword [esp + 0x3c8], 0xffffffff
cmp dword [esp + 0x41c], ebp
jb 0x100364da
mov ecx, dword [esp + 0x408]
push ecx
call fcn.100799fa
add esp, 4
xor edx, edx
mov dword [esp + 0x41c], edi
mov dword [esp + 0x418], ebx
mov word [esp + 0x408], dx
mov eax, esi
mov ecx, dword [esp + 0x3c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.10079a05
add esp, 0x3b8
ret
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x18], ecx
jne 0x1003657b
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x3e0]
mov eax, 8
cmp dword [esp + 0x3f4], eax
jae 0x10036555
lea ecx, [esp + 0x3e0]
cmp dword [esp + 0x41c], eax
mov eax, dword [esp + 0x408]
jae 0x1003656c
lea eax, [esp + 0x408]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x100363b9
mov eax, dword [esp + 0x400]
mov edx, eax
inc eax
cmp edx, 0x1e
jmp 0x1003639a