Function at 0x70d36a26
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, 0x70d36c00
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, 0x70d36be4
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.70d366f7
test eax, eax
jne 0x70d75844
cmp dword [ebp + 8], ebx
mov edi, 0x80
mov esi, 0xc0000000
je 0x70d7587e
push 0x208
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.70d369df
test eax, eax
jne 0x70d7587e
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x78c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x70d367d8
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [0x70e6d658], ebx
lea eax, [ebp - 0x374]
je 0x70d7584c
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 0x70d7587e
mov dword [ebp - 0xc], 1
cmp dword [ebp + 8], ebx
je 0x70d36b4e
cmp dword [ebp - 4], 0xffffffff
je 0x70d36b45
cmp dword [ebp - 0xc], ebx
je 0x70d75a78
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0xffffffff
je 0x70d36bdc
cmp dword [ebp - 8], 3
jne 0x70d36bcf
cmp dword [ebp + 0x10], ebx
jne 0x70d36bcf
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x70d36bdc
cmp dword [0x70e6d658], ebx
push ebx
push edi
push ebx
push 4
push ebx
push dword [ebp - 4]
je 0x70d36bd4
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x70d36bdc
push edi
push ebx
push ebx
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x70d36bdc
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 0x70d36b6f
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
jmp 0x70d36b8b
call fcn.70d36ddb
jmp 0x70d36bc5
mov dword [ebp + 8], ebx
jmp 0x70d36aa3
push eax
lea ecx, [ebp - 0x584]
call fcn.70d1f3ac
cmp dword [ebp - 0x584], 0x55464131
jne 0x70d7587e
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 0x70d36b1e
cmp dword [0x70e6d658], ebx
mov eax, dword [0x70e6caec]
je 0x70d75983
cmp eax, ebx
jne 0x70d758a7
push 0x70d75ae0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x70e6caec], eax
je 0x70d75923
push 0x70d75acc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x70d75923
lea ecx, [ebp - 0x374]
push ecx
push ebx
push ebx
push 0x801c
push ebx
call eax
cmp eax, 0x80070057
jne 0x70d758e4
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 0x70d367d8
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 0x70d36b31
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 0x70d367d8
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 0x70d36b31
cmp eax, ebx
jne 0x70d7599b
push 0x70d75abc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x70e6caec], eax
je 0x70d759fb
push 0x70d75aa8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x70d759fb
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 0x70d75a90
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 0x70d75a5b
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 0x70d75a90
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 0x70d36b31
push 0x104
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.70da68d1
jmp 0x70d36b31
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.70df096d
jmp 0x70d36b45