Function at 0x411ae0
Capabilities:
Check if file exists
Delete file
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], 1
lea eax, [ebp - 0xec]
push 0x64
push 0
push eax
call fcn.004486f0
push 0xff
lea eax, [ebp - 0x1ef]
mov byte [ebp - 0x1f0], 0
push 0
push eax
call fcn.004486f0
add esp, 0x18
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0x461694
mov dword [ebp - 0x50], 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1f0]
push 0
push 0
push 0
push 0
push 0x100
push eax
push 0
lea eax, [ebp - 0xf0]
mov ecx, ebx
push eax
call fcn.004148a0
mov esi, eax
test esi, esi
jne 0x411ed9
mov eax, dword [ebp + 0x10]
cmp dword [eax - 8], esi
jne 0x411bda
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp + 0x10]
call fcn.00408f90
mov eax, dword [ebp + 0x10]
cmp dword [eax - 8], esi
jle 0x411bf4
push 0x3a
push eax
call fcn.0043a7c0
add esp, 8
test eax, eax
je 0x411bf4
mov ecx, dword [ebp + 0x10]
sub eax, ecx
sar eax, 1
jns 0x411c45
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + 0x58]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004093a0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x10]
push eax
call fcn.00408f00
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x411c42
lea ecx, [eax - 0x20]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x411c42
mov eax, dword [ebp - 0x10]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx - 8]
add eax, eax
mov dword [ecx - 4], eax
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411c78
cmp dword [ebp + 8], 0
je 0x411dd5
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 8]
add ecx, ecx
mov dword [eax - 4], ecx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0x400000
mov dword [ebp - 0x44], 0
ja 0x411cf4
jb 0x411c97
cmp dword [ebp - 0x40], 0x400000
jae 0x411cf4
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call dword [eax + 0x18]
test eax, eax
je 0x411ddf
add dword [0x47bce8], 0x400000
push 0x400000
adc dword [0x47bcec], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x411ddf
mov dword [ebp - 0x48], 0x400000
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x400000
mov dword [ebp - 0x3c], 0
push ecx
lea eax, [ebp + 0xc]
mov dword [ebp + 8], esp
mov ecx, esp
push eax
call fcn.00405440
mov byte [ebp - 4], 6
push 0
push 0
push 0
mov byte [ebp - 4], 4
mov ecx, ebx
call fcn.00424630
mov esi, eax
test esi, esi
jne 0x411ed9
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 8]
add ecx, ecx
mov dword [eax - 4], ecx
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x411d3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
test esi, esi
cmovne eax, esi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x411ed1
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x411ed1
cmp eax, 0xffffffff
je 0x411ed1
xor edi, edi
push 0x400000
push dword [ebp - 0x50]
mov ecx, ebx
call fcn.00427320
mov esi, eax
test esi, esi
js 0x411e40
je 0x411e40
mov ecx, dword [ebp - 0x50]
mov edx, esi
push edi
call fcn.0040d0b0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x411de9
cmp ecx, 0xffffffff
je 0x411de9
push 0
lea eax, [ebp - 0x34]
push eax
push esi
push dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [ebp + 8], eax
jmp 0x411df0
mov esi, 0x50
jmp 0x411ed9
mov esi, 0x4e21
jmp 0x411ed9
mov dword [ebp + 8], 0
mov edi, dword [ebx + 0x5c]
test edi, edi
je 0x411e2a
mov eax, esi
cdq
add dword [edi + 0x10], eax
adc dword [edi + 0x14], edx
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebp + 8]
add dword [eax + 0x18], edx
adc dword [eax + 0x1c], 0
mov eax, esi
mov ecx, dword [ebx + 0x5c]
sub eax, edx
add dword [ecx + 0x20], eax
adc dword [ecx + 0x24], 0
mov ecx, dword [ebx + 0x5c]
call fcn.004116b0
test eax, eax
je 0x411e36
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x10]
test esi, esi
jle 0x411e43
jmp 0x411d80
mov esi, 0x4c7
jmp 0x411ed9
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x80]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0xe0]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x38], edx
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x34], ecx
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x30]
call fcn.0040cc70
mov ecx, ebx
call fcn.0040cca0
cmp edi, dword [ebp - 0xdc]
je 0x411ecd
mov esi, 0x17
jmp 0x411ed9
xor esi, esi
jmp 0x411ed9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], 0x461694
test eax, eax
je 0x411f00
cmp eax, 0xffffffff
je 0x411f00
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x411f35
cmp eax, 0xffffffff
je 0x411f35
cmp dword [ebp - 0x2c], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x411f3b
push eax
call edi
jmp 0x411f3b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x411f5b
cmp eax, 0xffffffff
je 0x411f5b
cmp dword [ebp - 0x2c], 0
jne 0x411f5b
push eax
call edi
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
or edx, 0xffffffff
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x411f97
lea ecx, [eax - 0x20]
mov eax, edx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x411f97
mov eax, dword [ebp + 0xc]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x411fc7
add eax, 0xffffffe0
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x411fc7
mov ecx, dword [ebp + 0x10]
add ecx, 0xffffffe0
push ecx
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc