Function at 0x40aa80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540a30
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x208
xor esi, esi
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00516d20
add esp, 0xc
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 8
jb 0x40aad7
mov eax, dword [edi]
jmp 0x40aad9
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, str.Shell32.dll
call fcn.0040a280
mov ebx, eax
mov dword [ebp - 0x628], ebx
test ebx, ebx
jne 0x40ab47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov esi, eax
lea ecx, [ebp - 0x620]
push esi
call fcn.00407db0
lea eax, [ebp - 0x620]
push eax
push str.Failed_to_load_Shell_API_dll:__s
push ebx
push 2
push 0x56657c
push ebx
push ebx
push str.Utilities::GetAgentDataDirectoryPath
push 0x1b07
push str.Utilities.cpp
lea ecx, [ebp - 0x640]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x18
jmp 0x40adfb
push str.SHGetFolderPathW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x624], eax
test eax, eax
jne 0x40abb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov esi, eax
lea ecx, [ebp - 0x620]
push esi
call fcn.00407db0
lea eax, [ebp - 0x620]
push eax
push str.Failed_to_retrieve_Shell_API_address:__s
push 0
push 2
push 0x5665ec
push 0
push 0
push str.Utilities::GetAgentDataDirectoryPath
push 0x1b0f
push str.Utilities.cpp
lea ecx, [ebp - 0x640]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x18
jmp 0x40adf4
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
push 0x23
push 0
mov ecx, eax
call dword [0x548398]
call dword [ebp - 0x624]
test eax, eax
jns 0x40ac14
push eax
push str.Failed_to_get_ProgramData_folder_location__0x_x_
push 0
push 2
push 0x56665c
push 0
push 0
push str.Utilities::GetAgentDataDirectoryPath
push 0x1b17
push str.Utilities.cpp
lea ecx, [ebp - 0x640]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x18
mov esi, 3
jmp 0x40adf4
push 0x104
lea edx, [ebp - 0x220]
mov ecx, 0x566664
call fcn.0040a8d0
add esp, 4
test al, al
jne 0x40ac6f
push str.Failed_to_form_the_Qualys_data_directory_path
push 0
push 2
push 0x5666d4
push 0
push 0
push str.Utilities::GetAgentDataDirectoryPath
push 0x1b1e
push str.Utilities.cpp
lea ecx, [ebp - 0x640]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x14
mov esi, 3
jmp 0x40adf4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40acd3
and eax, 0x410
cmp eax, 0x410
jne 0x40acd3
lea eax, [ebp - 0x220]
push eax
push str.Directory_is_a_junction:__s
push 0
push 2
push 0x566718
push 0
push 0
push str.Utilities::GetAgentDataDirectoryPath
push 0x1b25
push str.Utilities.cpp
lea ecx, [ebp - 0x640]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x18
mov esi, 0x139f
jmp 0x40adf4
push 0x104
lea edx, [ebp - 0x220]
mov ecx, str.QualysAgent
call fcn.0040a8d0
add esp, 4
test al, al
jne 0x40ad10
push str.Failed_to_form_the_QualysAgent_data_directory_path
push 0
push 2
push 0x5667a0
push 0
push 0
push str.Utilities::GetAgentDataDirectoryPath
push 0x1b2c
jmp 0x40ac4c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ad56
and eax, 0x410
cmp eax, 0x410
jne 0x40ad56
lea eax, [ebp - 0x220]
push eax
push str.Directory_is_a_junction:__s
push 0
push 2
push 0x5667a8
push 0
push 0
push str.Utilities::GetAgentDataDirectoryPath
push 0x1b33
jmp 0x40acb0
mov dword [ebp - 4], 0
cmp word [ebp - 0x220], 0
jne 0x40ad7a
xor ecx, ecx
lea eax, [ebp - 0x220]
push ecx
push eax
mov ecx, edi
call fcn.00403fe0
jmp 0x40adf4
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ad83
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403fe0
jmp 0x40adf4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret