Function at 0x414950
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov esi, ecx
call fcn.004148a0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov esi, eax
test esi, esi
js 0x414a03
push 0
push 0
push 0x60
push 1
push 5
push 0x80
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0
push eax
push 0x120089
lea eax, [ebp - 0x10]
mov dword [ebp - 0x2c], 0x40
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test esi, esi
js 0x414a03
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push 5
push 0x18
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x414a0c
mov eax, dword [ebp - 0x50]
or eax, dword [ebp - 0x4c]
jne 0x414a0c
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov edx, edi
call fcn.00427150
mov ebx, eax
push edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
je 0x414a30
cmp dword [ebx], 0
je 0x414a3c
mov ecx, ebx
call fcn.00426c20
mov eax, 0xc0000102
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x414c3c
lea ebx, [ebx]
cmp dword [ebx], 0
jne 0x414c2e
cmp dword [ebx + 0x1c], 1
jl 0x414c2e
mov eax, dword [ebx + 0x20]
push str.name
push dword [eax]
call fcn.0042f1e2
add esp, 8
test eax, eax
jne 0x414c2e
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 4]
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x414a88
sub edx, esi
call fcn.00412ab0
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x414c2e
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x414ad5
cmp dword [ecx], 2
jne 0x414ad5
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x414ad5
mov edx, ecx
lea edi, [edx + 1]
jmp 0x414ac0
mov al, byte [edx]
inc edx
test al, al
jne 0x414ac0
sub edx, edi
call fcn.00412ab0
mov edi, eax
mov dword [ebp - 0x10], edi
jmp 0x414adf
call fcn.00412420
mov edi, eax
mov dword [ebp - 0x10], eax
mov eax, 0x4549e8
lock bts dword [eax], 0
jae 0x414af2
mov ecx, eax
call fcn.00422a40
mov eax, dword [esi]
lea edx, [ebp - 0x58]
mov ecx, dword [0x454e84]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x50], eax
call fcn.004133a0
mov esi, eax
test esi, esi
je 0x414b3f
mov ecx, dword [esi]
mov edx, esi
call fcn.00414340
mov ecx, dword [esi]
mov edx, edi
push esi
push edi
call fcn.00414110
test al, al
jne 0x414bc8
mov ecx, dword [esi]
lea edx, [esi + 0xc]
push esi
push 0
call fcn.00414110
jmp 0x414bc8
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x1c
push 4
push dword [0x454e50]
call esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
add ebx, 2
push ebx
push 4
push dword [0x454e50]
call esi
push ebx
mov esi, eax
push edi
push esi
call fcn.00441e40
mov ebx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
mov dword [ebx + 8], esi
mov eax, dword [eax]
mov dword [ebx + 4], eax
lock inc dword [edi - 4]
mov esi, dword [0x454e80]
mov dword [ebx + 0x14], edi
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x414bbd
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push dword [esi + 8]
push 4
push dword [0x454e50]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [esi]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], ebx
inc dword [esi]
mov ebx, dword [ebp - 8]
add edi, 0xfffffff8
or esi, 0xffffffff
mov eax, 0x4549e8
lock xadd dword [eax], esi
mov eax, esi
mov edx, edi
and al, 6
cmp al, 2
jne 0x414c06
dec esi
mov ebx, 0x4549e8
mov eax, esi
lea ecx, [esi + 4]
lock cmpxchg dword [ebx], ecx
mov ebx, dword [ebp - 8]
cmp eax, esi
jne 0x414c06
lea edx, [esi + 4]
mov ecx, 0x4549e8
call fcn.00422900
mov edx, edi
or eax, 0xffffffff
lock xadd dword [edx + 4], eax
dec eax
jne 0x414c18
mov ecx, edx
call fcn.00411970
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x414c2e
call fcn.00411970
mov ebx, dword [ebx + 4]
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x414a50
mov ecx, dword [ebp - 0x1c]
call fcn.00426c20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret