Function at 0x30008324
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push 0x24c
mov eax, 0x3000e639
call fcn.3000b7af
mov esi, ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x214]
mov dword [eax + 0x210], ecx
lea ecx, [ebp - 0x234]
call fcn.300077bc
xor ebx, ebx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x228]
lea edi, [esi + 4]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.300077a4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], eax
jmp 0x30008415
lea eax, [ebp - 0x218]
push eax
mov eax, dword [esi + 0x10]
push ebx
push 0x30001c54
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x220]
call fcn.3000775b
cmp dword [eax + 0x18], 8
jb 0x300083b7
mov eax, dword [eax + 4]
jmp 0x300083ba
add eax, 4
push 0xb
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea eax, [ebp - 0x218]
push eax
je 0x30008477
lea ecx, [ebp - 0x258]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.300079ea
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x220]
call fcn.30007334
mov eax, dword [edi + 4]
push edi
push eax
lea ecx, [ebp - 0x23c]
call fcn.30007408
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x220]
call fcn.30007386
test al, al
je 0x30008387
mov eax, dword [ebp - 0x230]
mov eax, dword [eax]
lea ecx, [ebp - 0x234]
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.30007408
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x21c], eax
jmp 0x300085b7
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x23c]
push eax
mov ecx, edi
call fcn.300077a4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x230]
mov eax, dword [eax]
lea ecx, [ebp - 0x234]
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.30007408
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x238], eax
jmp 0x30008523
lea ecx, [ebp - 0x220]
call fcn.3000775b
cmp dword [eax + 0x18], 8
jb 0x300084e7
mov esi, dword [eax + 4]
jmp 0x300084ea
lea esi, [eax + 4]
lea ecx, [ebp - 0x23c]
call fcn.3000775b
cmp dword [eax + 0x18], 8
jb 0x30008500
mov eax, dword [eax + 4]
jmp 0x30008503
add eax, 4
push 0xb
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x220]
call fcn.30007334
lea ecx, [ebp - 0x23c]
call fcn.30007334
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x230]
lea ecx, [ebp - 0x228]
call fcn.30007408
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x23c]
call fcn.30007386
test al, al
je 0x300084d1
mov ebx, 0x80004005
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.30007acb
mov eax, ebx
call fcn.3000b832
ret
mov eax, dword [esi + 0x10]
push dword [eax + 0x354]
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x218]
push eax
call fcn.30008e86
lea ecx, [ebp - 0x220]
call fcn.3000775b
cmp dword [eax + 0x18], 8
jb 0x3000859b
mov eax, dword [eax + 4]
jmp 0x3000859e
add eax, 4
push ebx
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.3000726a
lea ecx, [ebp - 0x220]
call fcn.30007334
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x230]
lea ecx, [ebp - 0x228]
call fcn.30007408
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x220]
call fcn.30007386
test al, al
je 0x3000856d
jmp 0x30008556