Function at 0x4011d1
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x49c]
sub esp, 0x51c
mov eax, dword [0x40d0f8]
push ebx
push esi
push edi
push 0x40
pop ebx
mov dword [ebp + 0x498], eax
xor eax, eax
mov byte [ebp + 0x290], 0
mov ecx, ebx
lea edi, [ebp + 0x291]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, str.KKLVASensor
lea edi, [ebp + 0x18c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3e
movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
lea edi, [ebp + 0x198]
rep stosd dword es:[edi], eax
mov esi, 0x104
push esi
lea eax, [ebp + 0x290]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
xor eax, eax
mov byte [ebp + 0x88], 0
mov ecx, ebx
lea edi, [ebp + 0x89]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x7c], 0
mov ecx, ebx
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp + 0x394], 0
mov ecx, ebx
lea edi, [ebp + 0x395]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp + 0x290]
push eax
push str._s_s_Now.dll
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.004038f6
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp + 0x290]
push eax
push str._s_s.dll
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004038f6
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x28
and dword [ebp - 0x80], 0
mov ebx, str._s_s_Old__d.dll
push dword [ebp - 0x80]
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp + 0x290]
push eax
push ebx
lea eax, [ebp + 0x394]
push esi
push eax
call fcn.004038f6
add esp, 0x18
lea eax, [ebp + 0x394]
push eax
call edi
test eax, eax
je 0x40130a
lea eax, [ebp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 0xa
jl 0x4012ce
and dword [ebp - 0x80], 0
push dword [ebp - 0x80]
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp + 0x290]
push eax
push ebx
lea eax, [ebp + 0x394]
push esi
push eax
call fcn.004038f6
add esp, 0x18
lea eax, [ebp + 0x394]
push eax
call edi
test eax, eax
je 0x401351
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 0xa
jl 0x401317
jmp 0x401376
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401376
lea eax, [ebp + 0x394]
push eax
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
and dword [ebp - 0x80], 0
push dword [ebp - 0x80]
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp + 0x290]
push eax
push ebx
lea eax, [ebp + 0x394]
push esi
push eax
call fcn.004038f6
add esp, 0x18
lea eax, [ebp + 0x394]
push eax
call edi
test eax, eax
je 0x4013b4
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 0xa
jl 0x40137a
jmp 0x4013d3
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4013d3
lea eax, [ebp + 0x394]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [ebp + 0x498]
pop edi
pop esi
pop ebx
call fcn.00402ce0
add ebp, 0x49c
leave
ret