Function at 0x41402e
Capabilities:
Read file on windows
Timestomp file

Disassembly:
mov eax, 0x479ac9
call fcn.00457fe8
sub esp, 0x42c
push ebx
push esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0x10], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x413e2f
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x413e38
mov dword [eax], edi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x230]
push eax
call esi
lea eax, [ebp - 0x230]
push eax
call fcn.0041379a
dec eax
pop ecx
cmp eax, 4
ja 0x413e71
mov dword [ebp - 4], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea eax, [ebp - 0x230]
push eax
call fcn.00413d00
pop ecx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x438]
push eax
call esi
push ebx
lea eax, [ebp - 0x230]
push eax
push 0x104
push ebx
lea eax, [ebp - 0x438]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x413e5d
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov edi, 0x80
push edi
push 3
push ebx
push 1
push 0x80000100
lea eax, [ebp - 0x230]
push eax
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0041376a
cmp dword [ebp - 0x10], 0xffffffff
push ebx
jne 0x413f0a
push edi
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x230]
push eax
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0041376a
cmp dword [ebp - 0x10], 0xffffffff
jne 0x413f2b
or dword [ebp - 4], 0xffffffff
jmp 0x413e60
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x413f2b
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x14]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413f57
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413e60
cmp dword [ebp - 0x14], 0xc
je 0x413f6f
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x413e62
movzx ecx, word [ebp - 0x20]
xor eax, eax
cmp ecx, ebx
je 0x413ff5
cmp ecx, 0x4952
je 0x413fd2
cmp ecx, 0x4d42
je 0x413fb5
cmp ecx, 0x5a4d
jne 0x414027
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004139ae
add esp, 0x20
jmp 0x414027
push dword [ebp + 0x24]
lea eax, [ebp - 0x230]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00413ba2
jmp 0x414024
mov ecx, 0x4646
cmp word [ebp - 0x1e], cx
jne 0x414027
mov ecx, 0x4341
cmp word [ebp - 0x18], cx
jne 0x414027
mov ecx, 0x4e4f
cmp word [ebp - 0x16], cx
jne 0x414027
jmp 0x414009
cmp word [ebp - 0x1e], bx
je 0x414002
cmp word [ebp - 0x1e], 2
jne 0x414027
cmp word [ebp - 0x1c], 1
jb 0x414027
push dword [ebp + 0x24]
lea eax, [ebp - 0x230]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00413cbe
add esp, 0x18
mov ebx, eax
jmp 0x413f5d
push ebp
mov ebp, esp
pop ebp
jmp 0x413e08