Function at 0x451950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5182bb
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x572c40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0xb66a80], 0
mov byte [0xb66ba1], 1
jne 0x451998
mov eax, 1
jmp 0x451c8e
push 0xb66a80
call fcn.00431640
push 0
call fcn.0048e759
mov dword [ebp - 0x8bc], eax
lea eax, [ebp - 0x8bc]
push eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x8b8], edx
push eax
call fcn.0048f1dc
mov eax, dword [ebp - 0x128]
add esp, 0x10
inc eax
mov ecx, 0xb657b8
push str.DeskSoftConfig
push dword [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x124]
add eax, 0x76c
push eax
movzx eax, word [0xb64290]
push 0
push eax
call fcn.00427790
push eax
push 0xb66a80
push str._s_s__04d._02d._02d._s
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00407090
lea eax, [ebp - 0x114]
push eax
push 3
push dword [0xb66ba4]
call fcn.0043c400
add esp, 0x30
test eax, eax
je 0x451a46
mov byte [0xb66ba1], 0
mov eax, 2
jmp 0x451c8e
push 0
call fcn.0048e759
add esp, 4
push 0
push 0x15180
push edx
push eax
call fcn.004817e0
push 0
push 0x15180
push edx
push eax
call fcn.00481eb0
push 0
push 0x120
push 0xb66a80
push 0xffffffffffffffff
push 0x51fef8
mov dword [0xb66b88], eax
mov dword [0xb66b8c], edx
call fcn.00433850
movaps xmm0, xmmword [0x5199d0]
add esp, 0x14
movups xmmword [ebp - 0x8b4], xmm0
mov byte [ebp - 0x8a4], 0
movzx eax, word [0xb64290]
mov ecx, 0xb657b8
push str.DeskSoftConfig
push 0
push eax
mov dword [ebp - 4], 0
call fcn.00427790
push eax
push 0xb66a80
lea eax, [ebp - 0x8a0]
push str._s_s_._s
push eax
call fcn.0043cc70
add esp, 0x14
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 1
call fcn.0043cee0
test al, al
je 0x451c24
nop dword [eax + eax]
push 0xffffffffffffffff
lea ecx, [ebp - 0x8a0]
call fcn.0043cdf0
push eax
lea eax, [ebp - 0x244]
push 0x104
push eax
call fcn.0048dea4
mov eax, dword [ebp - 0x89c]
add esp, 0x10
mov ecx, dword [ebp - 0x898]
xor edi, edi
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x8b4]
mov dword [ebp - 0x13c], ecx
lea ebx, [eax - 1]
test eax, eax
je 0x451bfc
nop dword [eax]
movd xmm1, ebx
cvtdq2pd xmm1, xmm1
mov ecx, dword [ebp - 0x8b0]
add ecx, 0x104
movd xmm0, edi
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
mulsd xmm1, qword [0x51b998]
addsd xmm1, qword [0x51b998]
cvttsd2si esi, xmm1
imul eax, esi, 0x10c
add eax, ecx
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
neg eax
mov ecx, esi
cmovns ecx, ebx
test eax, eax
mov ebx, ecx
cmovns edi, esi
mov eax, ebx
sub eax, edi
cmp eax, 2
jge 0x451b50
mov esi, dword [ebp - 0x8b0]
imul eax, edi, 0x10c
add eax, 0x104
add eax, esi
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
neg eax
js 0x451bfc
imul eax, ebx, 0x10c
add eax, 0x104
add eax, esi
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
neg eax
lea edi, [ebx + 1]
test eax, eax
jg 0x451bfc
mov edi, ebx
push 1
lea eax, [ebp - 0x244]
push edi
lea ecx, [ebp - 0x8b4]
push eax
call fcn.004224f0
lea ecx, [ebp - 0x8a0]
call fcn.0043cee0
test al, al
jne 0x451b00
mov eax, dword [0xb66b98]
mov edi, dword [ebp - 0x8b4]
mov ebx, dword [ebp - 0x8b0]
cmp eax, edi
jge 0x451c64
imul esi, eax, 0x10c
add esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub edi, eax
nop dword [eax]
push esi
call ebx
add esi, 0x10c
sub edi, 1
jne 0x451c50
mov ebx, dword [ebp - 0x8b0]
lea ecx, [ebp - 0x8a0]
mov byte [0xb66ba1], 0
call fcn.0043cdc0
test ebx, ebx
je 0x451c8c
cmp byte [ebp - 0x8a4], 0
jne 0x451c8c
push ebx
call fcn.00484ef8
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4