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

Disassembly:
push 0xffffffffffffffff
push 0x492364
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov edi, str.InstallVerRecord.xml
lea esi, [esp + 0xf0]
call fcn.00401940
xor ebx, ebx
mov dword [esp + 0x118], ebx
lea eax, [esp + 0x7c]
push eax
call fcn.0040aed0
mov byte [esp + 0x118], 1
mov ecx, esi
call fcn.0048cdd0
lea ecx, [esp + 0xd4]
push ecx
push eax
lea edx, [esp + 0xa0]
lea ecx, [esp + 0x84]
call fcn.0040c6a0
add esp, 8
test al, al
je 0x46eeea
lea edx, [esp + 0x7c]
push edx
call fcn.0040d6f0
cmp al, bl
je 0x46eeea
push ecx
mov eax, esp
lea esi, [esp + 0x80]
mov dword [esp + 0x24], esp
mov dword [eax], str.InstallData
call fcn.0040c9e0
cmp al, bl
je 0x46eeea
mov ecx, dword [esp + 0xb8]
cmp ecx, ebx
je 0x46ec15
cmp dword [esp + 0xc8], 1
jne 0x46ec15
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xb4], ecx
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xc8], ecx
push ecx
mov eax, esp
lea esi, [esp + 0x80]
mov dword [esp + 0x24], esp
mov dword [eax], str.InstallType
call fcn.0040c9e0
cmp al, bl
je 0x46ec52
mov eax, esi
call fcn.0040d350
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], str.type
call fcn.0040c9e0
mov eax, esi
call fcn.0040d390
push ecx
mov eax, esp
lea esi, [esp + 0x80]
mov dword [esp + 0x24], esp
mov dword [eax], str.DevList
call fcn.0040c9e0
cmp al, bl
je 0x46eee1
mov eax, esi
call fcn.0040d350
push 1
call fcn.0040d0c0
test eax, eax
je 0x46eed8
mov ebp, dword [sym.imp.pcidrv.dll_PCIDrv_GetDeviceProperty]
nop
push 0x58
call fcn.004710bf
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x118], 2
cmp eax, ebx
je 0x46ecb4
push eax
call fcn.0046e480
mov edi, eax
jmp 0x46ecb6
xor edi, edi
mov byte [esp + 0x118], 1
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x24], edi
call fcn.0040b030
mov byte [esp + 0x118], 3
push eax
mov ecx, edi
call fcn.0048d250
mov byte [esp + 0x118], 1
cmp dword [esp + 0x40], 8
jb 0x46ecff
mov eax, dword [esp + 0x2c]
push eax
call fcn.00471099
add esp, 4
xor ecx, ecx
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
lea edx, [esp + 0x64]
mov dword [eax], str.OldVer
push edx
lea eax, [esp + 0x84]
mov esi, 7
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
call fcn.0040c350
mov byte [esp + 0x118], 4
push eax
lea ecx, [edi + 0x1c]
call fcn.0048d250
mov byte [esp + 0x118], 1
cmp dword [esp + 0x78], 8
jb 0x46ed5f
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00471099
add esp, 4
push ecx
mov eax, esp
mov dword [eax], str.NewVer
mov dword [esp + 0x28], esp
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x84]
xor edx, edx
push ecx
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], dx
call fcn.0040c350
mov byte [esp + 0x118], 5
push eax
lea ecx, [edi + 0x38]
call fcn.0048d250
mov byte [esp + 0x118], 1
cmp dword [esp + 0x5c], 8
jb 0x46edc0
mov edx, dword [esp + 0x48]
push edx
call fcn.00471099
add esp, 4
xor eax, eax
mov ecx, edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
call fcn.0048cdd0
push eax
call dword [sym.imp.pcidrv.dll_PCIDrv_GetDevHandleByHWID]
push ebx
push 4
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
push 0x1a
push esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
je 0x46ee02
cmp dword [esp + 0x18], ebx
jg 0x46eeaf
push ebx
push 4
lea edx, [esp + 0x20]
push edx
push 0x1b
push esi
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
je 0x46ee21
cmp dword [esp + 0x18], ebx
jg 0x46eeaf
push ebx
push 4
lea eax, [esp + 0x20]
push eax
push 9
push esi
mov dword [esp + 0x2c], 0xffffffff
call ebp
test eax, eax
je 0x46ee41
cmp dword [esp + 0x18], 0x16
je 0x46eeaf
push ebx
push 4
lea ecx, [esp + 0x20]
push ecx
push 9
push esi
mov dword [esp + 0x2c], 0xffffffff
call ebp
test eax, eax
je 0x46ee7a
cmp dword [esp + 0x18], ebx
jne 0x46ee7a
lea ecx, [esp + 0x24]
call fcn.0046b6f0
test al, al
je 0x46ee7a
lea ecx, [esp + 0x24]
call fcn.0046b730
test al, al
je 0x46eeaf
push esi
call dword [sym.imp.pcidrv.dll_BK_GetBackupInfoCountEx]
push ebx
test eax, eax
jle 0x46eea2
mov ecx, 0x1b5c
call section..text
mov byte [edi + 0x54], 1
add esp, 4
lea edi, [esp + 0x20]
call fcn.0046f420
jmp 0x46eec2
mov ecx, 0x1b5d
call section..text
add esp, 4
cmp edi, ebx
je 0x46eec2
push edi
call fcn.0046e640
push edi
call fcn.00471099
add esp, 4
push 1
lea esi, [esp + 0x80]
call fcn.0040d0c0
test eax, eax
jne 0x46ec90
lea eax, [esp + 0x7c]
call fcn.0040d390
lea eax, [esp + 0x7c]
call fcn.0040d390
lea ecx, [esp + 0xf0]
call fcn.0048cdb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ef33
push str.Find_InstallVerRecord.xml_file_r_n
push 0x96
push str..RebootRestoreInstallData_.cpp
push 8
call fcn.0048ccc0
push eax
call fcn.0048c3e0
add esp, 0x14
lea ecx, [esp + 0xf0]
call fcn.0048cdb0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x4e56dc]
sub edx, dword [0x4e56d8]
sar edx, 2
test edx, edx
seta byte [esp + 0x1f]
mov byte [esp + 0x118], bl
lea eax, [esp + 0x7c]
push eax
call fcn.0040af80
mov dword [esp + 0x118], 0xffffffff
lea ecx, [esp + 0xf0]
call fcn.0048cfe0
mov al, byte [esp + 0x1f]
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00470f4c
add esp, 0x108
ret