Function at 0x4072f2
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x14c
lea ebp, [esp - 4]
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp + 0x14c], eax
push 0x5c
mov eax, 0x4a2091
call fcn.00486a61
mov eax, dword [ebp + 0x158]
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.CInstallerHelper::GetAVGMachineID__szPath
lea esi, [ebp - 0x48]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [ebp + 0x15c]
mov byte [ebp - 4], 1
call fcn.00404975
pop ecx
xor ebx, ebx
push ebx
push 1
call fcn.00404f5a
xor eax, eax
mov dword [ebp + 0x12c], 7
mov dword [ebp + 0x128], ebx
mov word [ebp + 0x118], ax
push str.AVG_Secure_Search
lea esi, [ebp + 0x88]
mov byte [ebp - 4], 2
call fcn.00404db2
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, esi
push eax
lea eax, [ebp + 0x44]
push eax
mov byte [ebp - 4], 3
call fcn.004054da
mov edi, 0x4aec58
push edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00404db2
push str.MachineID
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00404db2
mov eax, esi
push eax
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.004056c9
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x114]
mov byte [ebp - 4], 7
call fcn.00404ae1
push ebx
push 1
lea esi, [ebp - 0x68]
call fcn.00404f5a
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.00404f5a
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00404f5a
push edi
lea eax, [ebp + 0x114]
call fcn.00404e3a
test eax, eax
je 0x40744e
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0x114]
push eax
call fcn.004047eb
lea ecx, [ebp + 0x44]
call fcn.004049f3
push ebx
push 1
lea esi, [ebp + 0x88]
call fcn.00404f5a
push ebx
push 1
lea esi, [ebp + 0x114]
call fcn.00404f5a
push ebx
push 1
jmp 0x4077df
xor eax, eax
mov dword [ebp + 0x148], 7
mov dword [ebp + 0x144], ebx
mov word [ebp + 0x134], ax
lea eax, [ebp + 0x15c]
push eax
lea esi, [ebp + 0xc0]
mov byte [ebp - 4], 8
call fcn.004047eb
push str.TEMP
lea ecx, [ebp + 0xf8]
mov byte [ebp - 4], 9
call fcn.0040b6ee
pop ecx
mov esi, str.MachineIdCreator.exe
push esi
lea eax, [ebp + 0xf8]
push eax
mov byte [ebp - 4], 0xa
call fcn.004048a5
push str.ProgramFiles
lea ecx, [ebp + 0xdc]
call fcn.0040b6ee
pop ecx
push esi
lea eax, [ebp + 0xdc]
push eax
mov byte [ebp - 4], 0xb
call fcn.004048a5
cmp dword [ebp + 0xd8], 8
mov eax, dword [ebp + 0xc4]
jae 0x4074df
lea eax, [ebp + 0xc4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x407519
push str.CInstallerHelper::GetAVGMachineID___exists_in_original_path
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0xc
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0xb
call fcn.00404f5a
lea eax, [ebp + 0xc0]
jmp 0x4075a3
cmp dword [ebp + 0x110], 8
mov eax, dword [ebp + 0xfc]
jae 0x40752e
lea eax, [ebp + 0xfc]
push eax
call esi
test eax, eax
je 0x40755f
push str.CInstallerHelper::GetAVGMachineID___exists_in_temp
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0xd
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0xb
call fcn.00404f5a
lea eax, [ebp + 0xf8]
jmp 0x4075a3
cmp dword [ebp + 0xf4], 8
mov eax, dword [ebp + 0xe0]
jae 0x407574
lea eax, [ebp + 0xe0]
push eax
call esi
test eax, eax
je 0x4075b1
push str.CInstallerHelper::GetAVGMachineID__texists_in_prog_files
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0xe
call fcn.00404e64
push ebx
push 1
mov byte [ebp - 4], 0xb
call fcn.00404f5a
lea eax, [ebp + 0xdc]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x130]
call fcn.00404ae1
lea esi, [ebp - 0x2c]
cmp dword [ebp + 0x144], ebx
jne 0x4075ef
push str.CInstallerHelper::GetAVGMachineID__file_does_not_exists._quit.
call fcn.00404db2
mov byte [ebp - 4], 0xf
call fcn.00404e64
xor edi, edi
push ebx
inc edi
push edi
mov byte [ebp - 4], 0xb
call fcn.00404f5a
mov esi, dword [ebp - 0x10]
push str.Unknown
call fcn.00404db2
jmp 0x407787
push str.MachineIdCreator_GetAVGMachineID__dll_exists_in:
call fcn.00404db2
lea eax, [ebp - 0x2c]
push eax
lea ebx, [ebp + 0x130]
mov byte [ebp - 4], 0x10
call fcn.00404975
pop ecx
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.00404f5a
push edi
lea esi, [ebp + 0xa4]
call fcn.00404db2
mov byte [ebp - 4], 0x11
cmp byte [ebp + 0x178], bl
je 0x407643
push str._CREATEFILEONFAIL
mov eax, esi
push eax
call fcn.00404d8d
cmp dword [ebp + 0xbc], 8
mov eax, dword [ebp + 0xa8]
jae 0x407658
lea eax, [ebp + 0xa8]
cmp dword [ebp + 0x148], 8
mov ecx, dword [ebp + 0x134]
jae 0x40766d
lea ecx, [ebp + 0x134]
xor edi, edi
inc edi
push edi
push eax
call fcn.00408baf
pop ecx
pop ecx
test al, al
jne 0x4076b2
push str.CInstallerHelper::GetAVGMachineID___failed_running_MAchineIdCreator._quits.
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov byte [ebp - 4], 0x12
call fcn.00404e64
push ebx
push edi
mov byte [ebp - 4], 0x11
call fcn.00404f5a
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0x114]
push eax
call fcn.004047eb
jmp 0x40777a
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp + 0x88]
push eax
lea eax, [ebp]
push eax
call fcn.004054da
push str.Unknown
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0x13
call fcn.00404db2
push str._machine_id
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
call fcn.00404db2
mov eax, esi
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 0x15
call fcn.004056c9
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x114]
mov byte [ebp - 4], 0x16
call fcn.00404ae1
push ebx
push edi
lea esi, [ebp - 0x68]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp - 0x2c]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0x13
call fcn.00404f5a
push str.CInstallerHelper::GetAVGMachineID__machineId
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [ebp + 0x114]
mov byte [ebp - 4], 0x17
call fcn.00404975
pop ecx
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push edi
mov byte [ebp - 4], 0x13
call fcn.00404f5a
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0x114]
push eax
call fcn.004047eb
lea ecx, [ebp]
call fcn.004049f3
push ebx
push edi
lea esi, [ebp + 0xa4]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0xdc]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0xf8]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0xc0]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x130]
call fcn.00404f5a
lea ecx, [ebp + 0x44]
call fcn.004049f3
push ebx
push edi
lea esi, [ebp + 0x88]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x114]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0x15c]
call fcn.00404f5a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x14c]
xor ecx, ebp
call fcn.004812cc
add ebp, 0x150
leave
ret