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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x794
mov eax, dword [section..data]
or dword [ebp - 0x780], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 8], ebx
push 0xd
setne al
pop ecx
mov esi, 0x4ec80354
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
inc eax
push 7
inc eax
pop ecx
mov dword [ebp - 0x784], eax
lea eax, [ebp - 0x788]
push eax
push 0xf003f
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x58]
push eax
mov esi, 0x4ec80338
lea edi, [ebp - 0x20]
push 0x80000001
mov dword [ebp - 0x78c], ebx
mov dword [ebp - 0x790], ebx
mov word [ebp - 0x364], bx
mov word [ebp - 0x670], bx
mov byte [ebp - 0x15c], bl
mov byte [ebp - 0x468], bl
mov dword [ebp - 0x788], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.4ec80982
test eax, eax
jne 0x4ecc9fab
cmp dword [ebp - 0x788], ebx
mov edi, 0x80
mov esi, 0xc0000000
je 0x4ecca00f
push 0x208
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x788]
call fcn.4ed11dea
test eax, eax
jne 0x4ecca00f
lea eax, [ebp - 0x364]
push eax
push 0x104
lea eax, [ebp - 0x670]
push eax
call fcn.4ed11ac7
jmp 0x4ecc9fb6
cmp dword [0x4edd01d8], ebx
lea eax, [ebp - 0x364]
je 0x4ecc9fda
push ebx
push edi
push dword [ebp - 0x784]
push ebx
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x780], eax
je 0x4ecca00f
mov dword [ebp - 0x790], 1
cmp dword [ebp - 0x788], ebx
je 0x4ec803f1
cmp dword [ebp - 0x780], 0xffffffff
je 0x4ec803e5
cmp dword [ebp - 0x790], ebx
je 0x4ecca2b1
push dword [ebp - 0x788]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x780], 0xffffffff
je 0x4ecca2e0
cmp dword [ebp - 0x784], 3
jne 0x4ec8048b
cmp dword [ebp + 0x10], ebx
jne 0x4ec8048b
push ebx
push dword [ebp - 0x780]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ec80498
cmp dword [0x4edd01d8], ebx
push ebx
push edi
push ebx
push 4
push ebx
push dword [ebp - 0x780]
je 0x4ec80490
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x4ec80498
push edi
push ebx
push ebx
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x4ec80498
mov ecx, dword [ebp - 0x780]
or dword [ebp - 0x780], 0xffffffff
mov dword [0x4edd0e74], edi
mov dword [0x4edd0e68], ecx
mov dword [0x4edd0e6c], esi
mov dword [0x4edd0e64], eax
mov dword [ebp - 0x78c], 1
jmp 0x4ec80498
leave
ret 0xc
mov edi, dword [ebp + 0xc]
jmp 0x4ec8041f
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
jmp 0x4ec8043e
cmp dword [ebp - 0x780], 0xffffffff
jne 0x4ecca2cc
jmp 0x4ecca2d8
mov dword [ebp - 0x788], ebx
jmp 0x4ec802e0
cmp eax, ebx
jl 0x4ecca00f
push 0x4ecca368
push 0x104
lea eax, [ebp - 0x364]
push eax
call fcn.4ed11db1
cmp eax, ebx
jge 0x4ec8038a
jmp 0x4ecca00f
push eax
lea ecx, [ebp - 0x77c]
call fcn.4ec8681d
cmp dword [ebp - 0x77c], 0x55464131
jne 0x4ecca00f
push ebx
push edi
push dword [ebp - 0x784]
push ebx
push 3
push esi
push dword [ebp - 0x778]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x4ec803af
cmp dword [0x4edd01d8], ebx
mov eax, dword [0x4edd0e70]
je 0x4ecca178
cmp eax, ebx
jne 0x4ecca03c
push 0x4ecca34c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x4edd0e70], eax
je 0x4ecca0ee
push 0x4ecca338
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x794], eax
je 0x4ecca0ee
lea ecx, [ebp - 0x364]
push ecx
push ebx
push ebx
push 0x801c
push ebx
call eax
cmp eax, 0x80070057
jne 0x4ecca083
lea eax, [ebp - 0x364]
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [ebp - 0x794]
push ebx
push 0x208
lea eax, [ebp - 0x364]
push eax
call fcn.4ed11d2e
test eax, eax
jl 0x4ecca0ee
lea eax, [ebp - 0x364]
push eax
push 0x104
lea eax, [ebp - 0x670]
push eax
call fcn.4ed11ac7
cmp eax, ebx
jl 0x4ecca0ee
push 0x4ecca368
push 0x104
lea eax, [ebp - 0x364]
push eax
call fcn.4ed11db1
cmp eax, ebx
jl 0x4ecca0ee
push ebx
push edi
push dword [ebp - 0x784]
lea eax, [ebp - 0x364]
push ebx
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x780], eax
cmp dword [ebp - 0x780], 0xffffffff
jne 0x4ec803c8
push 0x104
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x104
cmp eax, ecx
jae 0x4ec803c8
lea eax, [ebp - 0x364]
push eax
push ecx
lea eax, [ebp - 0x670]
push eax
call fcn.4ed11ac7
cmp eax, ebx
jl 0x4ec803c8
push 0x4ecca368
push 0x104
lea eax, [ebp - 0x364]
push eax
call fcn.4ed11db1
cmp eax, ebx
jl 0x4ec803c8
push ebx
push edi
push dword [ebp - 0x784]
lea eax, [ebp - 0x364]
push ebx
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x780], eax
jmp 0x4ec803c8
cmp eax, ebx
jne 0x4ecca190
push 0x4ecca328
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x4edd0e70], eax
je 0x4ecca206
push 0x4ecca314
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4ecca206
lea ecx, [ebp - 0x15c]
push ecx
push ebx
push ebx
push 0x801a
push ebx
call eax
lea eax, [ebp - 0x15c]
push eax
push 0x104
lea eax, [ebp - 0x468]
push eax
call fcn.4ed11a85
cmp eax, ebx
jl 0x4ecca206
push 0x4ecca2fc
push 0x104
lea eax, [ebp - 0x15c]
push eax
call fcn.4ed11d79
cmp eax, ebx
jl 0x4ecca206
push ebx
push edi
push dword [ebp - 0x784]
lea eax, [ebp - 0x15c]
push ebx
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x780], eax
cmp dword [ebp - 0x780], 0xffffffff
jne 0x4ecca294
push 0x104
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x104
cmp eax, ecx
jae 0x4ec803c8
lea eax, [ebp - 0x15c]
push eax
push ecx
lea eax, [ebp - 0x468]
push eax
call fcn.4ed11a85
cmp eax, ebx
jl 0x4ec803c8
push 0x4ecca2fc
push 0x104
lea eax, [ebp - 0x15c]
push eax
call fcn.4ed11d79
cmp eax, ebx
jl 0x4ec803c8
push ebx
push edi
push dword [ebp - 0x784]
lea eax, [ebp - 0x15c]
push ebx
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x780], eax
je 0x4ec803c8
push 0x104
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.4ecff6cb
jmp 0x4ec803c8
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x788]
call fcn.4ed50bb5
jmp 0x4ec803e5
push dword [ebp - 0x780]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x78c], ebx
jne 0x4ecca2e5
call fcn.4ec81443
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x78c]
pop edi
pop esi
pop ebx
call fcn.4ecfd994
jmp 0x4ec80487