Function at 0x10012300
Capabilities:
Check if file exists
Delete file
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9fc6
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x100d8344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x458]
push eax
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x44c], 0x100b40b4
mov dword [ebp - 0x448], 1
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x43c], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x10012577
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.100086f0
push 3
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x424]
call fcn.10012650
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 1
call fcn.1000aec0
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 0
call fcn.10008890
lea ecx, [ebp - 0x424]
call fcn.10008910
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x10012415
push 0x30
push 0x100b40c8
push 0x100b40d0
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
jmp 0x1001256a
push 0
lea eax, [ebp - 0x438]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x430]
movlpd qword [ebp - 0x438], xmm0
push eax
lea ecx, [ebp - 0x424]
movlpd qword [ebp - 0x430], xmm0
call fcn.10008910
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp - 0x42c], 0
jg 0x1001247c
jl 0x10012461
cmp dword [ebp - 0x430], 0x6400000
jae 0x1001247c
push 0x30
push 0x100b40fc
push 0x100b4104
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
jmp 0x1001256a
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10055290
add esp, 0xc
lea eax, [ebp - 0x218]
push str.testcache.txt
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x100124ea
push 0x10
push 0x100b40fc
push 0x100b4158
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
jmp 0x1001256a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001251a
push 0x10
push 0x100b40fc
push 0x100b418c
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
jmp 0x1001256a
mov ecx, dword [0x100dbe40]
call fcn.1001a230
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x18]
push str.wpcachedynwp
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10012565
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov esi, 1
lea ecx, [ebp - 0x424]
call fcn.10008890
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10045358
mov esp, ebp
pop ebp
ret