Function at 0x4ad1ac36
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
mov esi, 0x80
push esi
push 0xfe00
call fcn.4ad1854e
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4ad1ac7d
cmp dword [0x4ad30b30], ebx
je 0x4ad1ac90
push 1
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
call fcn.4ad1854e
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x4ad1ac85
xor eax, eax
inc eax
jmp 0x4ad1b116
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], eax
jb 0x4ad1ac90
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x1c]
jmp 0x4ad1aca3
mov esi, dword [esi + 0x1c]
cmp esi, ebx
je 0x4ad1ad5b
push dword [esi]
call fcn.4ad05314
test eax, eax
je 0x4ad1ac98
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x14]
push 0x21
push dword [esi]
call fcn.4ad017bc
push edi
and byte [esi + 0x19], 0x3f
mov eax, dword [esi + 0x18]
test al, 4
je 0x4ad1acd3
and eax, 0xfffffffb
or eax, 2
mov dword [esi + 0x18], eax
cmp dword [0x4ad289e8], ebx
jne 0x4ad1b104
lea eax, [ebp - 0x634]
push eax
push esi
call fcn.4ad19247
xor edi, edi
inc edi
cmp eax, edi
je 0x4ad1b109
push dword [esi + 4]
push str._s_r_n
call fcn.4ad03e14
pop ecx
pop ecx
push ebx
push 0x104
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
push esi
call fcn.4ad19c76
cmp eax, edi
je 0x4ad1b109
cmp word [ebp - 0x224], bx
je 0x4ad1b0ed
lea eax, [ebp - 0x224]
push eax
push dword [esi + 4]
call fcn.4ad19436
test eax, eax
je 0x4ad1ad62
push dword [ebp - 8]
push dword [ebp - 4]
push esi
push dword [esi + 4]
call fcn.4ad19533
mov dword [ebp + 8], eax
jmp 0x4ad1af3f
xor eax, eax
jmp 0x4ad1b116
push ebx
push dword [esi + 4]
call fcn.4ad1b5be
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ad1ad89
push dword [ebp - 0x10]
call fcn.4ad01c46
push 0x6e
call fcn.4ad1b458
push 1
push ebx
call fcn.4ad19491
push edi
call fcn.4ad01eec
test eax, eax
je 0x4ad1ad9a
mov dword [ebp - 8], 0x80
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call fcn.4ad19ad1
cmp dword [0x4ad28a04], ebx
mov dword [ebp - 0x14], eax
jne 0x4ad1adf0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
lea eax, [ebp - 0x224]
jne 0x4ad1addf
push eax
call fcn.4ad1b5d2
jmp 0x4ad1ade8
push ebx
push 1
push eax
call fcn.4ad1b5a8
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4ad1ae0d
push dword [ebp - 0x10]
call fcn.4ad01c46
push edi
call fcn.4ad0355e
push 0x6e
call fcn.4ad1b458
push 1
push ebx
call fcn.4ad19491
cmp dword [0x4ad30b18], ebx
je 0x4ad1ae99
cmp dword [ebp - 0xc], ebx
jle 0x4ad1af27
push edi
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.4ad19bc7
cmp dword [0x4ad30b30], ebx
je 0x4ad1af27
push dword [ebp + 8]
call fcn.4ad01eec
test eax, eax
jne 0x4ad1af27
push dword [ebp - 0x18]
lea eax, [ebp - 0x224]
push dword [ebp - 4]
push dword [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.4ad1974f
cmp eax, 1
jne 0x4ad1af27
push dword [ebp - 0x10]
call fcn.4ad01c46
push edi
call fcn.4ad0355e
push dword [ebp + 8]
call fcn.4ad0355e
push 1
push ebx
call fcn.4ad19491
jmp 0x4ad1af27
cmp dword [ebp - 0x14], 1
jne 0x4ad1af33
push edi
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.4ad19bc7
cmp dword [0x4ad30b30], ebx
je 0x4ad1af09
push dword [ebp + 8]
call fcn.4ad01eec
test eax, eax
jne 0x4ad1af09
push dword [ebp - 0x18]
lea eax, [ebp - 0x224]
push dword [ebp - 4]
push dword [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.4ad1974f
cmp eax, 1
jne 0x4ad1af09
push dword [ebp - 0x10]
call fcn.4ad01c46
push edi
call fcn.4ad0355e
push dword [ebp + 8]
call fcn.4ad0355e
push 1
push ebx
call fcn.4ad19491
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call fcn.4ad19ad1
mov dword [ebp - 0x14], eax
cmp dword [0x4ad30b18], ebx
je 0x4ad1ae99
push edi
mov dword [0x4ad30b18], ebx
call fcn.4ad0355e
mov dword [0x4ad30b50], ebx
mov edi, dword [esi + 0x1c]
jmp 0x4ad1b0c7
mov eax, dword [edi + 0x18]
test al, 4
je 0x4ad1af5d
and eax, 0xfffffffb
or eax, 2
mov dword [edi + 0x18], eax
push 0x104
push dword [esi + 4]
lea eax, [ebp - 0x42c]
push dword [edi]
push eax
call fcn.4ad19991
cmp eax, ebx
je 0x4ad1af80
push ebx
push eax
call fcn.4ad0d276
jmp 0x4ad1af91
lea eax, [ebp - 0x42c]
push eax
push str._s_r_n
call fcn.4ad03e14
pop ecx
pop ecx
lea eax, [ebp - 0x42c]
push eax
call fcn.4ad05314
test eax, eax
je 0x4ad1b0c4
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.4ad19436
test eax, eax
push ebx
je 0x4ad1afd0
push 0x2340
call fcn.4ad0d276
pop ecx
pop ecx
jmp 0x4ad1b0c4
lea eax, [ebp - 0x42c]
push eax
call fcn.4ad1b5be
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x4ad1b003
push dword [ebp - 0x10]
call fcn.4ad01c46
push dword [ebp + 8]
call fcn.4ad0355e
push 0x6e
call fcn.4ad1b458
push 1
push ebx
call fcn.4ad19491
push dword [ebp - 0x14]
call fcn.4ad01eec
test eax, eax
je 0x4ad1b0aa
mov dword [ebp - 8], 0x80
jmp 0x4ad1b0aa
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x14]
call fcn.4ad19ad1
test eax, eax
je 0x4ad1b0b6
push dword [ebp - 0x14]
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.4ad19bc7
cmp dword [0x4ad30b30], ebx
je 0x4ad1b0aa
push dword [ebp + 8]
call fcn.4ad01eec
test eax, eax
jne 0x4ad1b0aa
push dword [ebp - 0x18]
lea eax, [ebp - 0x224]
push dword [ebp - 4]
push dword [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.4ad1974f
cmp eax, 1
jne 0x4ad1b0aa
push dword [ebp - 0x10]
call fcn.4ad01c46
push dword [ebp - 0x14]
call fcn.4ad0355e
push dword [ebp + 8]
call fcn.4ad0355e
push 1
push ebx
call fcn.4ad19491
cmp dword [0x4ad30b18], ebx
je 0x4ad1b01f
push dword [ebp - 0x14]
mov dword [0x4ad30b18], ebx
call fcn.4ad0355e
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4ad1af4d
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
push esi
call fcn.4ad198f5
mov dword [0x4ad30b4c], 1
push dword [ebp - 0x10]
push 0x21
push dword [esi + 0x14]
call fcn.4ad0cbbb
test al, al
jne 0x4ad1acbf
jmp 0x4ad1b10b
xor ebx, ebx
inc ebx
jmp 0x4ad1b10b
mov ebx, edi
push dword [ebp - 0x10]
call fcn.4ad01c46
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8