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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x4ad2406c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x638], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x62c]
push eax
mov edi, 0x80
push edi
push 0xfe00
call fcn.4ad0f3e6
cmp eax, ebx
mov dword [ebp - 0x628], eax
jne 0x4ad1ec77
xor eax, eax
inc eax
jmp 0x4ad1f16a
cmp dword [0x4ad24104], ebx
je 0x4ad1ecb2
push 1
lea eax, [ebp - 0x640]
push eax
push edi
push dword [ebp - 0x62c]
call fcn.4ad0f3e6
cmp eax, ebx
mov dword [ebp - 0x634], eax
je 0x4ad1ec6f
mov eax, dword [ebp - 0x640]
cmp dword [ebp - 0x62c], eax
jb 0x4ad1ecb2
mov dword [ebp - 0x62c], eax
mov esi, dword [esi + 0x20]
jmp 0x4ad1ecc2
mov esi, dword [esi + 0x20]
cmp esi, ebx
je 0x4ad1f168
push dword [esi]
call fcn.4ad07544
test eax, eax
je 0x4ad1ecb7
lea eax, [ebp - 0x624]
push eax
push dword [esi + 0x18]
push 0x21
push dword [esi]
call fcn.4ad01c2d
and dword [esi + 0x1c], 0xffff3fff
mov eax, dword [esi + 0x1c]
test al, 4
je 0x4ad1ecf7
and eax, 0xfffffffb
or eax, 2
mov dword [esi + 0x1c], eax
cmp dword [0x4ad2415c], ebx
jne 0x4ad1f17b
mov edi, 0x104
push edi
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.4ad0ec5a
cmp eax, 1
je 0x4ad1f17b
push dword [esi + 4]
push str._s_r_n
call fcn.4ad040bf
pop ecx
pop ecx
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x638]
push esi
call fcn.4ad0ed06
cmp eax, 1
je 0x4ad1f17b
cmp word [ebp - 0x20c], bx
je 0x4ad1f145
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call fcn.4ad1e7bd
test eax, eax
je 0x4ad1ed8c
push dword [ebp - 0x62c]
push dword [ebp - 0x628]
push esi
push dword [esi + 4]
call fcn.4ad1e8b4
mov dword [ebp - 0x620], eax
jmp 0x4ad1efac
mov eax, dword [esi + 0x1c]
and eax, 0x800
shl eax, 0xa
push eax
push dword [esi + 4]
call fcn.4ad0efc7
mov edi, eax
cmp edi, 0xffffffff
je 0x4ad1f18b
push edi
call fcn.4ad015ca
test eax, eax
je 0x4ad1edbf
mov dword [ebp - 0x62c], 0x80
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x630]
push esi
push eax
push dword [ebp - 0x62c]
push dword [ebp - 0x628]
push edi
call fcn.4ad0ebc8
cmp dword [0x4ad240e0], ebx
mov dword [ebp - 0x63c], eax
jne 0x4ad1f1a5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
lea eax, [ebp - 0x20c]
jne 0x4ad1ee35
push eax
call fcn.4ad11ace
cmp eax, 0xffffffff
mov dword [ebp - 0x620], eax
je 0x4ad1f1a5
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4ad1ee44
push ebx
push 1
push eax
call fcn.4ad1f545
mov dword [ebp - 0x620], eax
cmp dword [ebp - 0x620], 0xffffffff
je 0x4ad1f1a5
cmp dword [0x4ad240d8], ebx
je 0x4ad1eef6
cmp dword [ebp - 0x630], ebx
jle 0x4ad1ef94
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1eb71
cmp dword [0x4ad24104], ebx
je 0x4ad1ef94
push dword [ebp - 0x620]
call fcn.4ad015ca
test eax, eax
jne 0x4ad1ef94
push dword [ebp - 0x634]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x628]
push dword [ebp - 0x630]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.4ad1e9c2
cmp eax, 1
jne 0x4ad1ef94
push dword [ebp - 0x624]
call fcn.4ad01c51
push edi
call fcn.4ad03ebc
push dword [ebp - 0x620]
call fcn.4ad03ebc
jmp 0x4ad1f19d
cmp dword [ebp - 0x63c], 1
jne 0x4ad1efa0
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1eb71
cmp dword [0x4ad24104], ebx
je 0x4ad1ef67
push dword [ebp - 0x620]
call fcn.4ad015ca
test eax, eax
jne 0x4ad1ef67
push dword [ebp - 0x634]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x628]
push dword [ebp - 0x630]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.4ad1e9c2
cmp eax, 1
je 0x4ad1eed5
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x630]
push esi
push eax
push dword [ebp - 0x62c]
push dword [ebp - 0x628]
push edi
call fcn.4ad0ebc8
mov dword [ebp - 0x63c], eax
cmp dword [0x4ad240d8], ebx
je 0x4ad1eef6
push edi
mov dword [0x4ad240d8], ebx
call fcn.4ad03ebc
mov dword [0x4ad24190], ebx
mov edi, dword [esi + 0x20]
jmp 0x4ad1f120
mov eax, dword [edi + 0x1c]
test al, 4
je 0x4ad1efca
and eax, 0xfffffffb
or eax, 2
mov dword [edi + 0x1c], eax
push dword [esi + 4]
lea eax, [ebp - 0x414]
push dword [edi]
push 0x104
push eax
call fcn.4ad0edfc
cmp eax, ebx
je 0x4ad1efed
push ebx
push eax
call fcn.4ad0594f
jmp 0x4ad1effe
lea eax, [ebp - 0x414]
push eax
push str._s_r_n
call fcn.4ad040bf
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call fcn.4ad07544
test eax, eax
je 0x4ad1f11d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.4ad1e7bd
test eax, eax
push ebx
je 0x4ad1f03d
push 0x2340
call fcn.4ad0594f
pop ecx
pop ecx
jmp 0x4ad1f11d
lea eax, [ebp - 0x414]
push eax
call fcn.4ad0efc7
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad1f1b8
push ebx
call fcn.4ad015ca
test eax, eax
je 0x4ad1f101
mov dword [ebp - 0x62c], 0x80
jmp 0x4ad1f101
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x630]
push edi
push eax
push dword [ebp - 0x62c]
push dword [ebp - 0x628]
push ebx
call fcn.4ad0ebc8
test eax, eax
je 0x4ad1f10e
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1eb71
cmp dword [0x4ad24104], 0
je 0x4ad1f101
push dword [ebp - 0x620]
call fcn.4ad015ca
test eax, eax
jne 0x4ad1f101
push dword [ebp - 0x634]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x628]
push dword [ebp - 0x630]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.4ad1e9c2
cmp eax, 1
je 0x4ad1f1db
cmp dword [0x4ad240d8], 0
je 0x4ad1f071
and dword [0x4ad240d8], 0
push ebx
call fcn.4ad03ebc
xor ebx, ebx
mov edi, dword [edi + 0x20]
cmp edi, ebx
jne 0x4ad1efba
push ebx
push dword [ebp - 0x620]
push dword [ebp - 0x638]
push esi
call fcn.4ad0ea76
mov dword [0x4ad24198], 1
push dword [ebp - 0x624]
push 0x21
push dword [esi + 0x18]
call fcn.4ad0829e
test al, al
jne 0x4ad1ece0
push dword [ebp - 0x624]
call fcn.4ad01c51
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013fa
leave
ret 8
push dword [ebp - 0x624]
call fcn.4ad01c51
jmp 0x4ad1ec6f
push dword [ebp - 0x624]
call fcn.4ad01c51
push 0x6e
call fcn.4ad13630
push 1
push ebx
call fcn.4ad1e837
push dword [ebp - 0x624]
call fcn.4ad01c51
push edi
call fcn.4ad03ebc
jmp 0x4ad1f196
push dword [ebp - 0x624]
call fcn.4ad01c51
push dword [ebp - 0x620]
call fcn.4ad03ebc
push 0x6e
call fcn.4ad13630
push 1
push 0
jmp 0x4ad1f1a0
push dword [ebp - 0x624]
call fcn.4ad01c51
push ebx
call fcn.4ad03ebc
push dword [ebp - 0x620]
call fcn.4ad03ebc
jmp 0x4ad1f1d5