Function at 0x46dba0
Capabilities:
Check if file exists
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4923d9
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov edi, str.InstallRecord.xml
lea esi, [esp + 0xc4]
call fcn.00401940
xor ebx, ebx
mov dword [esp + 0xf0], ebx
lea eax, [esp + 0x54]
push eax
call fcn.0040aed0
mov byte [esp + 0xf0], 1
mov ecx, esi
call fcn.0048cdd0
lea ecx, [esp + 0xac]
push ecx
push eax
lea edx, [esp + 0x78]
lea ecx, [esp + 0x5c]
call fcn.0040c6a0
add esp, 8
test al, al
je 0x46de2d
lea edx, [esp + 0x54]
push edx
call fcn.0040d6f0
cmp al, bl
je 0x46de2d
push ecx
mov eax, esp
lea esi, [esp + 0x58]
mov dword [esp + 0x18], esp
mov dword [eax], str.InstallData
call fcn.0040c9e0
cmp al, bl
je 0x46de2d
mov ecx, dword [esp + 0x90]
cmp ecx, ebx
je 0x46dcb1
cmp dword [esp + 0xa0], 1
jne 0x46dcb1
mov eax, dword [esp + 0x94]
mov dword [esp + 0x8c], ecx
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa0], ecx
push ecx
mov eax, esp
lea esi, [esp + 0x58]
mov dword [esp + 0x18], esp
mov dword [eax], str.InstallType
call fcn.0040c9e0
cmp al, bl
je 0x46dceb
mov eax, esi
call fcn.0040d350
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], str.type
call fcn.0040c9e0
mov eax, esi
call fcn.0040d390
push ecx
mov eax, esp
lea esi, [esp + 0x58]
mov dword [esp + 0x18], esp
mov dword [eax], str.DevList
call fcn.0040c9e0
cmp al, bl
je 0x46de24
mov eax, esi
call fcn.0040d350
push 1
call fcn.0040d0c0
test eax, eax
je 0x46de1b
nop
push 0x3c
call fcn.004710bf
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0xf0], 2
cmp eax, ebx
je 0x46dd44
push eax
call fcn.00465e10
mov esi, eax
jmp 0x46dd46
xor esi, esi
mov byte [esp + 0xf0], 1
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x18], esi
call fcn.0040b030
mov byte [esp + 0xf0], 3
push eax
lea ecx, [esi + 4]
call fcn.0048d250
mov byte [esp + 0xf0], 1
mov edi, 8
cmp dword [esp + 0x34], edi
jb 0x46dd91
mov eax, dword [esp + 0x20]
push eax
call fcn.00471099
add esp, 4
xor ecx, ecx
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x3c]
mov dword [eax], str.SelVer
push edx
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
call fcn.0040c350
mov byte [esp + 0xf0], 4
push eax
lea ecx, [esi + 0x20]
call fcn.0048d250
mov byte [esp + 0xf0], 1
cmp dword [esp + 0x50], edi
jb 0x46ddec
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00471099
add esp, 4
xor edx, edx
lea edi, [esp + 0x14]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
call fcn.0046dfd0
push 1
lea esi, [esp + 0x58]
call fcn.0040d0c0
test eax, eax
jne 0x46dd20
lea eax, [esp + 0x54]
call fcn.0040d390
lea eax, [esp + 0x54]
call fcn.0040d390
mov byte [esp + 0xf0], bl
lea eax, [esp + 0x54]
push eax
call fcn.0040af80
lea ecx, [esp + 0xc4]
call fcn.0048cdb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46de87
push str.Find_InstallRecord.xml_file_r_n
push 0xc0
push str..RebootInstallData.cpp
push 8
call fcn.0048ccc0
push eax
call fcn.0048c3e0
add esp, 0x14
lea ecx, [esp + 0xc4]
call fcn.0048cdb0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x4e56c4]
sub ecx, dword [0x4e56c0]
sar ecx, 2
test ecx, ecx
seta bl
mov dword [esp + 0xf0], 0xffffffff
lea ecx, [esp + 0xc4]
call fcn.0048cfe0
mov al, bl
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret