Function at 0x4ad1dcf2
Capabilities:
Clear file content
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x4ad33b38]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x63c], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x630]
push eax
mov edi, 0x80
push edi
push 0xfe00
call fcn.4ad0e395
cmp eax, ebx
mov dword [ebp - 0x628], eax
je 0x4ad1e24f
cmp dword [0x4ad33af0], ebx
je 0x4ad1dd7b
push 1
lea eax, [ebp - 0x640]
push eax
push edi
push dword [ebp - 0x630]
call fcn.4ad0e395
cmp eax, ebx
mov dword [ebp - 0x638], eax
je 0x4ad1e24f
mov eax, dword [ebp - 0x640]
cmp dword [ebp - 0x630], eax
jb 0x4ad1dd7b
mov dword [ebp - 0x630], eax
mov esi, dword [esi + 0x1c]
jmp 0x4ad1dd8b
mov esi, dword [esi + 0x1c]
cmp esi, ebx
je 0x4ad1e233
push dword [esi]
call fcn.4ad0ad55
test eax, eax
je 0x4ad1dd80
lea eax, [ebp - 0x624]
push eax
push dword [esi + 0x14]
push 0x21
push dword [esi]
call fcn.4ad02774
and byte [esi + 0x19], 0x3f
mov eax, dword [esi + 0x18]
test al, 4
je 0x4ad1ddbd
and eax, 0xfffffffb
or eax, 2
mov dword [esi + 0x18], eax
cmp dword [0x4ad2b9a8], ebx
jne 0x4ad1e244
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.4ad0dd82
cmp eax, 1
je 0x4ad1e244
push dword [esi + 4]
push str._s_r_n
call fcn.4ad04115
pop ecx
pop ecx
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x63c]
push esi
call fcn.4ad0df57
cmp eax, 1
je 0x4ad1e244
cmp word [ebp - 0x20c], bx
je 0x4ad1e210
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call fcn.4ad1d88d
test eax, eax
je 0x4ad1de50
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push esi
push dword [esi + 4]
call fcn.4ad1d980
mov dword [ebp - 0x620], eax
jmp 0x4ad1e06b
push ebx
push dword [esi + 4]
call fcn.4ad0e24c
cmp eax, 0xffffffff
mov dword [ebp - 0x634], eax
je 0x4ad1e254
push eax
call fcn.4ad01538
test eax, eax
je 0x4ad1de78
mov dword [ebp - 0x630], edi
mov edi, dword [ebp - 0x634]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x62c]
push esi
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push edi
call fcn.4ad0dec6
cmp dword [0x4ad2b9c4], ebx
mov dword [ebp - 0x634], eax
jne 0x4ad1e26b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
lea eax, [ebp - 0x20c]
jne 0x4ad1def4
push eax
call fcn.4ad0e329
cmp eax, 0xffffffff
mov dword [ebp - 0x620], eax
je 0x4ad1e26b
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4ad1df03
push ebx
push 1
push eax
call fcn.4ad1e3e8
mov dword [ebp - 0x620], eax
cmp dword [ebp - 0x620], 0xffffffff
je 0x4ad1e26b
cmp dword [0x4ad33ad8], ebx
je 0x4ad1dfb5
cmp dword [ebp - 0x62c], ebx
jle 0x4ad1e053
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x62c]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1dc3b
cmp dword [0x4ad33af0], ebx
je 0x4ad1e053
push dword [ebp - 0x620]
call fcn.4ad01538
test eax, eax
jne 0x4ad1e053
push dword [ebp - 0x638]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x628]
push dword [ebp - 0x62c]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.4ad1da8e
cmp eax, 1
jne 0x4ad1e053
push dword [ebp - 0x624]
call fcn.4ad03015
push edi
call fcn.4ad01925
push dword [ebp - 0x620]
call fcn.4ad01925
jmp 0x4ad1e266
cmp dword [ebp - 0x634], 1
jne 0x4ad1e05f
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x62c]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1dc3b
cmp dword [0x4ad33af0], ebx
je 0x4ad1e026
push dword [ebp - 0x620]
call fcn.4ad01538
test eax, eax
jne 0x4ad1e026
push dword [ebp - 0x638]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x628]
push dword [ebp - 0x62c]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.4ad1da8e
cmp eax, 1
je 0x4ad1df94
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x62c]
push esi
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push edi
call fcn.4ad0dec6
mov dword [ebp - 0x634], eax
cmp dword [0x4ad33ad8], ebx
je 0x4ad1dfb5
push edi
mov dword [0x4ad33ad8], ebx
call fcn.4ad01925
mov dword [0x4ad33b10], ebx
mov edi, dword [esi + 0x1c]
jmp 0x4ad1e1df
mov eax, dword [edi + 0x18]
test al, 4
je 0x4ad1e089
and eax, 0xfffffffb
or eax, 2
mov dword [edi + 0x18], eax
push 0x104
push dword [esi + 4]
lea eax, [ebp - 0x414]
push dword [edi]
push eax
call fcn.4ad0e071
cmp eax, ebx
je 0x4ad1e0ac
push ebx
push eax
call fcn.4ad05031
jmp 0x4ad1e0bd
lea eax, [ebp - 0x414]
push eax
push str._s_r_n
call fcn.4ad04115
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call fcn.4ad0ad55
test eax, eax
je 0x4ad1e1dc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.4ad1d88d
test eax, eax
push ebx
je 0x4ad1e0fc
push 0x2340
call fcn.4ad05031
pop ecx
pop ecx
jmp 0x4ad1e1dc
lea eax, [ebp - 0x414]
push eax
call fcn.4ad0e24c
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad1e27e
push ebx
call fcn.4ad01538
test eax, eax
je 0x4ad1e1c0
mov dword [ebp - 0x630], 0x80
jmp 0x4ad1e1c0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x62c]
push edi
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push ebx
call fcn.4ad0dec6
test eax, eax
je 0x4ad1e1cd
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x62c]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1dc3b
cmp dword [0x4ad33af0], 0
je 0x4ad1e1c0
push dword [ebp - 0x620]
call fcn.4ad01538
test eax, eax
jne 0x4ad1e1c0
push dword [ebp - 0x638]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x628]
push dword [ebp - 0x62c]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.4ad1da8e
cmp eax, 1
je 0x4ad1e29d
cmp dword [0x4ad33ad8], 0
je 0x4ad1e130
and dword [0x4ad33ad8], 0
push ebx
call fcn.4ad01925
xor ebx, ebx
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4ad1e079
push ebx
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x63c]
push esi
call fcn.4ad0daa4
mov dword [0x4ad33b0c], 1
mov edi, 0x80
push dword [ebp - 0x624]
push 0x21
push dword [esi + 0x14]
call fcn.4ad07ecc
test al, al
jne 0x4ad1dda9
push dword [ebp - 0x624]
call fcn.4ad03015
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01389
leave
ret 8
push dword [ebp - 0x624]
call fcn.4ad03015
xor eax, eax
inc eax
jmp 0x4ad1e235
push dword [ebp - 0x624]
call fcn.4ad03015
push 0x6e
call fcn.4ad0ef21
push 1
push ebx
jmp 0x4ad1e2bd
push dword [ebp - 0x624]
call fcn.4ad03015
push edi
call fcn.4ad01925
jmp 0x4ad1e25f
push dword [ebp - 0x624]
call fcn.4ad03015
push dword [ebp - 0x620]
call fcn.4ad01925
push 0x6e
call fcn.4ad0ef21
jmp 0x4ad1e2b9
push dword [ebp - 0x624]
call fcn.4ad03015
push ebx
call fcn.4ad01925
push dword [ebp - 0x620]
call fcn.4ad01925
push 1
push 0
call fcn.4ad1d903
int3