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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x794
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x780], 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, 0x4ec7d9a8
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 0x2001f
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x58]
push eax
mov esi, 0x4ec7d98c
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.4ec7d250
test eax, eax
jne 0x4ecc80ba
cmp dword [ebp - 0x788], ebx
mov edi, 0x80
mov esi, 0xc0000000
je 0x4ecc810a
push 0x208
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x788]
call fcn.4ec7d1bd
test eax, eax
jne 0x4ecc810a
lea eax, [ebp - 0x364]
push eax
push 0x208
lea eax, [ebp - 0x670]
push eax
call fcn.4ec7da9f
test eax, eax
jl 0x4ecc810a
push 0x4ec7cfdc
push 0x208
lea eax, [ebp - 0x364]
push eax
call fcn.4ec7d9e3
test eax, eax
jl 0x4ecc810a
cmp dword [0x4edd70f4], ebx
lea eax, [ebp - 0x364]
je 0x4ecc80c5
push ebx
push edi
push dword [ebp - 0x784]
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
je 0x4ecc810a
mov dword [ebp - 0x790], 1
cmp dword [ebp - 0x788], ebx
je 0x4ec7d8a9
cmp dword [ebp - 0x780], 0xffffffff
je 0x4ec7d89d
cmp dword [ebp - 0x790], ebx
je 0x4ecc83ae
push dword [ebp - 0x788]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x780], 0xffffffff
je 0x4ec7d984
cmp dword [ebp - 0x784], 3
jne 0x4ec7d971
cmp dword [ebp + 0x10], ebx
jne 0x4ec7d971
push ebx
push dword [ebp - 0x780]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ec7d945
cmp dword [0x4edd70f4], ebx
push ebx
push edi
push ebx
push 4
push ebx
push dword [ebp - 0x780]
je 0x4ec7d979
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x4ec7d945
push edi
push ebx
push ebx
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x4ec7d945
mov ecx, dword [ebp - 0x780]
or dword [ebp - 0x780], 0xffffffff
mov dword [0x4edd71c0], edi
mov dword [0x4edd71b4], ecx
mov dword [0x4edd71b8], esi
mov dword [0x4edd71b0], eax
mov dword [ebp - 0x78c], 1
cmp dword [ebp - 0x780], 0xffffffff
jne 0x4ecc83c9
cmp dword [ebp - 0x78c], ebx
je 0x4ec7d984
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x78c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ec515ae
leave
ret 0xc
mov edi, dword [ebp + 0xc]
jmp 0x4ec7d8db
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
jmp 0x4ec7d8fe
call fcn.4ec7d553
jmp 0x4ec7d95a
mov dword [ebp - 0x788], ebx
jmp 0x4ec7d7c7
push eax
lea ecx, [ebp - 0x77c]
call fcn.4ec8714c
cmp dword [ebp - 0x77c], 0x55464131
jne 0x4ecc80fb
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]
mov dword [ebp - 0x780], eax
mov dword [ebp - 0x77c], 0x4c494146
jmp 0x4ec7d869
cmp dword [0x4edd70f4], ebx
mov eax, dword [0x4edd71bc]
je 0x4ecc8275
cmp eax, ebx
jne 0x4ecc8137
push 0x4ecc842c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x4edd71bc], eax
je 0x4ecc81e9
push 0x4ecc8418
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x794], eax
je 0x4ecc81e9
lea ecx, [ebp - 0x364]
push ecx
push ebx
push ebx
push 0x801c
push ebx
call eax
cmp eax, 0x80070057
jne 0x4ecc817e
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.4ed153d4
test eax, eax
jl 0x4ecc81e9
lea eax, [ebp - 0x364]
push eax
push 0x208
lea eax, [ebp - 0x670]
push eax
call fcn.4ec7da9f
test eax, eax
jl 0x4ecc81e9
push 0x4ec7cfdc
push 0x208
lea eax, [ebp - 0x364]
push eax
call fcn.4ec7d9e3
test eax, eax
jl 0x4ecc81e9
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 0x4ec7d880
push 0x104
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jae 0x4ec7d880
lea eax, [ebp - 0x364]
push eax
push 0x208
lea eax, [ebp - 0x670]
push eax
call fcn.4ec7da9f
test eax, eax
jl 0x4ec7d880
push 0x4ec7cfdc
push 0x208
lea eax, [ebp - 0x364]
push eax
call fcn.4ec7d9e3
test eax, eax
jl 0x4ec7d880
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 0x4ec7d880
cmp eax, ebx
jne 0x4ecc828d
push 0x4ecc8408
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x4edd71bc], eax
je 0x4ecc8303
push 0x4ecc83f4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4ecc8303
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.4ed15359
test eax, eax
jl 0x4ecc8303
push 0x4ecc83dc
push 0x104
lea eax, [ebp - 0x15c]
push eax
call fcn.4ed15393
test eax, eax
jl 0x4ecc8303
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 0x4ecc8391
push 0x104
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x104
cmp eax, ecx
jae 0x4ec7d880
lea eax, [ebp - 0x15c]
push eax
push ecx
lea eax, [ebp - 0x468]
push eax
call fcn.4ed15359
test eax, eax
jl 0x4ec7d880
push 0x4ecc83dc
push 0x104
lea eax, [ebp - 0x15c]
push eax
call fcn.4ed15393
test eax, eax
jl 0x4ec7d880
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 0x4ec7d880
push 0x104
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.4ecf9922
jmp 0x4ec7d880
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x788]
call fcn.4ed8421f
jmp 0x4ec7d89d
push dword [ebp - 0x780]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ec7d952