Function at 0x4ad1f3cb
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.4ad116cd
mov dword [ebp - 0x628], eax
cmp eax, ebx
jne 0x4ad1f41b
xor eax, eax
inc eax
jmp 0x4ad1f90e
cmp dword [0x4ad24154], ebx
je 0x4ad1f456
push 1
lea eax, [ebp - 0x640]
push eax
push edi
push dword [ebp - 0x62c]
call fcn.4ad116cd
mov dword [ebp - 0x634], eax
cmp eax, ebx
je 0x4ad1f413
mov eax, dword [ebp - 0x640]
cmp dword [ebp - 0x62c], eax
jb 0x4ad1f456
mov dword [ebp - 0x62c], eax
mov esi, dword [esi + 0x20]
jmp 0x4ad1f466
mov esi, dword [esi + 0x20]
cmp esi, ebx
je 0x4ad1f90c
push dword [esi]
call fcn.4ad084ee
test eax, eax
je 0x4ad1f45b
lea eax, [ebp - 0x624]
push eax
push dword [esi + 0x18]
push 0x21
push dword [esi]
call fcn.4ad02e35
and dword [esi + 0x1c], 0xffff3fff
mov eax, dword [esi + 0x1c]
test al, 4
je 0x4ad1f49b
and eax, 0xfffffffb
or eax, 2
mov dword [esi + 0x1c], eax
cmp dword [0x4ad241ac], ebx
jne 0x4ad1f91f
mov edi, 0x104
push edi
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.4ad111cc
cmp eax, 1
je 0x4ad1f91f
push dword [esi + 4]
push str._s_r_n
call fcn.4ad0735f
pop ecx
pop ecx
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x638]
push esi
call fcn.4ad10e7a
cmp eax, 1
je 0x4ad1f91f
cmp word [ebp - 0x20c], bx
je 0x4ad1f8e9
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call fcn.4ad1ef59
test eax, eax
je 0x4ad1f530
push dword [ebp - 0x62c]
push dword [ebp - 0x628]
push esi
push dword [esi + 4]
call fcn.4ad1f050
mov dword [ebp - 0x620], eax
jmp 0x4ad1f750
mov eax, dword [esi + 0x1c]
and eax, 0x800
shl eax, 0xa
push eax
push dword [esi + 4]
call fcn.4ad1127a
mov edi, eax
cmp edi, 0xffffffff
je 0x4ad1f92f
push edi
call fcn.4ad03bd3
test eax, eax
je 0x4ad1f563
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.4ad10de4
mov dword [ebp - 0x63c], eax
cmp dword [0x4ad24120], ebx
jne 0x4ad1f949
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
lea eax, [ebp - 0x20c]
jne 0x4ad1f5d9
push eax
call fcn.4ad11b7d
mov dword [ebp - 0x620], eax
cmp eax, 0xffffffff
je 0x4ad1f949
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4ad1f5e8
push ebx
push 1
push eax
call fcn.4ad1fc01
mov dword [ebp - 0x620], eax
cmp dword [ebp - 0x620], 0xffffffff
je 0x4ad1f949
cmp dword [0x4ad24118], ebx
je 0x4ad1f69a
cmp dword [ebp - 0x630], ebx
jle 0x4ad1f738
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1f315
cmp dword [0x4ad24154], ebx
je 0x4ad1f738
push dword [ebp - 0x620]
call fcn.4ad03bd3
test eax, eax
jne 0x4ad1f738
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.4ad1f166
cmp eax, 1
jne 0x4ad1f738
push dword [ebp - 0x624]
call fcn.4ad02e7b
push edi
call fcn.4ad03b88
push dword [ebp - 0x620]
call fcn.4ad03b88
jmp 0x4ad1f941
cmp dword [ebp - 0x63c], 1
jne 0x4ad1f744
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1f315
cmp dword [0x4ad24154], ebx
je 0x4ad1f70b
push dword [ebp - 0x620]
call fcn.4ad03bd3
test eax, eax
jne 0x4ad1f70b
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.4ad1f166
cmp eax, 1
je 0x4ad1f679
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.4ad10de4
mov dword [ebp - 0x63c], eax
cmp dword [0x4ad24118], ebx
je 0x4ad1f69a
push edi
mov dword [0x4ad24118], ebx
call fcn.4ad03b88
mov dword [0x4ad241e0], ebx
mov edi, dword [esi + 0x20]
jmp 0x4ad1f8c4
mov eax, dword [edi + 0x1c]
test al, 4
je 0x4ad1f76e
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.4ad10f70
cmp eax, ebx
je 0x4ad1f791
push ebx
push eax
call fcn.4ad0a0bd
jmp 0x4ad1f7a2
lea eax, [ebp - 0x414]
push eax
push str._s_r_n
call fcn.4ad0735f
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call fcn.4ad084ee
test eax, eax
je 0x4ad1f8c1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.4ad1ef59
push ebx
test eax, eax
je 0x4ad1f7e1
push 0x2340
call fcn.4ad0a0bd
pop ecx
pop ecx
jmp 0x4ad1f8c1
lea eax, [ebp - 0x414]
push eax
call fcn.4ad1127a
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad1f95c
push ebx
call fcn.4ad03bd3
test eax, eax
je 0x4ad1f8a5
mov dword [ebp - 0x62c], 0x80
jmp 0x4ad1f8a5
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.4ad10de4
test eax, eax
je 0x4ad1f8b2
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.4ad1f315
cmp dword [0x4ad24154], 0
je 0x4ad1f8a5
push dword [ebp - 0x620]
call fcn.4ad03bd3
test eax, eax
jne 0x4ad1f8a5
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.4ad1f166
cmp eax, 1
je 0x4ad1f97f
cmp dword [0x4ad24118], 0
je 0x4ad1f815
and dword [0x4ad24118], 0
push ebx
call fcn.4ad03b88
xor ebx, ebx
mov edi, dword [edi + 0x20]
cmp edi, ebx
jne 0x4ad1f75e
push ebx
push dword [ebp - 0x620]
push dword [ebp - 0x638]
push esi
call fcn.4ad1136a
mov dword [0x4ad241e8], 1
push dword [ebp - 0x624]
push 0x21
push dword [esi + 0x18]
call fcn.4ad09a65
test al, al
jne 0x4ad1f484
push dword [ebp - 0x624]
call fcn.4ad02e7b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad0139d
leave
ret 8
push dword [ebp - 0x624]
call fcn.4ad02e7b
jmp 0x4ad1f413
push dword [ebp - 0x624]
call fcn.4ad02e7b
push 0x6e
call fcn.4ad13642
push 1
push ebx
call fcn.4ad1efd3
push dword [ebp - 0x624]
call fcn.4ad02e7b
push edi
call fcn.4ad03b88
jmp 0x4ad1f93a
push dword [ebp - 0x624]
call fcn.4ad02e7b
push dword [ebp - 0x620]
call fcn.4ad03b88
push 0x6e
call fcn.4ad13642
push 1
push 0
jmp 0x4ad1f944
push dword [ebp - 0x624]
call fcn.4ad02e7b
push ebx
call fcn.4ad03b88
push dword [ebp - 0x620]
call fcn.4ad03b88
jmp 0x4ad1f979