Function at 0x1008f2a2
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push 0x40
mov eax, 0x101868f2
call fcn.10145d80
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x1008f2be
xor eax, eax
jmp 0x1008f5a3
mov dword [ebp + 8], ebx
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
mov dword [ebp - 4], ebx
call dword [ecx + 0x34]
jmp 0x1008f597
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.10056fc1
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1008f564
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
mov byte [ebp - 4], 3
call dword [ecx + 0xac]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
call fcn.10007b11
push 0x101aa384
push dword [ebp - 0x2c]
call fcn.10005373
test eax, eax
pop ecx
pop ecx
jne 0x1008f553
mov eax, dword [0x101f3028]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov esi, 0x101a50f4
push esi
push dword [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.10127155
lea eax, [ebp - 0x14]
push eax
call fcn.1005c0e2
add esp, 0x10
push dword [ebp - 0x14]
mov byte [ebp - 4], 6
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1008f378
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.100100f8
push 0x101a71f0
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 7
call fcn.10007b6e
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.10007845
lea ecx, [ebp - 0x38]
call fcn.10003b75
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.10003b75
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xb8]
push str.bdbar
lea ecx, [ebp - 0x10]
call fcn.10058786
push 0x101aa380
push dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], ebx
call fcn.10147b95
add esp, 0xc
test eax, eax
je 0x1008f43b
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 8], eax
je 0x1008f404
push eax
lea eax, [ebp + 8]
push eax
call fcn.10004f20
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.10003b75
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x24]
call fcn.10003b75
lea ecx, [ebp - 0x2c]
call fcn.10003b75
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1008f576
push str.__xml_version_1.0__encoding_utf_8_____n_t_custombuttons__n_t__custombuttons_
push dword [ebp - 0x34]
call fcn.10149b21
push dword [ebp - 0x34]
call fcn.101475da
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.10126d24
mov ecx, dword [ebp - 0x20]
add esp, 0x14
cmp ecx, ebx
je 0x1008f5ab
cmp eax, ebx
jl 0x1008f5ab
mov dword [ebp - 0x30], ebx
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
push ecx
mov byte [ebp - 4], 0xb
call dword [eax + 0xb4]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x1008f4d1
mov ecx, dword [ebp - 0x18]
cmp dword [ebp + 8], ecx
je 0x1008f4a9
push ecx
lea eax, [ebp + 8]
push eax
call fcn.10004f20
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov byte [ebp - 4], 0xa
je 0x1008f4b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x1008f404
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1008f404
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x54]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x4c]
mov word [ebp - 0x4c], bx
call fcn.10014b08
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 0xc
movsd dword es:[edi], dword [esi]
call dword [ecx + pe_nt_image_headers32]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov byte [ebp - 4], 0xa
je 0x1008f521
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x1008f532
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.10003b75
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x24]
call fcn.10003b75
lea ecx, [ebp - 0x2c]
call fcn.10003b75
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 8], eax
je 0x1008f579
push eax
lea eax, [ebp + 8]
push eax
call fcn.10004f20
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x1008f587
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x1008f597
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 8], ebx
jne 0x1008f2d3
xor eax, eax
inc eax
call fcn.10145e58
ret 4
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 8], eax
je 0x1008f5c0
push eax
lea eax, [ebp + 8]
push eax
call fcn.10004f20
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
mov byte [ebp - 4], 9
je 0x1008f404
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x1008f404