Function at 0x405e07
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
push edi
mov dword [ebp - 0x20], edx
mov byte [ebp - 0x19], cl
call fcn.00403fa8
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404df3
lea ecx, [ebp - 0x2c]
call fcn.00405c3d
mov edi, eax
test edi, edi
jns 0x405e7c
movzx ecx, byte [0x558e46]
neg ecx
sbb ecx, ecx
and ecx, 0x557fc0
je 0x4062b4
push 7
pop ebx
push 0xfffffffffffffffe
pop eax
push eax
push ebx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], eax
call fcn.0040b7e8
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push str._CreateUniqueTempFolder_failed___x_.
push eax
call fcn.004041cc
add esp, 0xc
jmp 0x4062b4
mov edi, dword [ebp - 0x2c]
push ecx
mov esi, esp
lea ecx, [edi - 0x10]
call fcn.00404e70
mov edx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x4c]
add eax, 0x10
mov dword [esi], eax
call fcn.004066a2
pop ecx
call fcn.00403fa8
push eax
lea ecx, [ebp - 8]
call fcn.00404df3
mov esi, dword [ebp - 8]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x405ecf
push edx
lea ecx, [ebp - 8]
call fcn.00404ec3
mov esi, dword [ebp - 8]
push esi
xor ebx, ebx
push ebx
push 0x53949c
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov ebx, eax
call fcn.00404bbc
test ebx, ebx
jne 0x405f35
movzx ecx, byte [0x558e46]
neg ecx
sbb ecx, ecx
and ecx, 0x557fc0
je 0x405f2b
push 7
pop ebx
push 0xfffffffffffffffe
pop eax
push eax
push ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
call fcn.0040b7e8
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push str._InstallOmaha__failed_to_get_temp_file_for_tarball._
push eax
call fcn.004041cc
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x406297
push ecx
lea ecx, [esi - 0x10]
mov ebx, esp
call fcn.00404e70
mov edx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x3c]
add eax, 0x10
mov dword [ebx], eax
call fcn.004066a2
pop ecx
lea ecx, [ebp - 8]
call fcn.00405d45
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x405faa
movzx ecx, byte [0x558e46]
neg ecx
sbb ecx, ecx
and ecx, 0x557fc0
je 0x405fa0
push 7
pop ebx
push 0xfffffffffffffffe
pop eax
push eax
push ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
call fcn.0040b7e8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push str._InstallOmaha__failed_to_get_metainstaller_tarball._
push eax
call fcn.004041cc
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x406282
lea ecx, [edi - 0x10]
call fcn.00404e70
add eax, 0x10
mov byte [ebp - 0x6c], 1
xor ebx, ebx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 1], bl
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x74]
call fcn.00427270
test al, al
je 0x406206
cmp byte [ebp - 1], bl
je 0x405fd6
push edi
lea ecx, [ebp - 8]
call fcn.00404b61
push 0x53939c
lea ecx, [ebp - 8]
call fcn.00404a6c
mov ecx, dword [ebp - 8]
call fcn.00404187
test al, al
jne 0x406057
movzx ecx, byte [0x558e46]
neg ecx
sbb ecx, ecx
and ecx, 0x557fc0
je 0x40604d
push 7
pop ebx
push 0xfffffffffffffffe
pop eax
push eax
push ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
call fcn.0040b7e8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push str._InstallOmaha__couldnt_find_metainstaller_
push eax
call fcn.004041cc
pop ecx
pop ecx
mov edi, 0x80040723
jmp 0x4061f9
push 9
lea ecx, [ebp - 0xa4]
call fcn.0041a8d6
push dword [ebp - 0x20]
lea ecx, [ebp - 0x90]
mov byte [ebp - 0x9e], 1
call fcn.00404b09
call fcn.00403fa8
push eax
lea ecx, [ebp - 0x20]
call fcn.00404df3
mov eax, 0x539640
cmp byte [ebp - 0x19], bl
jne 0x406096
mov eax, 0x53964c
push eax
lea eax, [ebp - 0x20]
push str.runtimetrueneedsadmin_s
push eax
call fcn.00410ae2
add esp, 0xc
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x98]
push eax
call fcn.00404b09
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xa4]
call fcn.0041a9d1
mov edx, dword [ebp - 0x28]
lea edi, [ebp - 0x18]
mov ecx, dword [ebp - 8]
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x54], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00410798
mov ebx, eax
mov dword [ebp - 0x24], ebx
pop ecx
pop ecx
test ebx, ebx
js 0x4060fb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
jmp 0x4060fe
mov edi, dword [ebp - 0x54]
movzx ecx, byte [0x558e46]
test ebx, ebx
jns 0x40614e
neg ecx
sbb ecx, ecx
and ecx, 0x557fc0
je 0x4061ca
push 7
pop ebx
push 0xfffffffffffffffe
pop eax
push eax
push ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
call fcn.0040b7e8
push dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push dword [ebp - 0x28]
push dword [ebp - 8]
push str._InstallOmaha__couldnt_start_MI___s___s___x_
push eax
call fcn.004041cc
add esp, 0x14
jmp 0x4061ca
neg ecx
push 7
sbb ecx, ecx
pop ebx
and ecx, 0x557fc0
je 0x406183
xor eax, eax
mov dword [ebp - 0x18], ecx
inc eax
mov dword [ebp - 0x14], ebx
push eax
push ebx
mov dword [ebp - 0x10], eax
call fcn.0040b7e8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push str._InstallOmaha__launched_MI__waiting_for_exit_code_
push eax
call fcn.004041cc
pop ecx
pop ecx
mov ecx, edi
call fcn.004057b2
movzx ecx, byte [0x558e46]
neg ecx
mov dword [ebp - 0x24], eax
sbb ecx, ecx
and ecx, 0x557fc0
je 0x4061ca
xor eax, eax
mov dword [ebp - 0x18], ecx
inc eax
mov dword [ebp - 0x14], ebx
push eax
push ebx
mov dword [ebp - 0x10], eax
call fcn.0040b7e8
push dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push str._InstallOmaha__finished___x_
push eax
call fcn.004041cc
add esp, 0xc
test edi, edi
je 0x4061d5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00403f90
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00403f90
lea ecx, [ebp - 0xa4]
call fcn.0041a96e
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00403f90
jmp 0x406247
movzx ecx, byte [0x558e46]
neg ecx
sbb ecx, ecx
and ecx, 0x557fc0
je 0x406242
push 7
pop ebx
push 0xfffffffffffffffe
pop eax
push eax
push ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
call fcn.0040b7e8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push str._InstallOmaha__failed_to_unzip_tarball_file_
push eax
call fcn.004041cc
pop ecx
pop ecx
mov edi, 0x80004005
cmp dword [ebp - 0x64], 0
je 0x406266
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x68]
call fcn.0042749b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, dword [ebp - 0x64]
jne 0x40624f
lea ecx, [ebp - 0x68]
call fcn.0042754d
mov ecx, dword [ebp - 0x74]
lea ecx, [ecx - 0x10]
call fcn.00403f90
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x3c], 0
mov ebx, dword [ebp - 0x34]
jne 0x40628f
push ebx
call dword [ebp - 0x38]
lea ecx, [ebx - 0x10]
call fcn.00403f90
lea ecx, [esi - 0x10]
call fcn.00403f90
cmp byte [ebp - 0x4c], 0
mov esi, dword [ebp - 0x44]
jne 0x4062ac
push esi
call dword [ebp - 0x48]
lea ecx, [esi - 0x10]
call fcn.00403f90
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00403f90
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret