Function at 0x70d36a46
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, 0x70d36c20
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, 0x70d36c04
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.70d36717
test eax, eax
jne 0x70d758c4
cmp dword [ebp + 8], ebx
mov edi, 0x80
mov esi, 0xc0000000
je 0x70d758fe
push 0x208
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.70d369ff
test eax, eax
jne 0x70d758fe
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x78c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x70d367f8
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [0x70e6d5a8], ebx
lea eax, [ebp - 0x374]
je 0x70d758cc
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 0x70d758fe
mov dword [ebp - 0xc], 1
cmp dword [ebp + 8], ebx
je 0x70d36b6e
cmp dword [ebp - 4], 0xffffffff
je 0x70d36b65
cmp dword [ebp - 0xc], ebx
je 0x70d75af8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0xffffffff
je 0x70d36bfc
cmp dword [ebp - 8], 3
jne 0x70d36bef
cmp dword [ebp + 0x10], ebx
jne 0x70d36bef
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x70d36bfc
cmp dword [0x70e6d5a8], ebx
push ebx
push edi
push ebx
push 4
push ebx
push dword [ebp - 4]
je 0x70d36bf4
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x70d36bfc
push edi
push ebx
push ebx
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x70d36bfc
mov ecx, dword [ebp - 4]
mov dword [0x70e6caf0], edi
mov dword [0x70e6cae4], ecx
mov dword [0x70e6cae8], esi
mov dword [0x70e6cae0], 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 0x70d36b8f
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
jmp 0x70d36bab
call fcn.70d36dfb
jmp 0x70d36be5
mov dword [ebp + 8], ebx
jmp 0x70d36ac3
push eax
lea ecx, [ebp - 0x584]
call fcn.70d1da0c
cmp dword [ebp - 0x584], 0x55464131
jne 0x70d758fe
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 0x70d36b3e
cmp dword [0x70e6d5a8], ebx
mov eax, dword [0x70e6caec]
je 0x70d75a03
cmp eax, ebx
jne 0x70d75927
push 0x70d75b60
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x70e6caec], eax
je 0x70d759a3
push 0x70d75b4c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x70d759a3
lea ecx, [ebp - 0x374]
push ecx
push ebx
push ebx
push 0x801c
push ebx
call eax
cmp eax, 0x80070057
jne 0x70d75964
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 0x70d367f8
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 0x70d36b51
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 0x70d367f8
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 0x70d36b51
cmp eax, ebx
jne 0x70d75a1b
push 0x70d75b3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x70e6caec], eax
je 0x70d75a7b
push 0x70d75b28
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x70d75a7b
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 0x70d75b10
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 0x70d75adb
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 0x70d75b10
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 0x70d36b51
push 0x104
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.70da6951
jmp 0x70d36b51
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.70df09ed
jmp 0x70d36b65