Function at 0x408820
Capabilities:
Get disk information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2254
call fcn.00459eb0
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov dword [0x4869d4], 0xffffffff
push edi
mov ecx, esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x3f4]
push eax
lea ecx, [esp + 0x64]
push ecx
push str.AuditExeLog
xor ebx, ebx
push str.SystemCurrentControlSetServicesVxDKaseya
xor edi, edi
push 0x80000002
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x64], 0x105
call fcn.0044b2c0
add esp, 0x18
cmp eax, ebx
jne 0x408963
mov eax, dword [esp + 0x5c]
cmp eax, 1
je 0x4088ab
cmp eax, 2
jne 0x408963
lea eax, [esp + 0x3f0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088b5
sub eax, edx
cmp eax, ebx
jle 0x408963
lea edx, [esp + 0x3f0]
push 0x25
push edx
call fcn.004590c0
add esp, 8
test eax, eax
je 0x408923
push 0x105
lea eax, [esp + 0x90c]
push eax
lea ecx, [esp + 0x3f8]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, ebx
jle 0x408923
cmp eax, 0x104
jae 0x408923
xor eax, eax
jmp 0x408910
mov cl, byte [esp + eax + 0x908]
mov byte [esp + eax + 0x3f0], cl
inc eax
test cl, cl
jne 0x408910
lea edx, [esp + 0x3f0]
push edx
call fcn.0044a140
lea eax, [esp + 0x3f4]
push 0x46b4c0
push eax
call fcn.00459902
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x408963
push str.Filename__Version__ProductName__Manufacturer__Description___Status__n_n
push edi
call fcn.0045917e
push edi
call fcn.00459d78
add esp, 0xc
mov bl, byte [ebp + 8]
test bl, 1
mov dword [esp + 0x10], 0
je 0x40927f
push esi
call fcn.0042d2d0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x6c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push 0x80000002
xor eax, eax
call fcn.00401ab0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
add esp, 0x18
test eax, eax
je 0x4089b0
cmp byte [eax], 0
jne 0x4089d3
mov ecx, dword [0x46b438]
mov dx, word [0x46b43c]
mov dword [esp + 0x8c], ecx
mov word [esp + 0x90], dx
lea eax, [esp + 0x8c]
mov dl, byte [eax]
test dl, dl
mov dword [esp + 0x18], eax
je 0x409221
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0xe0]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x700]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
xor ecx, ecx
mov bl, 0x2c
xor esi, esi
cmp dl, bl
mov dword [esp + 0x38], ecx
je 0x408a5a
test dl, dl
je 0x408a56
test ecx, ecx
jne 0x408a1e
cmp dl, 0x20
je 0x408a48
cmp dl, 0x5c
lea eax, [esp + ecx + 0xe0]
mov byte [eax], dl
jne 0x408a47
cmp byte [edi + 1], bl
jne 0x408a3d
mov dl, byte [edi + 1]
inc edi
mov dword [esp + 0x18], edi
mov byte [eax], dl
jmp 0x408a47
mov dword [esp + 0x38], 1
mov esi, eax
inc ecx
mov dl, byte [edi + 1]
inc edi
cmp dl, bl
mov dword [esp + 0x18], edi
jne 0x408a11
jmp 0x408a5a
cmp byte [edi], bl
jne 0x408a5f
inc edi
mov dword [esp + 0x18], edi
lea eax, [esp + 0xe0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a70
sub eax, edx
dec eax
js 0x408a95
lea esp, [esp]
cmp byte [esp + eax + 0xe0], 0x20
jne 0x408a95
dec eax
mov byte [esp + eax + 0xe1], 0
jns 0x408a80
mov al, byte [esp + 0xe0]
test al, al
je 0x409214
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408b1c
lea eax, [esi + 1]
lea edx, [esp + 0x700]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x408ab8
mov byte [esi], cl
sub esi, 2
lea eax, [esp + 0xe0]
cmp esi, eax
jb 0x408b0a
cmp byte [esi], 0x5c
jne 0x408b0a
cmp byte [esi + 1], 0x2a
jne 0x408b0a
mov byte [esi], cl
dec esi
lea ecx, [esp + 0xe0]
cmp esi, ecx
mov dword [esp + 0x30], 1
jb 0x408b12
cmp byte [esi], 0x3a
jne 0x408b12
mov byte [esi + 1], 0x5c
mov byte [esi + 2], 0
mov dword [esp + 0x24], 1
jmp 0x408b60
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 1
jmp 0x408b60
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor ecx, ecx
jmp 0x408b30
mov dl, byte [esp + ecx + 0xe0]
mov byte [esp + ecx + 0x700], dl
inc ecx
test dl, dl
jne 0x408b30
test eax, eax
mov dword [esp + 0xe0], 0x5c3a41
mov dword [esp + 0x30], 1
je 0x409214
mov edi, edi
test byte [esp + 0x24], 1
je 0x4091b6
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, edi
jne 0x408b8c
lea edx, [esp + 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40918f
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x408bb2
push 3
lea eax, [esp + 0xe4]
push eax
push str.Searching__s__type___d_...
push esi
call fcn.0045917e
push esi
call fcn.00459d78
add esp, 0x14
push esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x714]
push edx
lea eax, [esp + 0xf8]
push eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.004022a0
add esp, 0x1c
cmp esi, edi
je 0x408c08
mov ecx, dword [esp + 0x1c]
push ecx
push str.found__d_files_n
push esi
call fcn.0045917e
push esi
call fcn.00459d78
add esp, 0x10
mov eax, dword [esp + 0x1c]
cmp eax, edi
jle 0x40917c
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4091b6
mov edx, dword [esp + 0x28]
mov edi, dword [ebp + 0x10]
lea esi, [eax + edx]
mov eax, dword [edi]
shl esi, 0xa
push esi
push eax
mov dword [esp + 0x5c], esi
call fcn.00459a66
mov edx, eax
add esp, 8
test edx, edx
mov dword [edi], edx
je 0x4091da
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
shl ecx, 0xa
mov edi, esi
shl edi, 0xa
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
add esi, ecx
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x28], esi
jle 0x40917c
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
lea ebx, [eax + 1]
mov eax, ebx
cdq
mov ecx, 0xa
idiv ecx
mov dword [esp + 0x3c], ebx
test edx, edx
jne 0x408ca4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
push 0x103
add eax, edx
push eax
lea ecx, [esp + 0x1f0]
push ecx
mov byte [esp + 0x2f7], 0
call fcn.00458f80
lea edx, [esp + 0x1f4]
push 0x5c
push edx
call fcn.0045a180
mov esi, eax
add esp, 0x14
test esi, esi
je 0x408d20
lea ecx, [esp + 0x1e8]
sub eax, ecx
push eax
lea edx, [esp + 0xa14]
push str.__._ds
push edx
call fcn.00458ee7
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0xa20]
push ecx
lea edx, [esp + 0x164c]
push edx
call fcn.00458ee7
add esp, 0x18
inc esi
jmp 0x408d2f
mov byte [esp + 0x1638], 0
lea esi, [esp + 0x1e8]
push 0x821
lea eax, [esp + 0x1a3c]
push eax
push esi
call fcn.0044ddd0
push 0x821
lea ecx, [esp + 0xe20]
push ecx
lea edx, [esp + 0x164c]
push edx
call fcn.0044ddd0
lea eax, [esp + 0x1a50]
push eax
lea ecx, [esp + 0xa2c]
push str._n_s
push ecx
call fcn.00458ee7
mov al, byte [esp + 0x1a5c]
add esp, 0x24
cmp al, 0x5f
je 0x409129
cmp al, 0x2e
je 0x409129
lea edx, [esp + 0x1e8]
push str.Temporary_Internet_Files_
push edx
call fcn.0044db90
add esp, 8
test eax, eax
jne 0x409129
lea eax, [esp + 0x1e8]
push str.Recent_
push eax
call fcn.0044db90
add esp, 8
test eax, eax
jne 0x409129
lea ecx, [esp + 0x1e8]
push str.:System_Volume_Information_restore
push ecx
call fcn.0044db90
add esp, 8
test eax, eax
jne 0x409129
lea edx, [esp + 0x1e8]
push str.:Recycled_
push edx
call fcn.0044db90
add esp, 8
test eax, eax
jne 0x409129
lea eax, [esp + 0x1e8]
push str.:Recycler_
push eax
call fcn.0044db90
add esp, 8
test eax, eax
jne 0x409129
lea eax, [esp + 0xe10]
lea edx, [eax + 1]
jmp 0x408e30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408e30
sub eax, edx
cmp eax, 9
jb 0x408e6e
lea eax, [esp + 0xe10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408e48
sub eax, edx
lea ecx, [esp + eax + 0xe07]
push str.dllcache
push ecx
call fcn.0045ba9a
add esp, 8
test eax, eax
je 0x409129
test edi, edi
je 0x408e8e
lea edx, [esp + 0x1e8]
push edx
push 0x4697b8
push edi
call fcn.0045917e
push edi
call fcn.00459d78
add esp, 0x10
push 0x80
lea eax, [esp + 0x2f4]
push eax
push 0x100
lea ecx, [esp + 0x814]
push ecx
push 0x10
lea edx, [esp + 0x90]
push edx
push 0x20
lea eax, [esp + 0xdc]
push eax
push 0x80
lea ecx, [esp + 0x394]
push ecx
push 0x20
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x218]
push eax
call fcn.00403540
add esp, 0x34
test eax, eax
jl 0x409109
test edi, edi
je 0x408f24
push eax
lea ecx, [esp + 0x80c]
push ecx
lea edx, [esp + 0x378]
push edx
lea eax, [esp + 0x2fc]
push eax
lea ecx, [esp + 0xb0]
push ecx
push str.___s___s___s___s____d_
push edi
call fcn.0045917e
push edi
call fcn.00459d78
add esp, 0x20
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x34]
push esi
xor edi, edi
call fcn.004034f0
add esp, 4
test eax, eax
je 0x408f52
push str.setup.exe
push esi
call fcn.0045ba9a
add esp, 8
test eax, eax
je 0x408f52
mov edi, 1
push edi
lea edx, [esp + 0x70]
push 0x4696c0
push edx
call fcn.00458ee7
lea eax, [esp + 0x1a44]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408f70
sub eax, edx
mov dword [esp + 0x40], eax
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408f87
sub eax, edx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2f0]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408fa0
sub eax, edx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x370]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408fb7
sub eax, edx
mov dword [esp + 0x58], eax
lea eax, [esp + 0x808]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408fd0
sub eax, edx
mov dword [esp + 0x68], eax
lea eax, [esp + 0xc0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408fe7
sub eax, edx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
jmp 0x409000
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409000
sub eax, edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0xe10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409017
sub eax, edx
mov esi, eax
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409030
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov eax, ebx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409045
mov edx, dword [esp + 0x10]
sub eax, edi
mov edi, dword [esp + 0x68]
add eax, ecx
mov ecx, dword [esp + 0x50]
add eax, esi
mov esi, dword [esp + 0x58]
add eax, edx
mov edx, dword [esp + 0x64]
add eax, ecx
mov ecx, dword [esp + 0x44]
add eax, edi
add eax, esi
add eax, edx
add eax, ecx
mov ecx, dword [esp + 0x40]
lea edx, [eax + ecx + 4]
cmp edx, dword [esp + 0x54]
jge 0x409147
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409090
sub eax, edx
mov edi, eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0xe14]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x818]
push ecx
lea edx, [esp + 0x384]
push edx
lea eax, [esp + 0x308]
push eax
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x1a58]
push edx
push str._s___s___s___s___s___s___s___s___s_r_n
add ebx, edi
push ebx
call fcn.00458ee7
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x14]
add ecx, edi
push ecx
push edx
call fcn.0042d130
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x48]
add esp, 0x34
test edi, edi
mov dword [esp + 0x10], 0
je 0x409129
push 0x46b328
push edi
call fcn.0045917e
push edi
call fcn.00459d78
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
add edx, 0x104
cmp eax, ecx
mov dword [esp + 0x2c], edx
jl 0x408c87
jmp 0x40917c
lea eax, [esp + 0x4fc]
push str.ERROR:_doAudit___Not_enough_internal_memory_allocated_to_return_installed_application_audit_results._n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x500]
push ecx
mov dword [esp + 0x504], 1
call fcn.0043e010
add esp, 0xc
mov dword [esp + 0x10], 0x4099
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4091b6
push eax
call fcn.0045932f
add esp, 4
jmp 0x4091b6
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x4091b6
push eax
lea edx, [esp + 0xe4]
push edx
mov esi, ecx
push str.Skipping__s__type___d_._n
push esi
call fcn.0045917e
push esi
call fcn.00459d78
add esp, 0x14
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0xe0]
shr eax, 1
inc dl
test eax, eax
mov dword [esp + 0x24], eax
mov byte [esp + 0xe0], dl
jne 0x408b60
jmp 0x409210
push esi
lea eax, [esp + 0x500]
push str.ERROR:_doAudit___Unable_to_allocate__d_bytes_of_memory_for_installed_application_audit_results._n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x504]
push ecx
mov dword [esp + 0x508], 1
call fcn.0043e010
add esp, 0x10
mov dword [esp + 0x10], 0x4099
mov edi, dword [esp + 0x18]
mov dl, byte [edi]
test dl, dl
jne 0x4089e1
mov bl, byte [ebp + 8]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x409232
push eax
call fcn.0045932f
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4093b1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call fcn.0042cda0
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0xa14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xa14]
push 0x400
push ecx
call fcn.0042c790
lea edx, [esp + 0xa1c]
push edx
call fcn.0043ef10
mov edi, dword [esp + 0x24]
add esp, 0x10
test edi, edi
je 0x409297
push str._n_nSoftware_audit_completed_n
push edi
call fcn.0045917e
push edi
call fcn.00459d78
add esp, 0xc
test bl, 2
je 0x4092c4
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
call fcn.00407ea0
add esp, 0x10
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4093b1
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4092dc
push str.Computer_Info_audit_completed_n
push edi
call fcn.0045917e
push edi
call fcn.00459d78
add esp, 0xc
test bl, 4
je 0x409310
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
push ecx
push edx
call fcn.00434660
add esp, 8
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jne 0x409304
mov dword [esp + 0x10], 0
jmp 0x409310
test eax, eax
jne 0x4093b1
mov edi, dword [esp + 0x14]
test edi, edi
je 0x409328
push str.Hardware_audit_completed_n
push edi
call fcn.0045917e
push edi
call fcn.00459d78
add esp, 0xc
test bl, 8
je 0x409395
mov esi, dword [ebp + 0x30]
test esi, esi
jne 0x409339
or ecx, 0xffffffff
jmp 0x40935f
push esi
mov dword [esi], 0
call fcn.00449dc0
add esp, 4
test eax, eax
je 0x409355
push esi
call fcn.0044b470
add esp, 4
test eax, eax
mov ecx, eax
mov dword [esp + 0x10], ecx
je 0x409399
push ecx
lea eax, [esp + 0x500]
push str.ERROR:_Printer_audit_failed_with_error__d._n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x504]
push ecx
mov dword [esp + 0x508], 1
call fcn.0043e010
add esp, 0x10
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x409399
mov ecx, dword [esp + 0x10]
test edi, edi
je 0x4093de
push str.Printer_audit_completed_n
push edi
call fcn.0045917e
push edi
call fcn.00459d78
add esp, 0xc
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4093d3
push str._n_nAudit_completed_n
push esi
call fcn.0045917e
push esi
call fcn.00459d78
push esi
call fcn.00459521
add esp, 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret