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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x4ad240ac]
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.4ad10feb
mov dword [ebp - 0x628], eax
cmp eax, ebx
jne 0x4ad1f71f
xor eax, eax
inc eax
jmp 0x4ad1fc12
cmp dword [0x4ad2415c], ebx
je 0x4ad1f75a
push 1
lea eax, [ebp - 0x640]
push eax
push edi
push dword [ebp - 0x62c]
call fcn.4ad10feb
mov dword [ebp - 0x634], eax
cmp eax, ebx
je 0x4ad1f717
mov eax, dword [ebp - 0x640]
cmp dword [ebp - 0x62c], eax
jb 0x4ad1f75a
mov dword [ebp - 0x62c], eax
mov esi, dword [esi + 0x20]
jmp 0x4ad1f76a
mov esi, dword [esi + 0x20]
cmp esi, ebx
je 0x4ad1fc10
push dword [esi]
call fcn.4ad06a35
test eax, eax
je 0x4ad1f75f
lea eax, [ebp - 0x624]
push eax
push dword [esi + 0x18]
push 0x21
push dword [esi]
call fcn.4ad03117
and dword [esi + 0x1c], 0xffff3fff
mov eax, dword [esi + 0x1c]
test al, 4
je 0x4ad1f79f
and eax, 0xfffffffb
or eax, 2
mov dword [esi + 0x1c], eax
cmp dword [0x4ad241b4], ebx
jne 0x4ad1fc23
mov edi, 0x104
push edi
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.4ad1113b
cmp eax, 1
je 0x4ad1fc23
push dword [esi + 4]
push str._s_r_n
call fcn.4ad058f3
pop ecx
pop ecx
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x638]
push esi
call fcn.4ad11ca5
cmp eax, 1
je 0x4ad1fc23
cmp word [ebp - 0x20c], bx
je 0x4ad1fbed
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call fcn.4ad1f25d
test eax, eax
je 0x4ad1f834
push dword [ebp - 0x62c]
push dword [ebp - 0x628]
push esi
push dword [esi + 4]
call fcn.4ad1f354
mov dword [ebp - 0x620], eax
jmp 0x4ad1fa54
mov eax, dword [esi + 0x1c]
and eax, 0x800
shl eax, 0xa
push eax
push dword [esi + 4]
call fcn.4ad11f66
mov edi, eax
cmp edi, 0xffffffff
je 0x4ad1fc33
push edi
call fcn.4ad03b03
test eax, eax
je 0x4ad1f867
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.4ad110a5
mov dword [ebp - 0x63c], eax
cmp dword [0x4ad24128], ebx
jne 0x4ad1fc4d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
lea eax, [ebp - 0x20c]
jne 0x4ad1f8dd
push eax
call fcn.4ad1224d
mov dword [ebp - 0x620], eax
cmp eax, 0xffffffff
je 0x4ad1fc4d
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4ad1f8ec
push ebx
push 1
push eax
call fcn.4ad1fdfd
mov dword [ebp - 0x620], eax
cmp dword [ebp - 0x620], 0xffffffff
je 0x4ad1fc4d
cmp dword [0x4ad24120], ebx
je 0x4ad1f99e
cmp dword [ebp - 0x630], ebx
jle 0x4ad1fa3c
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1f619
cmp dword [0x4ad2415c], ebx
je 0x4ad1fa3c
push dword [ebp - 0x620]
call fcn.4ad03b03
test eax, eax
jne 0x4ad1fa3c
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.4ad1f46a
cmp eax, 1
jne 0x4ad1fa3c
push dword [ebp - 0x624]
call fcn.4ad02f5c
push edi
call fcn.4ad03ab3
push dword [ebp - 0x620]
call fcn.4ad03ab3
jmp 0x4ad1fc45
cmp dword [ebp - 0x63c], 1
jne 0x4ad1fa48
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1f619
cmp dword [0x4ad2415c], ebx
je 0x4ad1fa0f
push dword [ebp - 0x620]
call fcn.4ad03b03
test eax, eax
jne 0x4ad1fa0f
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.4ad1f46a
cmp eax, 1
je 0x4ad1f97d
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.4ad110a5
mov dword [ebp - 0x63c], eax
cmp dword [0x4ad24120], ebx
je 0x4ad1f99e
push edi
mov dword [0x4ad24120], ebx
call fcn.4ad03ab3
mov dword [0x4ad241e8], ebx
mov edi, dword [esi + 0x20]
jmp 0x4ad1fbc8
mov eax, dword [edi + 0x1c]
test al, 4
je 0x4ad1fa72
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.4ad11d9b
cmp eax, ebx
je 0x4ad1fa95
push ebx
push eax
call fcn.4ad099e1
jmp 0x4ad1faa6
lea eax, [ebp - 0x414]
push eax
push str._s_r_n
call fcn.4ad058f3
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call fcn.4ad06a35
test eax, eax
je 0x4ad1fbc5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.4ad1f25d
push ebx
test eax, eax
je 0x4ad1fae5
push 0x2340
call fcn.4ad099e1
pop ecx
pop ecx
jmp 0x4ad1fbc5
lea eax, [ebp - 0x414]
push eax
call fcn.4ad11f66
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad1fc60
push ebx
call fcn.4ad03b03
test eax, eax
je 0x4ad1fba9
mov dword [ebp - 0x62c], 0x80
jmp 0x4ad1fba9
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.4ad110a5
test eax, eax
je 0x4ad1fbb6
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1f619
cmp dword [0x4ad2415c], 0
je 0x4ad1fba9
push dword [ebp - 0x620]
call fcn.4ad03b03
test eax, eax
jne 0x4ad1fba9
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.4ad1f46a
cmp eax, 1
je 0x4ad1fc83
cmp dword [0x4ad24120], 0
je 0x4ad1fb19
and dword [0x4ad24120], 0
push ebx
call fcn.4ad03ab3
xor ebx, ebx
mov edi, dword [edi + 0x20]
cmp edi, ebx
jne 0x4ad1fa62
push ebx
push dword [ebp - 0x620]
push dword [ebp - 0x638]
push esi
call fcn.4ad11be3
mov dword [0x4ad241f0], 1
push dword [ebp - 0x624]
push 0x21
push dword [esi + 0x18]
call fcn.4ad095f8
test al, al
jne 0x4ad1f788
push dword [ebp - 0x624]
call fcn.4ad02f5c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013a9
leave
ret 8
push dword [ebp - 0x624]
call fcn.4ad02f5c
jmp 0x4ad1f717
push dword [ebp - 0x624]
call fcn.4ad02f5c
push 0x6e
call fcn.4ad1056b
push 1
push ebx
call fcn.4ad1f2d7
push dword [ebp - 0x624]
call fcn.4ad02f5c
push edi
call fcn.4ad03ab3
jmp 0x4ad1fc3e
push dword [ebp - 0x624]
call fcn.4ad02f5c
push dword [ebp - 0x620]
call fcn.4ad03ab3
push 0x6e
call fcn.4ad1056b
push 1
push 0
jmp 0x4ad1fc48
push dword [ebp - 0x624]
call fcn.4ad02f5c
push ebx
call fcn.4ad03ab3
push dword [ebp - 0x620]
call fcn.4ad03ab3
jmp 0x4ad1fc7d