Function at 0x7a09a20b
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78c
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 8], ebx
push 0xd
setne al
pop ecx
mov esi, 0x7a0ebd8c
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
inc eax
push 7
inc eax
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push 0xf003f
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x68]
push eax
mov esi, 0x7a0ebd70
lea edi, [ebp - 0x30]
push 0x80000001
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x374], bx
mov word [ebp - 0x78c], bx
mov byte [ebp - 0x16c], bl
mov byte [ebp - 0x478], bl
mov dword [ebp + 8], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.7a099f43
test eax, eax
jne 0x7a105166
cmp dword [ebp + 8], ebx
mov edi, 0x80
mov esi, 0xc0000000
je 0x7a1051a0
push 0x208
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.7a09a3cc
test eax, eax
jne 0x7a1051a0
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x78c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x7a0ebe40
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [0x7a20a03c], ebx
lea eax, [ebp - 0x374]
je 0x7a10516e
push ebx
push edi
push dword [ebp - 8]
push ebx
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x7a1051a0
mov dword [ebp - 0xc], 1
cmp dword [ebp + 8], ebx
je 0x7a09a333
cmp dword [ebp - 4], 0xffffffff
je 0x7a09a32a
cmp dword [ebp - 0xc], ebx
je 0x7a10539a
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0xffffffff
je 0x7a0d633e
cmp dword [ebp - 8], 3
jne 0x7a0d632b
cmp dword [ebp + 0x10], ebx
jne 0x7a0d632b
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x7a0d633e
cmp dword [0x7a20a03c], ebx
push ebx
push edi
push ebx
push 4
push ebx
push dword [ebp - 4]
je 0x7a0d6333
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x7a0d633e
push edi
push ebx
push ebx
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x7a0d633e
mov ecx, dword [ebp - 4]
mov dword [0x7a20a5d8], edi
mov dword [0x7a20a5cc], ecx
mov dword [0x7a20a5d0], esi
mov dword [0x7a20a5c8], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov edi, dword [ebp + 0xc]
jmp 0x7a09a35c
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
jmp 0x7a09a380
call fcn.7a099f7a
jmp 0x7a09a3c2
mov dword [ebp + 8], ebx
jmp 0x7a09a288
push eax
lea ecx, [ebp - 0x584]
call fcn.7a0afae6
cmp dword [ebp - 0x584], 0x55464131
jne 0x7a1051a0
push ebx
push edi
push dword [ebp - 8]
push ebx
push 3
push esi
push dword [ebp - 0x580]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x7a09a303
cmp dword [0x7a20a03c], ebx
mov eax, dword [0x7a20a5d4]
je 0x7a1052a5
cmp eax, ebx
jne 0x7a1051c9
push 0x7a11a578
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x7a20a5d4], eax
je 0x7a105245
push 0x7a11a564
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x7a105245
lea ecx, [ebp - 0x374]
push ecx
push ebx
push ebx
push 0x801c
push ebx
call eax
cmp eax, 0x80070057
jne 0x7a105206
lea eax, [ebp - 0x374]
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [ebp - 0x14]
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x78c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x7a0ebe40
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x374]
push ebx
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x7a09a316
push 0x104
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x78c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x7a0ebe40
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x374]
push ebx
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
jmp 0x7a09a316
cmp eax, ebx
jne 0x7a1052bd
push 0x7a11a554
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x7a20a5d4], eax
je 0x7a10531d
push 0x7a11a540
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x7a10531d
lea ecx, [ebp - 0x16c]
push ecx
push ebx
push ebx
push 0x801a
push ebx
call eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x7a11a528
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x16c]
push ebx
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x7a10537d
push 0x104
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x7a11a528
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x16c]
push ebx
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x7a09a316
push 0x104
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.7a12b44b
jmp 0x7a09a316
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.7a16f8a6
jmp 0x7a09a32a