Function at 0x4035d0
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.0040fe60
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x54], 0
mov eax, 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040f240
call fcn.00410d60
push eax
test eax, eax
jne 0x4037f3
lea eax, [ebp - 0x1c]
call fcn.00402cb0
lea eax, [ebp - 8]
call fcn.004033f0
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov eax, 5
call fcn.00410480
add eax, 5
lea ecx, [ebp - 0x54]
mov edx, 0x44668c
call fcn.004170e0
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.0040b2c0
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, 0x446794
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x68]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.0040b2c0
push 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4036c0
mov ecx, 0x4523a0
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4036cc
mov edx, 0x4523a0
mov eax, 0
call fcn.00402e50
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, 0x4467dc
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.0040b2c0
push 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x403712
mov ecx, 0x4523a0
mov edx, dword [ebp - 4]
test edx, edx
jne 0x40371e
mov edx, 0x4523a0
mov eax, 0
call fcn.00402e50
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.00416560
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x10]
call fcn.0040af50
mov ecx, str.false
mov edx, str.DisallowStartIfOnBatteries
lea eax, [ebp - 0x10]
call fcn.00403470
mov ecx, str.false
mov edx, str.StopIfGoingOnBatteries
lea eax, [ebp - 0x10]
call fcn.00403470
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00416650
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, 0x446794
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x68]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.0040b2c0
push 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4037b1
mov ecx, 0x4523a0
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4037bd
mov edx, 0x4523a0
mov eax, 0
call fcn.00402e50
lea eax, [ebp - 0x6c]
call fcn.004063e0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x6c]
call fcn.0040af50
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x4037e6
mov eax, 0x4523a0
push eax
call sub.kernel32.dll_DeleteFileA
or eax, eax
setne dl
mov al, dl
call fcn.0040f4c0
lea eax, [ebp - 0x6c]
call fcn.004063e0
lea eax, [ebp - 0x54]
call fcn.004063e0
lea eax, [ebp - 4]
call fcn.004063e0
lea eax, [ebp - 8]
call fcn.004063e0
lea eax, [ebp - 0xc]
call fcn.004063e0
lea eax, [ebp - 0x10]
call fcn.004063e0
mov edx, str._r_rtCorePathData_f
lea eax, [ebp - 0x1c]
call fcn.0040fec0
pop eax
test eax, eax
je 0x40383f
call fcn.0040f5f0
leave
ret