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

Disassembly:
mov eax, 0x1000d176
call fcn.10007e8c
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.100068c4
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.100069ba
push 0x10010a98
push str.NGVE
lea ecx, [ebp - 0x45c]
call fcn.10006993
push 0
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x45c]
call fcn.10006a9b
test eax, eax
je 0x10004bcf
lea ecx, [ebp - 0x2c]
call fcn.10001bf8
push eax
call fcn.1000816d
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 0x10004d03
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 0x10004cf7
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x10010098]
jne 0x10004cf7
push 0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10011a28], eax
push dword [0x10011a28]
call fcn.10007030
pop ecx
mov dword [0x10011a94], eax
cmp dword [0x10011a94], 0
je 0x10004cf7
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 0x10004cd1
cmp dword [ebp - 0x46c], 0x64
jae 0x10004ce6
push dword [0x10011a94]
call fcn.10006fe8
pop ecx
and dword [0x10011a94], 0
jmp 0x10004cf7
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 0x10004e09
push 0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10011a14], eax
push dword [0x10011a14]
call fcn.10007030
pop ecx
mov dword [0x10011aa0], eax
cmp dword [0x10011aa0], 0
je 0x10004dfd
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 0x10004dea
cmp dword [ebp - 0x46c], 0xc800
jae 0x10004dfd
push dword [0x10011aa0]
call fcn.10006fe8
pop ecx
and dword [0x10011aa0], 0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x10011aa0], 0
je 0x10004f3a
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.10005343
pop ecx
pop ecx
push 0x6b
push 0x10011a18
call fcn.10005343
pop ecx
pop ecx
push 0x6b
push 0x100119b8
call fcn.10005343
pop ecx
pop ecx
push 0x6b
push 0x10011a60
call fcn.10005343
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 0x10004ec4
push dword [0x10011aa0]
call fcn.10006fe8
pop ecx
and dword [0x10011aa0], 0
jmp 0x10004f3a
and dword [ebp - 0x470], 0
mov dword [ebp - 0x474], 0x11
jmp 0x10004ee4
mov eax, dword [ebp - 0x474]
inc eax
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x474]
cmp eax, dword [0x10011a14]
jae 0x10004f19
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 0x10004ed7
mov eax, dword [ebp - 0x470]
cmp eax, dword [0x10011a60]
je 0x10004f3a
push dword [0x10011aa0]
call fcn.10006fe8
pop ecx
and dword [0x10011aa0], 0
cmp dword [0x10011aa0], 0
je 0x100050e8
cmp dword [0x10011a94], 0
je 0x10004f63
push dword [0x10011a94]
call fcn.10006fe8
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.10005343
pop ecx
pop ecx
cmp dword [ebp - 0x478], 0xb85e0
jl 0x1000504a
cmp dword [ebp - 0x478], 0xb85fe
jg 0x1000504a
mov eax, dword [ebp - 0x478]
cmp eax, dword [ebp - 0x38]
je 0x1000504a
cmp dword [ebp - 0x38], 0xffffffff
jle 0x1000504a
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.100048ef
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 0x10005098
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 0x100050c3
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 0x100050e3
mov eax, dword [0x10011aa0]
add eax, dword [0x10011a28]
mov ecx, dword [0x1001009c]
mov dword [eax - 0x1f], ecx
jmp 0x100051f8
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.1000522b
pop ecx
test eax, eax
jne 0x100051f8
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.1000522b
pop ecx
test eax, eax
jne 0x100051f8
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.1000522b
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x45c]
call fcn.10006940
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