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

Disassembly:
mov eax, 0x1000d146
call fcn.10007e5c
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.10006893
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.10006989
push 0x10010a98
push str.NGVE
lea ecx, [ebp - 0x45c]
call fcn.10006962
push 0
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x45c]
call fcn.10006a6a
test eax, eax
je 0x10004b9e
lea ecx, [ebp - 0x2c]
call fcn.10001bf8
push eax
call fcn.1000813d
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 0x10004cd2
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 0x10004cc6
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x10010098]
jne 0x10004cc6
push 0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10011a28], eax
push dword [0x10011a28]
call fcn.10007000
pop ecx
mov dword [0x10011a94], eax
cmp dword [0x10011a94], 0
je 0x10004cc6
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 0x10004ca0
cmp dword [ebp - 0x46c], 0x64
jae 0x10004cb5
push dword [0x10011a94]
call fcn.10006fb8
pop ecx
and dword [0x10011a94], 0
jmp 0x10004cc6
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 0x10004dd8
push 0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10011a14], eax
push dword [0x10011a14]
call fcn.10007000
pop ecx
mov dword [0x10011aa0], eax
cmp dword [0x10011aa0], 0
je 0x10004dcc
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 0x10004db9
cmp dword [ebp - 0x46c], 0xc800
jae 0x10004dcc
push dword [0x10011aa0]
call fcn.10006fb8
pop ecx
and dword [0x10011aa0], 0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x10011aa0], 0
je 0x10004f09
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.10005312
pop ecx
pop ecx
push 0x6b
push 0x10011a18
call fcn.10005312
pop ecx
pop ecx
push 0x6b
push 0x100119b8
call fcn.10005312
pop ecx
pop ecx
push 0x6b
push 0x10011a60
call fcn.10005312
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 0x10004e93
push dword [0x10011aa0]
call fcn.10006fb8
pop ecx
and dword [0x10011aa0], 0
jmp 0x10004f09
and dword [ebp - 0x470], 0
mov dword [ebp - 0x474], 0x11
jmp 0x10004eb3
mov eax, dword [ebp - 0x474]
inc eax
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x474]
cmp eax, dword [0x10011a14]
jae 0x10004ee8
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 0x10004ea6
mov eax, dword [ebp - 0x470]
cmp eax, dword [0x10011a60]
je 0x10004f09
push dword [0x10011aa0]
call fcn.10006fb8
pop ecx
and dword [0x10011aa0], 0
cmp dword [0x10011aa0], 0
je 0x100050b7
cmp dword [0x10011a94], 0
je 0x10004f32
push dword [0x10011a94]
call fcn.10006fb8
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.10005312
pop ecx
pop ecx
cmp dword [ebp - 0x478], 0xb85e0
jl 0x10005019
cmp dword [ebp - 0x478], 0xb85fe
jg 0x10005019
mov eax, dword [ebp - 0x478]
cmp eax, dword [ebp - 0x38]
je 0x10005019
cmp dword [ebp - 0x38], 0xffffffff
jle 0x10005019
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.100048be
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 0x10005067
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 0x10005092
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 0x100050b2
mov eax, dword [0x10011aa0]
add eax, dword [0x10011a28]
mov ecx, dword [0x1001009c]
mov dword [eax - 0x1f], ecx
jmp 0x100051c7
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.100051fa
pop ecx
test eax, eax
jne 0x100051c7
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.100051fa
pop ecx
test eax, eax
jne 0x100051c7
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.100051fa
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x45c]
call fcn.1000690f
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