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

Disassembly:
mov eax, 0x47b23c
call fcn.00459afc
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 0x412c64
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x412c6d
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.004125cf
dec eax
pop ecx
cmp eax, 4
ja 0x412ca6
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.00412b35
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 0x412c92
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.0041259f
cmp dword [ebp - 0x10], 0xffffffff
push ebx
jne 0x412d3f
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.0041259f
cmp dword [ebp - 0x10], 0xffffffff
jne 0x412d60
or dword [ebp - 4], 0xffffffff
jmp 0x412c95
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x412d60
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 0x412d8c
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412c95
cmp dword [ebp - 0x14], 0xc
je 0x412da4
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x412c97
movzx ecx, word [ebp - 0x20]
xor eax, eax
cmp ecx, ebx
je 0x412e2a
cmp ecx, 0x4952
je 0x412e07
cmp ecx, 0x4d42
je 0x412dea
cmp ecx, 0x5a4d
jne 0x412e5c
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.004127e3
add esp, 0x20
jmp 0x412e5c
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.004129d7
jmp 0x412e59
mov ecx, 0x4646
cmp word [ebp - 0x1e], cx
jne 0x412e5c
mov ecx, 0x4341
cmp word [ebp - 0x18], cx
jne 0x412e5c
mov ecx, 0x4e4f
cmp word [ebp - 0x16], cx
jne 0x412e5c
jmp 0x412e3e
cmp word [ebp - 0x1e], bx
je 0x412e37
cmp word [ebp - 0x1e], 2
jne 0x412e5c
cmp word [ebp - 0x1c], 1
jb 0x412e5c
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.00412af3
add esp, 0x18
mov ebx, eax
jmp 0x412d92
push ebp
mov ebp, esp
pop ebp
jmp 0x412c3d