Function at 0x100791d0
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015dfaa
mov eax, dword fs:[0]
push eax
mov eax, 0x2828
call fcn.100b4660
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2824], ecx
mov eax, dword [ebp + 8]
push 0x800
mov dword [ebp - 0x2818], eax
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 0x2828], 0
call fcn.100ec480
add esp, 0xc
lea eax, [ebp - 0x810]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2814]
push eax
call fcn.100125c0
mov ecx, eax
call fcn.1000f150
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [eax]
lea eax, [ebp - 0x810]
push eax
push eax
call esi
mov edx, dword [ebp - 0x2814]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10079289
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x810]
push eax
call edi
test eax, eax
jne 0x100792be
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x810]
push eax
push str.Create_directory_:__s
call fcn.1004a190
add esp, 8
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.100ec480
add esp, 0xc
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x100796ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x281c], eax
lea eax, [ebp - 0x2814]
mov dword [ebp - 4], 0
push eax
call fcn.100125c0
mov ecx, eax
call fcn.1000f150
push dword [eax]
lea eax, [ebp - 0x281c]
mov byte [ebp - 4], 1
push 0x10180670
push eax
call fcn.10012500
mov edx, dword [ebp - 0x2814]
add esp, 0xc
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10079346
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x281c]
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
push 0x800
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.100ec480
mov eax, dword [ebp - 0x2818]
add esp, 0xc
push dword [0x101c03e8]
push dword [eax]
lea eax, [ebp - 0x2010]
push eax
call esi
lea eax, [ebp - 0x1010]
push eax
call edi
test eax, eax
je 0x100793b7
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1010]
push eax
push str.Delete__s
call fcn.1004a190
add esp, 8
lea eax, [ebp - 0x2814]
push eax
call fcn.100125c0
mov ecx, eax
call fcn.1000f150
push 0
push 0
lea ecx, [ebp - 0x2010]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x1010]
push ecx
push 0
lea ecx, [ebp - 0x2010]
push ecx
push dword [eax]
mov ecx, dword [ebp - 0x2824]
call fcn.1007aa40
mov edx, dword [ebp - 0x2814]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10079417
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x800
lea eax, [ebp - 0x2810]
push 0
push eax
call fcn.100ec480
mov eax, dword [ebp - 0x2818]
add esp, 0xc
push 0x10170e98
push dword [eax]
lea eax, [ebp - 0x2810]
push eax
call esi
push 0x800
lea eax, [ebp - 0x1810]
push 0
push eax
call fcn.100ec480
add esp, 0xc
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x100796d8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2820], eax
lea eax, [ebp - 0x2814]
mov byte [ebp - 4], 3
push eax
call fcn.100125c0
mov ecx, eax
call fcn.1000f150
push dword [eax]
lea eax, [ebp - 0x2820]
mov byte [ebp - 4], 4
push 0x101807ec
push eax
call fcn.10012500
mov edx, dword [ebp - 0x2814]
add esp, 0xc
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100794c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2820]
lea eax, [ebp - 0x810]
push edi
push eax
lea eax, [ebp - 0x1810]
push eax
call esi
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10079511
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1810]
push eax
push str.Delete__s
call fcn.1004a190
add esp, 8
lea eax, [ebp - 0x2834]
push eax
call fcn.100125c0
mov ecx, eax
call fcn.1000f150
mov dword [ebp - 0x282c], eax
mov byte [ebp - 4], 5
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x100796e2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2818], eax
push 0x10180800
lea ecx, [ebp - 0x2818]
mov byte [ebp - 4], 6
call fcn.1001aad0
test al, al
jne 0x10079575
push 2
push 0x10180800
lea ecx, [ebp - 0x2818]
call fcn.1000adf0
mov esi, dword [ebp - 0x2818]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 8
mov dword [ebp - 0x2830], eax
test ecx, ecx
je 0x1007959a
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x100795b0
call fcn.1000c0e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x100796ec
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2828], 1
mov dword [ebp - 0x2814], eax
mov eax, dword [ebp - 0x282c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [esi - 0xc]
lea eax, [ebp - 0x2814]
push esi
push eax
call fcn.1001ac90
mov esi, dword [ebp - 0x2814]
lea eax, [ebp - 0x2810]
mov ecx, dword [ebp - 0x2824]
add esp, 0x14
push 0
push 0
push eax
lea eax, [ebp - 0x1810]
push eax
push 0
lea eax, [ebp - 0x2810]
push eax
push esi
call fcn.1007aa40
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1007962f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2830]
mov eax, ebx
mov byte [ebp - 4], 5
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007964d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2834]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007966e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10079689
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x281c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100796ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10007270
push 0x80004005
call fcn.10007270
push 0x80004005
call fcn.10007270
push 0x80004005
call fcn.10007270
int3