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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47cc5d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x49c0b8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea esi, [esp + 0x14]
call fcn.0041d4cc
and dword [esp + 0x28], 0
mov esi, 0x49fbc0
mov edi, esi
call fcn.00407844
or dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, esi
call fcn.00411631
lea eax, [esp + 0x14]
push str.update_rebootconfig.dat
push eax
mov ecx, esi
call fcn.00407885
pop ecx
pop ecx
mov edi, 0x49fbc4
mov dword [esp + 0x28], 1
call fcn.00407844
or dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00408f63
lea eax, [esp + 0x14]
push str.update_rebootconfig2.dat
push eax
mov ecx, esi
call fcn.00407885
pop ecx
pop ecx
mov edi, 0x49fbc8
mov dword [esp + 0x28], 2
call fcn.00407844
or dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00408f63
mov ebx, str.update_reboot_update_
lea eax, [esp + 0x14]
push ebx
push eax
mov ecx, esi
call fcn.00407885
pop ecx
pop ecx
mov edi, 0x49fbcc
mov dword [esp + 0x28], 3
call fcn.00407844
or dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00408f63
lea eax, [esp + 0x14]
push str.update_reboot_update2
push eax
mov ecx, esi
call fcn.00407885
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00408f63
test edi, edi
je 0x421cb5
lea eax, [esp + 0x14]
push str.update_reboot_update2_
push eax
mov ecx, esi
call fcn.00407885
mov dword [esp + 0x30], 4
mov eax, dword [eax]
push 1
push eax
call fcn.00441429
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00408f63
lea eax, [esp + 0x14]
push ebx
push eax
mov ecx, esi
call fcn.00407885
mov dword [esp + 0x30], 5
mov eax, dword [eax]
push 1
push eax
call fcn.00441429
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00408f63
push dword [0x49fbc4]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
push dword [0x49fbc8]
call edi
push 0
push dword [0x49fbc4]
call fcn.00446273
test eax, eax
pop ecx
pop ecx
je 0x421d45
push 0
push dword [0x49fbc8]
call fcn.00446273
test eax, eax
pop ecx
pop ecx
je 0x421d45
lea eax, [esp + 0x14]
push str.update_reboot_update2_
push eax
mov ecx, esi
call fcn.00407885
mov dword [esp + 0x30], 6
mov eax, dword [eax]
push 1
push eax
call fcn.00441429
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00408f63
lea eax, [esp + 0x18]
push ebx
push eax
mov ecx, esi
call fcn.00407885
mov dword [esp + 0x30], 7
mov eax, dword [eax]
push 1
push eax
call fcn.00441429
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00408f63
push 0
push dword [0x49fbc4]
call fcn.00446273
test eax, eax
pop ecx
pop ecx
jne 0x421d62
mov dword [0x49fbd0], 1
cmp dword [0x49fbd0], 0
push 3
je 0x421d75
push dword [0x49fbc4]
jmp 0x421d7b
push dword [0x49fbc8]
push 0x49fbd4
call fcn.00412d42
push dword [0x49fbd0]
mov esi, 0x49f920
push str.KRebootConfigWritter::Init_m_bUseBackPath:_d
call fcn.00415020
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret