Function at 0x4a7540
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567710
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, str.InstallRecord.xml
lea ecx, [ebp - 0x40]
call fcn.00411c40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.0044d7e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0xd4]
call fcn.0046fe60
test al, al
je 0x4a7830
push ecx
mov eax, esp
lea ecx, [ebp - 0xd4]
mov dword [eax], 0x5b9ccc
call fcn.004708b0
test al, al
je 0x4a7830
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x4a7620
cmp dword [ebp - 0x90], 1
jne 0x4a7620
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], 0
setne al
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x90], eax
push ecx
mov eax, esp
lea ecx, [ebp - 0xd4]
mov dword [eax], 0x5b9ce4
call fcn.004708b0
test al, al
je 0x4a7662
lea ecx, [ebp - 0xd4]
call fcn.004713e0
push ecx
mov eax, esp
lea ecx, [ebp - 0xd4]
mov dword [eax], 0x5b9cfc
call fcn.004708b0
lea ecx, [ebp - 0xd4]
call fcn.00471420
push ecx
mov eax, esp
lea ecx, [ebp - 0xd4]
mov dword [eax], 0x5b9d08
call fcn.004708b0
test al, al
je 0x4a7825
lea ecx, [ebp - 0xd4]
call fcn.004713e0
push 1
lea ecx, [ebp - 0xd4]
call fcn.00471140
test eax, eax
je 0x4a781a
nop
push 0x28
call fcn.005120b2
mov edi, eax
add esp, 4
mov dword [ebp - 0xe0], edi
mov byte [ebp - 4], 2
lea esi, [edi + 4]
mov dword [ebp - 0xe4], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov byte [ebp - 4], 4
mov dword [edi], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xd8], edi
call fcn.004a7ae0
mov byte [ebp - 4], 5
cmp esi, eax
je 0x4a7705
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004048d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4a771e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x44], 7
push ecx
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0xd4]
mov eax, esp
mov dword [ebp - 0x48], 0
mov dword [eax], str.SelDrvID
lea eax, [ebp - 0x70]
push eax
call fcn.00474880
mov byte [ebp - 4], 6
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x4a7785
push 0xffffffffffffffff
push 0
push eax
call fcn.004048d0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4a779e
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x60], 0
call fcn.005351ca
add esp, 4
mov dword [edi + 0x20], eax
lea eax, [ebp - 0xd8]
mov dword [edi + 0x24], edx
push eax
call fcn.004a7910
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a77f1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x14], 7
push 1
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00471140
test eax, eax
jne 0x4a76a0
lea ecx, [ebp - 0xd4]
call fcn.00471420
lea ecx, [ebp - 0xd4]
call fcn.00471420
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.0044d5a0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a78ae
mov eax, dword [0x618d28]
test eax, eax
jne 0x4a7882
push 0x70
call fcn.005120b2
add esp, 4
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.00409ee0
mov byte [ebp - 4], 0
mov dword [0x618d28], eax
push str.Find_InstallRecord.xml_file_r_n
push 0xba
push str.RebootInstallData.cpp
push 8
push eax
call fcn.0040a3e0
add esp, 0x14
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x61e20c]
sub eax, dword [0x61e208]
sar eax, 2
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4a78dd
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov al, bl
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret