Function at 0x415d50
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00415ca0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov esi, eax
test esi, esi
js 0x415e0d
push 0
push 0
push 0x60
push 1
push 5
push 0x80
lea eax, [ebp - 0x38]
mov dword [ebp - 0x60], 0x18
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x40]
push 0
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], 0
push eax
push 0x120089
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x54], 0x40
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test esi, esi
js 0x415e0d
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push 5
push 0x18
push eax
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x415e20
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x1c]
jne 0x415e20
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d1c6
mov esp, ebp
pop ebp
ret
push ecx
mov edx, edi
call fcn.0042a120
mov ebx, eax
push edi
mov dword [ebp - 0x44], ebx
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
je 0x415e44
cmp dword [ebx], 0
je 0x415e5a
mov ecx, ebx
call fcn.00429bb0
mov eax, 0xc0000102
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d1c6
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x416057
jmp 0x415e70
cmp dword [ebx], 0
jne 0x416049
cmp dword [ebx + 0x1c], 1
jl 0x416049
mov eax, dword [ebx + 0x20]
push str.name
push dword [eax]
call fcn.00432d82
add esp, 8
test eax, eax
jne 0x416049
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 0x415ea8
sub edx, esi
call fcn.004136d0
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x416049
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x415ef5
cmp dword [ecx], 2
jne 0x415ef5
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x415ef5
mov edx, ecx
lea edi, [edx + 1]
jmp 0x415ee0
mov al, byte [edx]
inc edx
test al, al
jne 0x415ee0
sub edx, edi
call fcn.004136d0
mov edi, eax
mov dword [ebp - 0x30], edi
jmp 0x415eff
call fcn.00412ea0
mov edi, eax
mov dword [ebp - 0x30], eax
mov eax, 0x4588f8
lock bts dword [eax], 0
jae 0x415f12
mov ecx, eax
call fcn.00427460
mov eax, dword [esi]
lea edx, [ebp - 0x28]
mov ecx, dword [0x458d2c]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
call fcn.00414030
mov esi, eax
test esi, esi
je 0x415f5f
mov ecx, dword [esi]
mov edx, esi
call fcn.00415740
mov ecx, dword [esi]
mov edx, edi
push esi
push edi
call fcn.00415510
test al, al
jne 0x415fea
mov ecx, dword [esi]
lea edx, [esi + 0xc]
push esi
push 0
call fcn.00415510
jmp 0x415fea
push 0x1c
push 4
push dword [0x458d0c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
add ebx, 2
push ebx
push 4
push dword [0x458d0c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push ebx
mov esi, eax
push edi
push esi
call fcn.0042ea70
mov ebx, dword [ebp - 0x34]
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x30]
mov dword [ebx + 8], esi
mov eax, dword [eax]
mov dword [ebx + 4], eax
lock inc dword [edi - 4]
mov esi, dword [0x458d28]
mov dword [ebx + 0x14], edi
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x415fdf
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push dword [esi + 8]
push 4
push dword [0x458d0c]
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 - 0x2c]
or esi, 0xffffffff
mov eax, 0x4588f8
lock xadd dword [eax], esi
mov eax, esi
and al, 6
cmp al, 2
jne 0x416020
dec esi
mov edi, 0x4588f8
mov eax, esi
lea edx, [esi + 4]
mov ecx, edx
lock cmpxchg dword [edi], ecx
mov edi, dword [ebp - 0x30]
cmp eax, esi
jne 0x416020
mov ecx, 0x4588f8
call fcn.00427320
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x416033
call fcn.00412410
mov ecx, dword [ebp - 0x3c]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x416049
call fcn.00412410
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x2c], ebx
test ebx, ebx
jne 0x415e70
mov ecx, dword [ebp - 0x44]
call fcn.00429bb0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d1c6
mov esp, ebp
pop ebp
ret