Function at 0x100f8d7
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102edde
mov eax, dword fs:[0]
push eax
mov eax, 0x105c
call fcn.010263f0
mov eax, dword [0x1038418]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x1040], 0
mov esi, ecx
push 0x1002a98
lea ecx, [ebp - 0x1038]
mov dword [ebp - 0x1030], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [ebp - 4], 1
mov ebx, 0x10016d0
push ebx
lea ecx, [ebp - 0x102c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x1038]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
lea eax, [ebp - 0x828]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x100f9aa
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi + 4]
push 1
push 0xc000c40e
add edi, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
call dword [edi]
mov ecx, dword [ebp - 0x1030]
push ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
jmp 0x100fda4
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x1002a90
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100fd70
xor eax, eax
lea edi, [ebp - 0x1058]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
push 0x100080
stosd dword es:[edi], eax
push 2
lea eax, [ebp - 0x1058]
push eax
push 2
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x1050], 1
mov dword [ebp - 0x1058], 0xc
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x103c], eax
je 0x100fd70
test eax, eax
je 0x100fd70
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
mov edi, dword [ecx + esi + 4]
push 1
push 0xc000c40e
push eax
push 0x20
lea eax, [ebp - 0x1068]
push eax
push 1
push 1
push ebx
lea ecx, [ebp - 0x1038]
add edi, 0x10
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov ecx, dword [esi + 0x5c]
push eax
add ecx, 0x44
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov eax, dword [esi + 0x5c]
add eax, 0xbc
push eax
call fcn.0102030c
add esp, 0x24
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
call dword [edi]
test al, al
je 0x100fcee
lea eax, [ebp - 0x103c]
push eax
call fcn.0101ccf6
pop ecx
xor edi, edi
lea ecx, [ebp - 0x1034]
mov dword [ebp - 0x1044], edi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 3
push edi
push 0x100080
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x103c], eax
je 0x100fd20
cmp eax, edi
je 0x100fd20
push ebx
lea ecx, [ebp - 0x102c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
jmp 0x100fc32
mov eax, dword [ebp - 0x1044]
cmp eax, edi
je 0x100fc5a
mov byte [ebp + eax - 0x61c], 0
lea eax, [ebp - 0x61c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100fb14
push 0x400
sub eax, ecx
lea ecx, [ebp - 0x1028]
push ecx
push eax
lea eax, [ebp - 0x61c]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100fcb7
lea eax, [ebp - 0x61c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100fb4a
sub eax, edx
mov word [ebp + eax*2 - 0x1028], di
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x1034]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 0xa
lea ecx, [ebp - 0x1034]
call dword [sym.imp.MFC80U.DLL_Ordinal_5524]
cmp eax, 0xffffffff
je 0x100fbd8
mov edi, dword [ebp - 0x1044]
lea ecx, [eax + eax + 2]
sub edi, ecx
inc eax
push eax
lea eax, [ebp - 0x104c]
push eax
lea ecx, [ebp - 0x1034]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1034]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x104c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 1
push 0
neg edi
push edi
push dword [ebp - 0x103c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
lea ecx, [ebp - 0x1034]
call dword [sym.imp.MFC80U.DLL_Ordinal_6161]
push ebx
push 0x1002a8c
lea ecx, [ebp - 0x1034]
call dword [sym.imp.MFC80U.DLL_Ordinal_5485]
push 0x1001e8c
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x1048]
push eax
call fcn.01007c8d
add esp, 0xc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x102c]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1048]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push edi
lea eax, [ebp - 0x1044]
push eax
push 0x3ff
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x103c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100faf5
mov eax, 0x1001e8c
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x100fc62
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x102c]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
sub eax, esi
push eax
lea eax, [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x102c]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x102c]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1048]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x100fcde
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi + 4]
push 1
push 0xc000c40e
add edi, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
call dword [edi]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1034]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea eax, [ebp - 0x103c]
push eax
call fcn.0101ccf6
pop ecx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x1030]
lea eax, [ebp - 0x102c]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
jmp 0x100fda4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi + 4]
push 1
push 0xc000c40e
add edi, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
call dword [edi]
mov ecx, dword [ebp - 0x1030]
push ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [ebp - 0x1040], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1034]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x100fdae
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi + 4]
push 1
push 0xc000c40e
add edi, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
call dword [edi]
mov ecx, dword [ebp - 0x1030]
push ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [ebp - 0x1040], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x102c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1038]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [ebp - 0x1030]
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.01025a6c
leave
ret 8