Function at 0x1000915a
Capabilities:
Get common file path
Get file size
Timestomp file

Disassembly:
mov eax, 0x1001d5cc
call fcn.1001cf00
sub esp, 0x4c
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], ebx
call fcn.10002b5c
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.10009144
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.10002b80
push str..tmp
lea ecx, [ebp - 0x48]
call fcn.10002b80
push ebx
push ebx
push 3
push ebx
mov edi, 0xc0000000
push 1
push edi
push dword [ebp + 8]
call fcn.1000f48a
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
mov dword [ebp - 0x14], esi
je 0x10009379
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [ebp - 0x24], eax
call fcn.100095f7
pop ecx
mov ecx, dword [ebp - 0x20]
cmp ecx, edx
jb 0x10009361
ja 0x100091f0
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jbe 0x10009361
lea ecx, [ebp - 0x3c]
call fcn.10002b5c
cmp dword [0x10032d0c], ebx
mov byte [ebp - 4], 1
je 0x10009242
push 0x105
lea ecx, [ebp - 0x3c]
call fcn.10004fb2
push dword [ebp - 0x38]
push ebx
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x3c]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
cmp word [eax], bx
je 0x1000923d
inc ecx
inc eax
inc eax
jmp 0x10009233
mov dword [ebp - 0x34], ecx
jmp 0x100092a6
lea ecx, [ebp - 0x30]
call fcn.10004a7d
push 0x105
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.10004f87
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x30]
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x30]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [ebp - 0x30]
xor eax, eax
cmp byte [ecx], bl
je 0x10009287
inc eax
cmp byte [eax + ecx], bl
jne 0x10009281
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
call fcn.10004c61
cmp dword [ebp - 0x30], ebx
mov byte [ebp - 4], 1
je 0x100092a6
push dword [ebp - 0x30]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 0x3c]
call fcn.100095f7
cmp edx, dword [ebp - 0x20]
pop ecx
ja 0x100092c6
jb 0x100092bb
cmp eax, dword [ebp - 0x24]
jae 0x100092c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x14], 0xffffffff
mov esi, dword [ebp - 0x3c]
push ebx
lea ecx, [ebp - 0x48]
call fcn.10009144
push esi
lea ecx, [ebp - 0x48]
call fcn.10002b80
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x100092f3
push 0x5c
lea ecx, [ebp - 0x48]
call fcn.10002b2f
push 0x101
lea ecx, [ebp - 0x3c]
call fcn.10004fb2
push dword [ebp - 0x38]
push ebx
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_memset
mov esi, dword [ebp - 0x3c]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.ogg_u__u.tmp
push esi
call dword [sym.imp.MSVCRT.dll_swprintf]
mov edx, dword [ebp - 0x3c]
add esp, 0x10
xor eax, eax
cmp word [edx], bx
je 0x10009343
mov ecx, edx
inc eax
inc ecx
inc ecx
cmp word [ecx], bx
jne 0x1000933b
push edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], eax
call fcn.10002b80
cmp dword [ebp - 0x3c], ebx
mov byte [ebp - 4], bl
je 0x10009361
push dword [ebp - 0x3c]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push ebx
push ebx
push 2
push ebx
push ebx
push edi
push dword [ebp - 0x48]
call fcn.1000f48a
mov esi, dword [ebp - 0x14]
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x100094a0
cmp esi, 0xffffffff
je 0x100094a0
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call fcn.10005907
cmp eax, dword [ebp + 0x10]
pop ecx
jl 0x100094a0
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0x1c], ebx
jle 0x100094a7
mov eax, dword [ebp + 0xc]
lea esi, [eax + 8]
cmp dword [ebp - 0x10], ebx
jne 0x100094a7
lea eax, [ebp - 0x38]
mov edi, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
push edi
call fcn.10005975
add esp, 0x10
test eax, eax
je 0x1000948c
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edi
call fcn.100095d4
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x58], edi
sbb ecx, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
call fcn.1000d08c
push 0x100096ec
lea ecx, [ebp - 0x58]
push 0x100096a4
push ecx
push eax
mov dword [ebp - 0x20], eax
call fcn.1000d155
add esp, 0x1c
test eax, eax
jge 0x1000943f
mov dword [ebp - 0x10], 1
jmp 0x1000948c
push dword [ebp - 0x20]
call fcn.1000d0a8
push eax
mov dword [ebp + 0xc], eax
call fcn.10010668
push dword [ebp + 0xc]
call fcn.10010500
add esp, 0xc
xor edi, edi
cmp dword [esi], ebx
jle 0x10009476
mov eax, dword [esi - 8]
push dword [eax + edi*4]
push dword [ebp + 0xc]
call fcn.10010511
inc edi
pop ecx
cmp edi, dword [esi]
pop ecx
jl 0x10009461
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.1000d3a7
push dword [ebp - 0x20]
call fcn.1000d0b0
add esp, 0xc
inc dword [ebp - 0x1c]
add esi, 0x10
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jl 0x100093ca
jmp 0x100094a7
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x14], 0xffffffff
je 0x100094b6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0xffffffff
je 0x100094d3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x100094dc
push dword [ebp - 0x48]
call fcn.1000f24c
pop ecx
cmp dword [ebp - 0x10], ebx
jne 0x100095a0
mov esi, 0x100324d8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x3c]
call fcn.10004a7d
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.10004cb7
push dword [0x100324f0]
push dword [ebp - 0x3c]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x10009521
cmp dword [0x10032df4], ebx
je 0x10009521
push 1
pop edi
jmp 0x10009523
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
cmp edi, ebx
je 0x10009545
push dword [ebp - 0x48]
call fcn.1000dbfd
neg al
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x1000958c
call fcn.1000f24c
test eax, eax
pop ecx
jne 0x10009558
mov dword [ebp - 0x10], 1
jmp 0x1000958c
push dword [ebp + 8]
push dword [ebp - 0x48]
call fcn.1000f2c0
pop ecx
test eax, eax
pop ecx
jne 0x1000958c
push ebx
push dword [ebp + 8]
push dword [ebp - 0x48]
call fcn.1000f379
add esp, 0xc
test eax, eax
jne 0x10009583
mov dword [ebp - 0x10], 1
push dword [ebp - 0x48]
call fcn.1000f24c
pop ecx
cmp dword [ebp - 0x3c], ebx
je 0x1000959b
push dword [ebp - 0x3c]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x100095b3
cmp dword [ebp - 0x48], ebx
je 0x100095af
push dword [ebp - 0x48]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x100095c5
cmp dword [ebp - 0x48], ebx
je 0x100095c2
push dword [ebp - 0x48]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret