Function at 0x7cfb0233
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7cf3c8e8
push 0x7d041db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x764
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
or dword [ebp - 0x78], 0xffffffff
or dword [ebp - 0x48], 0xffffffff
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x68], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov ebx, 0x218
mov eax, ebx
call fcn.7d041c90
mov dword [ebp - 0x18], esp
mov edi, esp
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push esi
push esi
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x7cfb02e0
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x7cfb02f9
mov eax, dword fs:[0x18]
push dword [ebp - 0x80]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
lea esp, [ebp - 0x788]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
push 0x18
pop edx
mov dword [ebp - 0x64], edx
xor ecx, ecx
mov dword [ebp - 0x60], ecx
push 0x40
pop eax
mov dword [ebp - 0x58], eax
lea esi, [ebp - 0x84]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xffffffc1
add ecx, eax
push ecx
push 1
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0x120089
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, 0xc0000000
and eax, esi
cmp eax, esi
jne 0x7cfb0380
mov eax, dword fs:[0x18]
push dword [ebp - 0x80]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
call esi
mov eax, dword fs:[0x18]
jmp 0x7cfb03c9
push 1
push 1
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x80
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
and eax, esi
cmp eax, esi
jne 0x7cfb03db
push dword [ebp - 0x78]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword fs:[0x18]
push dword [ebp - 0x80]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
call esi
mov eax, dword fs:[0x18]
push dword [ebp - 0x28]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call esi
jmp 0x7cfb02e0
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
and dword [ebp - 0x88], 0
push 5
push ebx
push edi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
mov dword [ebp - 0x4c], eax
and eax, esi
cmp eax, esi
je 0x7cfb0511
mov eax, dword [edi + 8]
shr eax, 1
and word [edi + eax*2 + 0xc], 0
lea eax, [edi + 0xc]
mov dword [ebp - 0x774], eax
push 0x7cf3c8d8
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x7cfb046b
push 5
push ebx
push edi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
mov dword [ebp - 0x4c], eax
and eax, esi
cmp eax, esi
je 0x7cfb0511
mov eax, dword [edi + 8]
shr eax, 1
xor ebx, ebx
mov word [edi + eax*2 + 0xc], bx
push 0x7cf3c8d8
push dword [ebp - 0x774]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x7cfb0479
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
jmp 0x7cfb0511
mov eax, 0x228
mov edi, eax
mov dword [ebp - 0x8c], edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x7cfb0511
mov dword [ebp - 0x90], esi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x7cfb04bf
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x7cfb0511
push 0x16
push edi
push esi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x4c], eax
add edi, edi
mov dword [ebp - 0x8c], edi
cmp eax, 0x80000005
je 0x7cfb0498
cmp eax, ebx
jl 0x7cfb06f9
mov dword [ebp - 0x98], esi
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 0x94], ecx
cmp dword [ebp + 0x10], ebx
je 0x7cfb050d
cmp eax, ebx
jne 0x7cfb0523
cmp dword [esi + 4], ebx
jmp 0x7cfb050f
cmp eax, ebx
jne 0x7cfb0523
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.7d041d02
pop ecx
pop ecx
jmp 0x7cfb02e0
mov eax, dword [ebp - 0x98]
add eax, 0x18
mov dword [ebp - 0x778], eax
push eax
call fcn.7cfb0208
test al, al
jne 0x7cfb06cf
xor ebx, ebx
mov dword [ebp - 0x2a4], ebx
cmp ebx, 3
jae 0x7cfb05b3
lea eax, [ebx + ebx*2]
lea esi, [eax*4 + 0x7cf3aa80]
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
mov edx, eax
shl edx, 1
push dword [ebp - 0x778]
mov dword [ebp - 0x77c], edx
call edi
shl eax, 1
mov ecx, dword [ebp - 0x77c]
cmp eax, ecx
jae 0x7cfb0587
push dword [ebp - 0x778]
jmp 0x7cfb0589
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 0x2ac], eax
mov ecx, eax
mov edi, dword [ebp - 0x778]
mov esi, dword [esi]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x7cfb05ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x7cfb05b3
inc ebx
jmp 0x7cfb0542
xor edi, edi
mov dword [ebp - 0x2a8], edi
cmp ebx, 3
jne 0x7cfb05ef
mov eax, dword [ebp - 0x98]
cmp word [eax + 0x1a], 5
je 0x7cfb05fd
push dword [ebp - 0x778]
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x7cfb062c
lea eax, [ebx + ebx*2]
shl eax, 2
cmp dword [eax + 0x7cf3aa88], edi
je 0x7cfb0605
mov dword [ebp - 0x2a8], edi
jmp 0x7cfb0632
mov eax, dword [eax + 0x7cf3aa84]
cmp eax, edi
je 0x7cfb062a
push 0x104
lea ecx, [ebp - 0x2a0]
push ecx
push eax
push dword [0x7d04cdfc]
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x7cfb062c
xor eax, eax
mov dword [ebp - 0x2a8], eax
cmp dword [ebp - 0x2a8], edi
je 0x7cfb06d1
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0x2b0], esi
cmp esi, edi
je 0x7cfb0681
push 2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, dword [ebp - 0x2a8]
lea eax, [eax + eax + 6]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x88], eax
cmp eax, edi
je 0x7cfb069a
push 0x7cf3c8d0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x7cfb069a
mov eax, dword [ebp - 0x2a8]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], edi
jne 0x7cfb06ba
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.7d041d02
pop ecx
pop ecx
mov eax, dword [ebp - 0x2b0]
jmp 0x7cfb02e2
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x7cfb06d1
xor edi, edi
cmp dword [ebp - 0x94], edi
jne 0x7cfb06f9
mov eax, dword [ebp - 0x98]
add eax, dword [eax]
mov dword [ebp - 0x98], eax
xor ecx, ecx
cmp dword [eax], ecx
sete cl
mov dword [ebp - 0x94], ecx
jmp 0x7cfb0523
lea eax, [ebp - 0x24]
push eax
push 0x7cf4c680
xor edi, edi
push edi
push edi
push edi
push 3
push 0x20
push dword [ebp + 8]
call fcn.7cf82ab3
test eax, eax
jl 0x7cfb08c3
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x68]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x7cfb08b7
mov dword [ebp - 0x740], 0xa
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x73c]
push edx
lea edx, [ebp - 0x738]
push edx
push 0xa
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x7cfb08ab
cmp dword [ebp - 0x73c], edi
jbe 0x7cfb08ab
mov dword [ebp - 0x744], edi
mov eax, dword [ebp - 0x744]
cmp eax, dword [ebp - 0x73c]
jae 0x7cfb073a
shl eax, 6
lea ebx, [ebp + eax - 0x738]
push ebx
call fcn.7cfb01ee
test al, al
jne 0x7cfb08a0
mov dword [ebp - 0x74c], edi
mov dword [ebp - 0x748], edi
cmp dword [ebp - 0x748], 7
jae 0x7cfb07f2
mov eax, dword [ebp - 0x748]
shl eax, 3
mov esi, dword [eax + 0x7cf3aaa8]
mov dword [ebp - 0x768], esi
push 0x10
pop ecx
mov edi, ebx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x7cfb094d
push 0x104
lea ecx, [ebp - 0x4b8]
push ecx
push dword [eax + 0x7cf3aaac]
push dword [0x7d04cdfc]
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x74c], eax
xor edi, edi
mov esi, dword [ebp - 0x74c]
cmp esi, edi
jne 0x7cfb0825
push 0x104
lea eax, [ebp - 0x4b8]
push eax
push 0x1514
push dword [0x7d04cdfc]
call dword [sym.imp.USER32.dll_LoadStringW]
mov esi, eax
mov dword [ebp - 0x74c], esi
cmp esi, edi
je 0x7cfb08a0
mov ebx, dword [ebp - 0x88]
mov dword [ebp - 0x750], ebx
cmp ebx, edi
je 0x7cfb0864
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, esi
lea eax, [eax + eax + 6]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x88], eax
cmp eax, edi
je 0x7cfb0877
push 0x7cf3c8d0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x7cfb0877
lea eax, [esi + esi + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], edi
jne 0x7cfb088d
mov eax, dword [ebp - 0x750]
mov dword [ebp - 0x88], eax
jmp 0x7cfb08a0
lea eax, [ebp - 0x4b8]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 0x744]
jmp 0x7cfb076d
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x68], edi
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.7d041d02
pop ecx
pop ecx
mov eax, dword [ebp - 0x88]
jmp 0x7cfb02e2
inc dword [ebp - 0x748]
xor edi, edi
jmp 0x7cfb079f