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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x18], 0xffffffff
call fcn.0042a7d0
test eax, eax
je 0x42d134
mov eax, dword [0x520210]
push eax
call fcn.0041514d
add esp, 4
push eax
call fcn.00409ee2
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [0x520210]
push ecx
call fcn.0040a231
add esp, 4
cmp dword [0x44fff4], 0
je 0x42d151
jmp 0x42d3bf
cmp dword [0x44fffc], 1
jg 0x42d193
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0042c9f0
add esp, 0xc
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0x520228
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
jmp 0x42d19a
mov dword [ebp - 0x10], 0
mov edx, dword [0x5100c0]
mov eax, dword [edx + 0x24]
and eax, 0x7f
and eax, 0xffffffdf
je 0x42d1f6
mov ecx, dword [0x5100c0]
mov edx, dword [ecx + 0x24]
and edx, 0x7f
push edx
push 0x520228
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42d1f6
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
push 0x5100c4
call fcn.00405f89
add esp, 0xc
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
cmp dword [0x520110], 0
je 0x42d2e9
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
movzx edx, word [0x520138]
push edx
mov eax, dword [0x520110]
push eax
call fcn.0042a810
add esp, 0x10
test eax, eax
je 0x42d2e9
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [0x5100c0]
mov ecx, dword [eax + 0x24]
push ecx
push 0x520228
call fcn.0042cca0
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x4f
jne 0x42d2e9
cmp dword [0x45001c], 0
je 0x42d29d
push 1
push 0x4000
push 0x5180c4
push 0x520228
call fcn.004206f0
add esp, 0xc
push eax
push 0x44a56c
push 0x5100c4
call fcn.00405f89
add esp, 0xc
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
cmp dword [0x45001c], 0
je 0x42d2af
mov dword [ebp - 0x3c], 0x44a574
jmp 0x42d2b6
mov dword [ebp - 0x3c], 0x44ec8c
push 1
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 4]
sub eax, 0xb
push eax
push str._compressed_WinNT_security_data_missing___d_bytes__s
push 0x5100c4
call fcn.00405f89
add esp, 0x10
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
cmp dword [0x44fffc], 1
jg 0x42d3bf
cmp dword [ebp - 0x18], 0xffffffff
jne 0x42d330
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nCreateFile___error__d_when_trying_set_file_time_n
push 0x5100c4
call fcn.00405f89
add esp, 0xc
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
jmp 0x42d3bf
cmp dword [ebp - 0x10], 0
je 0x42d3b5
mov ecx, dword [ebp - 0x10]
and ecx, 1
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0xc]
and ecx, edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x10]
and eax, 2
neg eax
sbb eax, eax
lea ecx, [ebp - 0x28]
and eax, ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x10]
and edx, 4
neg edx
sbb edx, edx
lea eax, [ebp - 0x20]
and edx, eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x42d3b5
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nSetFileTime_failed:__d_n
push 0x5100c4
call fcn.00405f89
add esp, 0xc
push eax
push 0x5100c4
push 0x44ffe0
call dword [0x52040c]
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret