Function at 0x454560
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
call eax
sub esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4545e0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._6718_:_Could_not_expand_the_environment_variable__s___ld_.
mov dword [esp + 8], str.get_paths_from_env_variable
mov dword [esp + 4], 0x9a1
mov dword [esp], str.config_syscheck_config.c
call dbg._merror
jmp 0x4547e6
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._calloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x454644
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4f66f8
mov dword [esp + 8], str.get_paths_from_env_variable
mov dword [esp + 4], 0x9a4
mov dword [esp], str.config_syscheck_config.c
call dbg._merror_exit
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
call eax
sub esp, 0xc
test eax, eax
jne 0x4546bd
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._6718_:_Could_not_expand_the_environment_variable__s___ld_.
mov dword [esp + 8], str.get_paths_from_env_variable
mov dword [esp + 4], 0x9a6
mov dword [esp], str.config_syscheck_config.c
call dbg._merror
cmp dword [ebp - 0x18], 0
je 0x4547e5
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x18], 0
jmp 0x4547e5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x4546e3
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
movsx eax, al
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_tolower]
call eax
mov edx, eax
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test al, al
jne 0x4546c5
mov eax, dword [0x4e918c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dbg.w_string_split
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
jne 0x454778
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strdup
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
jne 0x454778
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4f66f8
mov dword [esp + 8], str.get_paths_from_env_variable
mov dword [esp + 4], 0x9bf
mov dword [esp], str.config_syscheck_config.c
call dbg._merror_exit
mov dword [ebp - 0xc], 0
jmp 0x4547b0
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x14]
add eax, edx
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
lea ecx, [edx*4]
mov edx, dword [ebp - 0x14]
lea ebx, [ecx + edx]
mov dword [esp], eax
call dbg.w_strtrim
mov dword [ebx], eax
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x14]
add eax, edx
mov eax, dword [eax]
test eax, eax
jne 0x454781
cmp dword [ebp - 0x18], 0
je 0x4547dd
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
jmp 0x4548b1
nop
mov dword [esp + 4], 4
mov dword [esp], 2
call sym._calloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45484b
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4f66f8
mov dword [esp + 8], str.get_paths_from_env_variable
mov dword [esp + 4], 0x9ca
mov dword [esp], str.config_syscheck_config.c
call dbg._merror_exit
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strdup
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
jne 0x4548ae
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4f66f8
mov dword [esp + 8], str.get_paths_from_env_variable
mov dword [esp + 4], 0x9cb
mov dword [esp], str.config_syscheck_config.c
call dbg._merror_exit
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
leave
ret