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

Disassembly:
mov eax, 0x46fcd5
call fcn.0044e5d8
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 0x417e57
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x417e60
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.004177c2
dec eax
pop ecx
cmp eax, 4
ja 0x417e99
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.00417d28
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 0x417e85
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.00417792
cmp dword [ebp - 0x10], 0xffffffff
push ebx
jne 0x417f32
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.00417792
cmp dword [ebp - 0x10], 0xffffffff
jne 0x417f53
or dword [ebp - 4], 0xffffffff
jmp 0x417e88
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x417f53
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 0x417f7f
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417e88
cmp dword [ebp - 0x14], 0xc
je 0x417f97
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x417e8a
movzx ecx, word [ebp - 0x20]
xor eax, eax
cmp ecx, ebx
je 0x41801d
cmp ecx, 0x4952
je 0x417ffa
cmp ecx, 0x4d42
je 0x417fdd
cmp ecx, 0x5a4d
jne 0x41804f
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.004179d6
add esp, 0x20
jmp 0x41804f
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.00417bca
jmp 0x41804c
mov ecx, 0x4646
cmp word [ebp - 0x1e], cx
jne 0x41804f
mov ecx, 0x4341
cmp word [ebp - 0x18], cx
jne 0x41804f
mov ecx, 0x4e4f
cmp word [ebp - 0x16], cx
jne 0x41804f
jmp 0x418031
cmp word [ebp - 0x1e], bx
je 0x41802a
cmp word [ebp - 0x1e], 2
jne 0x41804f
cmp word [ebp - 0x1c], 1
jb 0x41804f
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.00417ce6
add esp, 0x18
mov ebx, eax
jmp 0x417f85
push ebp
mov ebp, esp
pop ebp
jmp 0x417e30