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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a45a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
push 0xffffffffffffffff
lea ecx, [ebp - 0x230]
call fcn.0042f440
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
je 0x4228f1
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [ebp + 0x1c], 0
je 0x422900
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xffffffff
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x43c]
push ecx
call fcn.00421f00
add esp, 4
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0
jle 0x422961
cmp dword [ebp - 0x460], 5
jle 0x42293a
jmp 0x422961
mov dword [ebp - 0x448], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00422cd0
mov eax, dword [ebp - 0x448]
jmp 0x422c90
lea edx, [ebp - 0x43c]
push edx
call fcn.00421d20
add esp, 4
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
lea edx, [ebp - 0x43c]
push edx
push 0x104
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4229ce
mov dword [ebp - 0x44c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00422cd0
mov eax, dword [ebp - 0x44c]
jmp 0x422c90
push 0
push 0x80
push 3
push 0
push 1
push 0x80000100
lea ecx, [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00422d10
lea ecx, [ebp - 0x230]
call fcn.0043fc50
cmp eax, 0xffffffff
jne 0x422a6d
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00422d10
lea ecx, [ebp - 0x230]
call fcn.0043fc50
cmp eax, 0xffffffff
jne 0x422a6b
mov dword [ebp - 0x450], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00422cd0
mov eax, dword [ebp - 0x450]
jmp 0x422c90
jmp 0x422aab
push 0
lea eax, [ebp - 0x444]
push eax
push 0
lea ecx, [ebp - 0x230]
call fcn.0043fc50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x422aab
push 0
lea ecx, [ebp - 0x444]
push ecx
push 0
lea ecx, [ebp - 0x230]
call fcn.0043fc50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x14], 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x230]
call fcn.0043fc50
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422afb
mov dword [ebp - 0x454], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00422cd0
mov eax, dword [ebp - 0x454]
jmp 0x422c90
cmp dword [ebp - 0x14], 0xc
je 0x422b28
mov dword [ebp - 0x458], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00422cd0
mov eax, dword [ebp - 0x458]
jmp 0x422c90
mov dword [ebp - 0x10], 0
movzx ecx, word [ebp - 0x20]
mov dword [ebp - 0x464], ecx
cmp dword [ebp - 0x464], 0x4d42
jg 0x422b73
cmp dword [ebp - 0x464], 0x4d42
je 0x422c07
cmp dword [ebp - 0x464], 0
je 0x422c2f
cmp dword [ebp - 0x464], 0x4952
je 0x422bbc
jmp 0x422c6f
cmp dword [ebp - 0x464], 0x5a4d
je 0x422b84
jmp 0x422c6f
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x230]
call fcn.0043fc50
push eax
call fcn.00422300
add esp, 0x20
mov dword [ebp - 0x10], eax
jmp 0x422c6f
movzx eax, word [ebp - 0x1e]
cmp eax, 0x4646
jne 0x422c05
movzx ecx, word [ebp - 0x18]
cmp ecx, 0x4341
jne 0x422c05
movzx edx, word [ebp - 0x16]
cmp edx, 0x4e4f
jne 0x422c05
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x43c]
push edx
call fcn.00422840
add esp, 0x18
mov dword [ebp - 0x10], eax
jmp 0x422c6f
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x43c]
push edx
call fcn.004226d0
add esp, 0x18
mov dword [ebp - 0x10], eax
jmp 0x422c6f
movzx eax, word [ebp - 0x1e]
test eax, eax
je 0x422c40
movzx ecx, word [ebp - 0x1e]
cmp ecx, 2
jne 0x422c6f
movzx edx, word [ebp - 0x1c]
cmp edx, 1
jl 0x422c6f
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x43c]
push edx
call fcn.00422840
add esp, 0x18
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x45c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00422cd0
mov eax, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret