Function at 0x4ad0c3ef
Capabilities:
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x4ad33b3c], 3
jne 0x4ad0c276
cmp dword [0x4ad33b50], esi
je 0x4ad0c4a4
push dword [ebx]
push 0x4ad34b88
call fcn.4ad05e00
push 0x4ad34b78
call fcn.4ad05e00
add esp, 0xc
push dword [0x4ad2ba04]
call fcn.4ad0c21a
push dword [ebp - 0x62c]
call fcn.4ad01c24
push edi
push esi
call fcn.4ad0c2b1
nop
nop
nop
nop
nop
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x680
mov eax, dword [0x4ad33b78]
mov edx, dword [ebp + 0xc]
or dword [ebp - 0x620], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x410]
mov dword [ebp - 0x414], 0x20
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x1c]
xor esi, esi
xor edi, edi
inc edi
cmp eax, esi
mov dword [ebp - 0x634], edx
mov dword [ebp - 0x644], esi
mov dword [ebp - 0x66c], esi
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x660], edi
je 0x4ad162f1
mov eax, dword [eax + 0x18]
shr eax, 1
and eax, 8
push esi
mov dword [ebp - 0x654], eax
lea eax, [ebp - 0x658]
push eax
push 0x80
push 0xfe00
mov dword [ebp - 0x664], esi
mov dword [ebp - 0x648], esi
call fcn.4ad0ca49
cmp eax, esi
mov dword [ebp - 0x630], eax
je 0x4ad11a50
cmp dword [0x4ad33b30], esi
jne 0x4ad162f9
mov ebx, dword [ebx + 0x1c]
cmp ebx, esi
je 0x4ad0e473
lea eax, [ebp - 0x62c]
push eax
push dword [ebx + 0x14]
push 0x21
push dword [ebx]
call fcn.4ad01349
push eax
call fcn.4ad02a34
test al, al
je 0x4ad0c261
cmp dword [0x4ad2b9e8], esi
jne 0x4ad16c00
lea eax, [ebp - 0x61c]
push eax
push ebx
call fcn.4ad0e49a
cmp eax, edi
je 0x4ad16c35
cmp dword [0x4ad33b50], esi
je 0x4ad118d7
test byte [ebx + 0x18], 8
jne 0x4ad118e9
cmp dword [0x4ad33b3c], 3
je 0x4ad118e9
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x634]
push ebx
call fcn.4ad0e5e2
cmp eax, edi
je 0x4ad16c35
cmp dword [0x4ad33b3c], 3
je 0x4ad119e8
cmp word [ebp - 0x20c], si
je 0x4ad0c8c4
push esi
push dword [ebx + 4]
call fcn.4ad0e8ae
cmp eax, 0xffffffff
mov dword [ebp - 0x628], eax
je 0x4ad16338
push eax
call fcn.4ad02c65
test eax, eax
jne 0x4ad16377
cmp dword [0x4ad33b30], esi
jne 0x4ad1639e
mov eax, dword [ebp - 0x658]
mov dword [ebp - 0x63c], eax
mov eax, dword [ebp - 0x63c]
mov dword [ebp - 0x668], eax
mov eax, dword [ebx + 0x18]
test al, 4
je 0x4ad11916
and eax, 0xfffffffb
test al, al
mov dword [ebx + 0x18], eax
js 0x4ad163bd
or eax, edi
mov dword [ebx + 0x18], eax
cmp byte [0x4ad2fa64], 0
je 0x4ad163c5
push 0x208
push dword [ebx + 4]
push 0x4ad3d3a0
call fcn.4ad01aa5
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad01349
push eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x624]
push ebx
push eax
push 0x200
push dword [ebp - 0x630]
push dword [ebp - 0x628]
call fcn.4ad0e551
cmp dword [0x4ad2ba04], 0
mov dword [ebp - 0x640], eax
jne 0x4ad163f4
cmp dword [0x4ad33b3c], 3
je 0x4ad11a03
lea eax, [ebp - 0x20c]
push eax
push 0x4ad3d3a0
push esi
call fcn.4ad0e98b
test eax, eax
jne 0x4ad1641e
mov eax, dword [ebp - 0x634]
mov dword [0x4ad33b44], edi
cmp dword [eax + 0x1c], 0
je 0x4ad0c68c
cmp dword [0x4ad33b50], 0
je 0x4ad0c68c
and dword [0x4ad2ba04], 0
mov dword [0x4ad33b40], edi
push dword [eax + 0x1c]
call fcn.4ad06142
mov eax, dword [0x4ad2ba04]
cmp eax, 0x15
je 0x4ad11a43
cmp eax, 0x458
je 0x4ad11a43
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x634]
push ebx
call fcn.4ad0e5e2
cmp eax, edi
je 0x4ad16c2a
cmp word [ebp - 0x20c], 0
je 0x4ad164a8
lea eax, [ebp - 0x20c]
push eax
push 0x4ad3d3a0
push esi
call fcn.4ad0e98b
test eax, eax
jne 0x4ad164b8
xor esi, esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x638], esi
jne 0x4ad0c729
cmp dword [ebp - 0x660], esi
je 0x4ad0c709
cmp eax, 0xffffffff
mov dword [ebp - 0x648], esi
jne 0x4ad1651b
mov dword [ebp - 0x660], esi
and dword [ebx + 0x18], 0xfffffffb
cmp byte [0x4ad2fa64], 0
mov ecx, dword [ebx + 0x18]
je 0x4ad1652e
cmp dword [ebp - 0x648], esi
jne 0x4ad16572
cmp dword [0x4ad33b50], esi
je 0x4ad0c755
mov ecx, dword [ebp - 0x634]
mov ecx, dword [ecx + 0x1c]
cmp ecx, esi
je 0x4ad0c748
test byte [ecx + 0x18], 8
jne 0x4ad11a57
cmp dword [0x4ad33b3c], 3
je 0x4ad16589
test al, 6
je 0x4ad11a22
or dword [ebp - 0x620], 0xffffffff
mov dword [0x4ad2ba04], 5
cmp dword [ebp - 0x620], 0xffffffff
mov dword [ebp - 0x650], esi
jne 0x4ad165bb
mov dword [ebp - 0x65c], esi
cmp dword [ebp - 0x66c], edi
je 0x4ad165f7
mov eax, dword [ebx + 0x18]
test al, 8
jne 0x4ad0c7a7
cmp dword [0x4ad33b3c], 3
je 0x4ad16627
mov eax, dword [ebx + 0x18]
test al, 8
jne 0x4ad118c5
push dword [ebx + 0x18]
lea eax, [ebp - 0x624]
push eax
push dword [ebp - 0x630]
call fcn.4ad0e385
cmp dword [0x4ad33b3c], 3
je 0x4ad11a31
test byte [ebx + 0x18], 1
je 0x4ad11a31
cmp dword [ebp - 0x620], 0xffffffff
jne 0x4ad1666a
test byte [ebx + 0x19], 4
jne 0x4ad16681
mov eax, dword [0x4ad2fa6c]
test eax, eax
push dword [ebp - 0x654]
je 0x4ad166c6
push 0x4ad2b9e8
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebx + 4]
call eax
xor esi, esi
cmp eax, esi
je 0x4ad166db
cmp dword [ebp - 0x650], esi
jne 0x4ad0c859
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [0x4ad33b30], esi
jne 0x4ad16742
push dword [ebp - 0x628]
xor esi, esi
mov dword [0x4ad33b18], esi
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x680], ecx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x67c], eax
call fcn.4ad02e00
cmp dword [0x4ad33b3c], 3
je 0x4ad0c8bc
cmp dword [0x4ad2b9e8], esi
jne 0x4ad16bb1
lea eax, [ebp - 0x680]
push eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x634]
push ebx
call fcn.4ad0e3b8
mov dword [0x4ad33b4c], edi
mov dword [0x4ad33b50], esi
xor esi, esi
push dword [ebp - 0x62c]
push 0x21
push dword [ebx + 0x14]
call fcn.4ad0649c
test al, al
jne 0x4ad0c4d0
push dword [ebp - 0x62c]
call fcn.4ad01c24
jmp 0x4ad0c4a4
cmp dword [0x4ad33b3c], 3
je 0x4ad16bd4
mov eax, dword [ebp - 0x644]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 8
cmp dword [0x4ad33b3c], 3
jne 0x4ad0c7b2
jmp 0x4ad16642
cmp dword [0x4ad33b3c], 3
jne 0x4ad0c4fd
jmp 0x4ad16324
push dword [ebx + 4]
push str._s_r_n
call fcn.4ad05e00
cmp dword [0x4ad33b3c], 3
pop ecx
pop ecx
jne 0x4ad0c514
cmp dword [0x4ad33b50], esi
jne 0x4ad0c514
jmp 0x4ad0c54f
mov dword [ebp - 0x638], eax
jmp 0x4ad0c5c4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x4ad0c542
cmp dword [0x4ad33b50], 0
jne 0x4ad0c629
jmp 0x4ad0c787
test byte [ebx + 0x19], 4
je 0x4ad165a4
jmp 0x4ad0c76e
cmp dword [ebp - 0x620], 0xffffffff
je 0x4ad1698b
jmp 0x4ad169e2
push 0
push eax
call fcn.4ad0bfae
jmp 0x4ad16c28
mov eax, edi
jmp 0x4ad0e486
cmp dword [ebx + 0x1c], esi
jne 0x4ad0c748
mov dword [0x4ad33b3c], edi
jmp 0x4ad0c748