Function at 0x10004aec
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
mov eax, 0x1000d136
call fcn.10007e4c
sub esp, 0x5b0
lea ecx, [ebp - 0x2c]
call fcn.10001000
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001000
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x45c]
call fcn.10006884
mov byte [ebp - 4], 2
or dword [ebp - 0x38], 0xffffffff
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x14]
mov dword [0x1001009c], eax
mov ecx, 0x10011a30
call fcn.10001bf8
push eax
lea ecx, [ebp - 0x45c]
call fcn.1000697a
push 0x10010a98
push str.NGVE
lea ecx, [ebp - 0x45c]
call fcn.10006953
push 0
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x45c]
call fcn.10006a5b
test eax, eax
je 0x10004b8f
lea ecx, [ebp - 0x2c]
call fcn.10001bf8
push eax
call fcn.1000812d
pop ecx
mov dword [0x10011aac], eax
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x100119f0
push 0x10011a20
lea eax, [ebp - 0x584]
push eax
call fcn.10001669
add esp, 0xc
mov dword [ebp - 0x5a0], eax
mov eax, dword [ebp - 0x5a0]
mov dword [ebp - 0x5a4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5a4]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x460], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x584]
call fcn.100010fa
cmp dword [ebp - 0x460], 0xffffffff
je 0x10004cc3
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10004cb7
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x10010098]
jne 0x10004cb7
push 0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10011a28], eax
push dword [0x10011a28]
call fcn.10006ff0
pop ecx
mov dword [0x10011a94], eax
cmp dword [0x10011a94], 0
je 0x10004cb7
push 0
lea eax, [ebp - 0x46c]
push eax
push dword [0x10011a28]
push dword [0x10011a94]
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004c91
cmp dword [ebp - 0x46c], 0x64
jae 0x10004ca6
push dword [0x10011a94]
call fcn.10006fa8
pop ecx
and dword [0x10011a94], 0
jmp 0x10004cb7
mov eax, dword [0x10011a94]
add eax, dword [0x10011a28]
mov eax, dword [eax - 0x50]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10010aa8
push 0x100119c0
lea eax, [ebp - 0x58c]
push eax
call fcn.10001713
add esp, 0xc
mov dword [ebp - 0x5a8], eax
mov eax, dword [ebp - 0x5a8]
mov dword [ebp - 0x5ac], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x5ac]
lea ecx, [ebp - 0x2c]
call fcn.10001549
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58c]
call fcn.100010fa
push 0x10010aac
lea ecx, [ebp - 0x2c]
call fcn.100017f8
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [ebp - 0x2c]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0xffffffff
je 0x10004dc9
push 0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10011a14], eax
push dword [0x10011a14]
call fcn.10006ff0
pop ecx
mov dword [0x10011aa0], eax
cmp dword [0x10011aa0], 0
je 0x10004dbd
push 0
lea eax, [ebp - 0x46c]
push eax
push dword [0x10011a14]
push dword [0x10011aa0]
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004daa
cmp dword [ebp - 0x46c], 0xc800
jae 0x10004dbd
push dword [0x10011aa0]
call fcn.10006fa8
pop ecx
and dword [0x10011aa0], 0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x10011aa0], 0
je 0x10004efa
mov eax, dword [0x10011aa0]
movzx eax, byte [eax + 0x10]
xor eax, 0x6b
mov byte [0x100119c8], al
mov eax, dword [0x10011aa0]
mov eax, dword [eax]
mov dword [0x10011a28], eax
mov eax, dword [0x10011aa0]
mov eax, dword [eax + 4]
mov dword [0x10011a18], eax
mov eax, dword [0x10011aa0]
mov eax, dword [eax + 8]
mov dword [0x100119b8], eax
mov eax, dword [0x10011aa0]
mov eax, dword [eax + 0xc]
mov dword [0x10011a60], eax
push 0x6b
push 0x10011a28
call fcn.10005303
pop ecx
pop ecx
push 0x6b
push 0x10011a18
call fcn.10005303
pop ecx
pop ecx
push 0x6b
push 0x100119b8
call fcn.10005303
pop ecx
pop ecx
push 0x6b
push 0x10011a60
call fcn.10005303
pop ecx
pop ecx
mov eax, dword [0x10011a28]
add eax, dword [0x10011a18]
mov ecx, dword [0x100119b8]
lea eax, [eax + ecx + 0x11]
cmp dword [0x10011a14], eax
je 0x10004e84
push dword [0x10011aa0]
call fcn.10006fa8
pop ecx
and dword [0x10011aa0], 0
jmp 0x10004efa
and dword [ebp - 0x470], 0
mov dword [ebp - 0x474], 0x11
jmp 0x10004ea4
mov eax, dword [ebp - 0x474]
inc eax
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x474]
cmp eax, dword [0x10011a14]
jae 0x10004ed9
mov eax, dword [0x10011aa0]
add eax, dword [ebp - 0x474]
movzx eax, byte [eax]
movzx ecx, byte [0x100119c8]
xor eax, ecx
mov ecx, dword [ebp - 0x470]
add ecx, eax
mov dword [ebp - 0x470], ecx
jmp 0x10004e97
mov eax, dword [ebp - 0x470]
cmp eax, dword [0x10011a60]
je 0x10004efa
push dword [0x10011aa0]
call fcn.10006fa8
pop ecx
and dword [0x10011aa0], 0
cmp dword [0x10011aa0], 0
je 0x100050a8
cmp dword [0x10011a94], 0
je 0x10004f23
push dword [0x10011a94]
call fcn.10006fa8
pop ecx
and dword [0x10011a94], 0
mov eax, dword [0x10011aa0]
add eax, 0x11
mov dword [0x10011a94], eax
mov eax, dword [0x10011a94]
add eax, dword [0x10011a28]
mov eax, dword [eax - 0x50]
mov dword [ebp - 0x478], eax
mov al, byte [0x100119c8]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.10005303
pop ecx
pop ecx
cmp dword [ebp - 0x478], 0xb85e0
jl 0x1000500a
cmp dword [ebp - 0x478], 0xb85fe
jg 0x1000500a
mov eax, dword [ebp - 0x478]
cmp eax, dword [ebp - 0x38]
je 0x1000500a
cmp dword [ebp - 0x38], 0xffffffff
jle 0x1000500a
push 0x10010ab4
push 0x100119c0
lea eax, [ebp - 0x594]
push eax
call fcn.10001713
add esp, 0xc
mov dword [ebp - 0x5b0], eax
mov eax, dword [ebp - 0x5b0]
mov dword [ebp - 0x5b4], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x5b4]
lea ecx, [ebp - 0x2c]
call fcn.10001549
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x594]
call fcn.100010fa
push 0x10010ab8
lea ecx, [ebp - 0x2c]
call fcn.100017f8
push 1
push dword [0x10011a28]
push dword [0x10011a94]
lea eax, [ebp - 0x2c]
push eax
call fcn.100048af
add esp, 0x10
mov dword [0x10011a90], 1
mov eax, dword [0x10011a28]
mov ecx, dword [0x10011aa0]
lea eax, [ecx + eax + 0x11]
mov dword [0x10011a98], eax
mov eax, dword [0x10011a28]
mov ecx, dword [0x10011aa0]
lea eax, [ecx + eax + 0x11]
add eax, dword [0x10011a18]
mov dword [0x10011a9c], eax
mov eax, dword [0x10011aac]
and eax, 2
test eax, eax
je 0x10005058
mov eax, dword [0x10011aa0]
add eax, dword [0x10011a14]
mov ecx, dword [0x1001009c]
mov dword [eax - 0x30], ecx
mov eax, dword [0x10011aac]
and eax, 4
test eax, eax
je 0x10005083
mov eax, dword [0x10011a28]
mov ecx, dword [0x10011aa0]
lea eax, [ecx + eax + 0x11]
mov ecx, dword [0x10011a18]
mov edx, dword [0x1001009c]
mov dword [eax + ecx - 0x30], edx
mov eax, dword [0x10011aac]
and eax, 8
test eax, eax
je 0x100050a3
mov eax, dword [0x10011aa0]
add eax, dword [0x10011a28]
mov ecx, dword [0x1001009c]
mov dword [eax - 0x1f], ecx
jmp 0x100051b8
push 0x10010ac0
push 0x100119c0
lea eax, [ebp - 0x59c]
push eax
call fcn.10001713
add esp, 0xc
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebp - 0x5b8]
mov dword [ebp - 0x5bc], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x5bc]
lea ecx, [ebp - 0x2c]
call fcn.10001549
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x59c]
call fcn.100010fa
push 0x10010ac4
lea ecx, [ebp - 0x2c]
call fcn.100017f8
lea ecx, [ebp - 0x2c]
call fcn.10001bf8
push eax
call fcn.100051eb
pop ecx
test eax, eax
jne 0x100051b8
push 0x104
lea eax, [ebp - 0x57c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x57c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001581
push str.ken
lea ecx, [ebp - 0x2c]
call fcn.100017f8
push 0x10010ad4
lea ecx, [ebp - 0x2c]
call fcn.100017f8
push str..log
lea ecx, [ebp - 0x2c]
call fcn.100017f8
lea ecx, [ebp - 0x2c]
call fcn.10001bf8
push eax
call fcn.100051eb
pop ecx
test eax, eax
jne 0x100051b8
lea eax, [ebp - 0x57c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001581
push str.infopt
lea ecx, [ebp - 0x2c]
call fcn.100017f8
push 0x10010aec
lea ecx, [ebp - 0x2c]
call fcn.100017f8
push str..inf
lea ecx, [ebp - 0x2c]
call fcn.100017f8
lea ecx, [ebp - 0x2c]
call fcn.10001bf8
push eax
call fcn.100051eb
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x45c]
call fcn.10006900
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100010fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100010fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret