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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a049
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x2e4], 0
lea eax, [ebp - 0x2ed]
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x32c], eax
mov dword [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00402ad2
mov dword [ebp - 4], 2
lea eax, [ebp - 0x2f9]
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0x330], eax
mov byte [ebp - 4], 3
push 0
push 0
lea ecx, [ebp - 0xac]
call fcn.00402ad2
mov byte [ebp - 4], 4
lea eax, [ebp - 0x305]
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x334], eax
mov byte [ebp - 4], 5
push 0
push 0
lea ecx, [ebp - 0x90]
call fcn.00402ad2
mov byte [ebp - 4], 6
lea eax, [ebp - 0x311]
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x338], eax
mov byte [ebp - 4], 7
push 0
push 0
lea ecx, [ebp - 0x6c]
call fcn.00402ad2
mov byte [ebp - 4], 8
and dword [ebp - 0x74], 0
xor eax, eax
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
and dword [ebp - 0x50], 0
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
mov byte [ebp - 0x1b4], 0
push 0x104
push 0
lea eax, [ebp - 0x1b3]
push eax
call fcn.0041d130
add esp, 0xc
push 0x104
lea eax, [ebp - 0x1b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp - 0x33c]
inc eax
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x33c]
mov al, byte [eax]
mov byte [ebp - 0x341], al
inc dword [ebp - 0x33c]
cmp byte [ebp - 0x341], 0
jne 0x419c1d
mov eax, dword [ebp - 0x33c]
sub eax, dword [ebp - 0x340]
mov dword [ebp - 0x348], eax
push dword [ebp - 0x348]
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0xac]
call fcn.00405fab
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041968b
pop ecx
pop ecx
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp - 0x34c]
mov dword [ebp - 0x318], eax
mov byte [ebp - 4], 9
push dword [ebp - 0x318]
lea ecx, [ebp - 0xac]
call fcn.00406f0c
mov byte [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402ad2
mov byte [ebp - 4], 8
push dword [ebp + 0xc]
lea ecx, [ebp - 0xac]
call fcn.004169b1
push eax
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x350]
inc eax
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x350]
mov al, byte [eax]
mov byte [ebp - 0x355], al
inc dword [ebp - 0x350]
cmp byte [ebp - 0x355], 0
jne 0x419ce6
mov eax, dword [ebp - 0x350]
sub eax, dword [ebp - 0x354]
mov dword [ebp - 0x35c], eax
push dword [ebp - 0x35c]
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0xac]
call fcn.00405fab
lea eax, [ebp - 0xac]
push eax
call fcn.0041972a
pop ecx
lea ecx, [ebp - 0xac]
call fcn.004169b1
mov dword [ebp - 0x31c], eax
push dword [ebp - 0x31c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x419fd9
and dword [ebp - 0x1b8], 0
jmp 0x419d75
mov eax, dword [ebp - 0x1b8]
inc eax
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 2
jge 0x419f5f
mov byte [ebp - 0x2c4], 0
push 0x103
push 0
lea eax, [ebp - 0x2c3]
push eax
call fcn.0041d130
add esp, 0xc
push dword [ebp - 0x1b8]
push str._d.log
push 0x104
lea eax, [ebp - 0x2c4]
push eax
call fcn.0041900d
add esp, 0x10
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp dword [ebp - 0x1b8], 0
jne 0x419de9
lea eax, [ebp - 0x90]
mov dword [ebp - 0x360], eax
jmp 0x419df2
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x364], eax
mov eax, dword [ebp - 0x364]
inc eax
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x364]
mov al, byte [eax]
mov byte [ebp - 0x369], al
inc dword [ebp - 0x364]
cmp byte [ebp - 0x369], 0
jne 0x419e23
mov eax, dword [ebp - 0x364]
sub eax, dword [ebp - 0x368]
mov dword [ebp - 0x370], eax
push dword [ebp - 0x370]
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.00405fab
mov eax, dword [ebp - 0x2d0]
cmp dword [eax + 0x14], 0x10
jb 0x419e86
mov eax, dword [ebp - 0x2d0]
mov eax, dword [eax]
mov dword [ebp - 0x374], eax
jmp 0x419e92
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x374], eax
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0xffffffff
je 0x419f16
cmp dword [ebp - 0x1b8], 0
je 0x419ed3
lea eax, [ebp - 0x50]
mov dword [ebp - 0x378], eax
jmp 0x419edc
lea eax, [ebp - 0x74]
mov dword [ebp - 0x378], eax
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x2d4], eax
push dword [ebp - 0x2d4]
push 0
push 0
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1b4]
push eax
call fcn.0041a3b3
pop ecx
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0x20000
jge 0x419f4d
push dword [0x43b6a8]
push 0
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x48]
call fcn.00406137
jmp 0x419f5f
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
jmp 0x419d68
cmp dword [ebp - 0x1b8], 2
jne 0x419fd9
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x419f85
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x37c], eax
jmp 0x419f91
lea eax, [ebp - 0x90]
mov dword [ebp - 0x37c], eax
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x2e0], eax
push dword [0x43b6a8]
push 0
push dword [ebp - 0x2e0]
lea ecx, [ebp - 0x48]
call fcn.00406137
cmp dword [ebp - 0x34], 0x10
jb 0x419fc4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x380], eax
jmp 0x419fcd
lea eax, [ebp - 0x48]
mov dword [ebp - 0x380], eax
push dword [ebp - 0x380]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406e42
mov eax, dword [ebp - 0x2e4]
or eax, 1
mov dword [ebp - 0x2e4], eax
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.00402ad2
mov byte [ebp - 4], 6
mov byte [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.00402ad2
mov byte [ebp - 4], 4
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0xac]
call fcn.00402ad2
mov byte [ebp - 4], 2
mov dword [ebp - 4], 0xe
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00402ad2
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c438
leave
ret