Function at 0x4093bf
Capabilities:
Clear file content
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
or dword [ebp - 4], 0xffffffff
call fcn.0040858f
test eax, eax
je 0x4093ec
push dword [0x4f11b0]
call fcn.00413630
push eax
call fcn.0040fbdf
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
push dword [0x4f11b0]
call fcn.004107d8
xor esi, esi
pop ecx
cmp dword [0x424f94], esi
jne 0x4095f1
cmp dword [0x424f9c], 1
push ebx
push edi
mov ebx, 0x4f11c8
jg 0x409446
lea eax, [ebp - 0x28]
push eax
lea edi, [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.0040927a
pop ecx
push esi
push 0x80
push 3
push esi
push 2
push 0x40000000
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
jmp 0x409449
mov dword [ebp - 0xc], esi
mov eax, dword [0x4e5060]
mov eax, dword [eax + 0x24]
mov esi, 0x4e5064
mov edi, 0x424f80
test al, 0x5f
je 0x409491
and eax, 0x7f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x409491
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
push esi
call fcn.0040ab01
add esp, 0xc
push eax
push esi
push edi
call dword [0x4f1380]
add esp, 0x10
mov ecx, dword [0x4f10b0]
test ecx, ecx
je 0x409545
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
movzx eax, word [0x4f10d8]
call fcn.004091e1
pop ecx
pop ecx
test eax, eax
je 0x409545
mov eax, dword [0x4e5060]
push dword [eax + 0x24]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
push ebx
call fcn.00408463
pop ecx
pop ecx
cmp eax, 0x4f
jne 0x409545
cmp dword [0x424fbc], 0
je 0x40951c
push 1
push 0x2000
push 0x4e9064
push ebx
call fcn.0040141c
push eax
push 0x41d920
push esi
call fcn.0040ab01
add esp, 0x18
push eax
push esi
push edi
call dword [0x4f1380]
add esp, 0x10
cmp dword [0x424fbc], 0
mov eax, 0x41d914
jne 0x409521
mov eax, 0x41d965
push 1
push eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff5
push eax
push str._compressed_WinNT_security_data_missing___d_bytes__s
push esi
call fcn.0040ab01
add esp, 0x10
push eax
push esi
push edi
call dword [0x4f1380]
add esp, 0x10
cmp dword [0x424f9c], 1
jg 0x4095ef
cmp dword [ebp - 4], 0xffffffff
jne 0x40957d
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nCreateFile___error__d_when_trying_set_file_time_n
push esi
call fcn.0040ab01
add esp, 0xc
push eax
push esi
push edi
call dword [0x4f1380]
add esp, 0x10
jmp 0x4095ef
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4095e6
mov ecx, eax
and cl, 1
movsx ecx, cl
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x18]
and ecx, edx
push ecx
mov ecx, eax
and cl, 2
movsx ecx, cl
neg ecx
sbb ecx, ecx
and al, 4
movsx eax, al
lea edx, [ebp - 0x20]
and ecx, edx
push ecx
neg eax
sbb eax, eax
lea ecx, [ebp - 0x28]
and eax, ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4095e6
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nSetFileTime_failed:__d_n
push esi
call fcn.0040ab01
add esp, 0xc
push eax
push esi
push edi
call dword [0x4f1380]
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
leave
ret