Function at 0x794608
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push dword [ebp + 8]
mov byte [ebp - 1], 0
push str.Caching_file__s...
push 7
call fcn.0079b709
push dword [ebp + 8]
call fcn.00795dec
add esp, 0x10
test al, al
je 0x794645
push str.Already_cached._n
push 7
call fcn.0079b709
pop ecx
pop ecx
mov al, 1
leave
ret
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
jne 0x794664
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00794152
pop ecx
pop ecx
mov byte [ebp - 1], al
jmp 0x79484d
xor esi, esi
xor edi, edi
cmp dword [0x8e7bf4], ebx
jl 0x79468a
jg 0x79467a
cmp dword [0x8e7bf0], ebx
jb 0x79468a
push dword [0x8e7bdc]
call fcn.00791660
pop ecx
mov esi, eax
mov edi, edx
mov eax, dword [0xabbde8]
cmp eax, ebx
je 0x79469e
mov ebx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x7946a2
and dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
cdq
mov ecx, eax
mov dword [ebp - 0x10], ecx
add ecx, ebx
mov eax, edx
adc eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
cmp eax, dword [0x8e7be4]
jg 0x794852
jl 0x7946cf
cmp ecx, dword [0x8e7be0]
jae 0x794852
sub esi, dword [ebp - 0x10]
sbb edi, edx
cmp edi, dword [0x8e7bf4]
jg 0x794852
jl 0x7946ee
cmp esi, dword [0x8e7bf0]
ja 0x794852
mov eax, dword [0x8e7bdc]
lea edx, [ebp - 0x120]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x7946fb
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x79470a
lea edi, [ebp - 0x120]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x79471a
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x120]
rep movsb byte es:[edi], byte [esi]
call fcn.007938ee
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov ebx, 0x80
push ebx
push 5
push 0
push 0
mov edi, 0x40000000
push edi
lea eax, [ebp - 0x120]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x794796
push dword [ebp + 8]
push str.CacheDataFile___first_open_attempt_failed_on_file__s._n
push 7
call fcn.0079b709
add esp, 0xc
xor eax, eax
push eax
push ebx
push 2
push eax
push eax
push edi
lea eax, [ebp - 0x120]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x79484d
push dword [ebp + 8]
push str.CacheDataFile___Writing_file__s_to_disk_cache._n
push 7
call fcn.0079b709
push dword [ebp + 8]
call fcn.00793b5b
mov esi, dword [ebp + 0x10]
add esp, 0x10
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], esi
jne 0x794840
mov esi, 0xabbd8c
push esi
call fcn.0079c1f5
mov eax, dword [0xabbde8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
add eax, 0x10
mov edx, dword [eax]
pop ecx
mov ecx, dword [eax + 4]
add edx, edi
adc ecx, ebx
cmp ecx, dword [0x8e7be4]
jg 0x794821
jl 0x79480c
cmp edx, dword [0x8e7be0]
jae 0x794821
add dword [eax], edi
mov byte [ebp - 1], 1
adc dword [eax + 4], ebx
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x104], 1
jmp 0x794837
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x794837
call fcn.007938b1
push esi
call fcn.0079c207
pop ecx
jmp 0x79484d
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [ebp - 1]
jmp 0x794854
xor al, al
pop edi
pop esi
pop ebx
leave
ret