Function at 0x107b8ea
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], esi
cmp edi, ebx
jne 0x107b925
push 0x1007270
push 0x15e
push 0x1007218
call fcn.0107b4be
mov dword [esi], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107b958
test byte [eax + 0x1c], 1
je 0x107b958
cmp byte [eax + 0x19], 4
jb 0x107b958
push edi
push 0x10071ec
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x107b95d
sub eax, edx
push 2
sar eax, 1
pop ebx
cmp eax, ebx
jae 0x107b97c
mov esi, 0x80070057
jmp 0x107bcc0
push 0x1007268
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
call edi
mov edx, dword [ebp - 0x14]
pop ecx
pop ecx
cmp eax, edx
jne 0x107b972
add edx, 4
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x107b99b
sub eax, esi
sar eax, 1
cmp eax, ebx
jb 0x107b972
mov esi, 0x10019e4
push esi
push edx
call edi
pop ecx
pop ecx
test eax, eax
je 0x107b972
add eax, ebx
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp - 0x10], edx
mov dx, word [ecx]
add ecx, ebx
test dx, dx
jne 0x107b9c6
sub ecx, dword [ebp - 0x10]
sar ecx, 1
cmp ecx, ebx
jb 0x107b972
push esi
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x107b972
sub eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
sar eax, 1
inc eax
mov esi, eax
lea edi, [esi + esi]
push edi
call ebx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x107ba08
mov esi, 0x8007000e
jmp 0x107bca2
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esi - 1]
push eax
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x10]
call fcn.0107b867
mov esi, eax
test esi, esi
jl 0x107bca2
mov eax, dword [0x111124c]
mov edi, 0x111124c
cmp eax, edi
je 0x107ba5d
test byte [eax + 0x1c], 1
je 0x107ba5d
cmp byte [eax + 0x19], 4
jb 0x107ba5d
push dword [ebp - 0x10]
push 0x10071ec
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push 0
push 0x2000000
push 3
push 0
push 7
push 0x80000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x107bad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x107ba94
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, edi
je 0x107bca2
test byte [eax + 0x1c], 1
je 0x107bca2
cmp byte [eax + 0x19], 2
jb 0x107bca2
push esi
push dword [ebp - 0x10]
push 0x10071ec
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x107bca2
mov esi, dword [sym.imp.ntdll.dll_NtQueryInformationFile]
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
push 0x31
stosd dword es:[edi], eax
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jge 0x107bb4a
cmp eax, 0x80000005
je 0x107bb4a
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x107bb17
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107bc8a
test byte [eax + 0x1c], 1
je 0x107bc8a
cmp byte [eax + 0x19], 2
jb 0x107bc8a
push esi
push 0x10071ec
push 0x13
jmp 0x107bbcd
mov edi, dword [ebp - 0xc]
add edi, 8
push edi
mov dword [ebp - 0x20], edi
call ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x107bc2f
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
push 0x31
push dword [ebp - 0x20]
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x1c]
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jge 0x107bbdd
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x107bb9f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107bc8a
test byte [eax + 0x1c], 1
je 0x107bc8a
cmp byte [eax + 0x19], 2
jb 0x107bc8a
push esi
push 0x10071ec
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x107bc8a
lea esi, [edi + 4]
lea edx, [esi + 2]
mov eax, edx
mov dword [ebp - 0x20], edx
lea edi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x107bbeb
sub eax, edi
sar eax, 1
cmp eax, 2
jb 0x107bc10
push 0x10019e4
push edx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x107bc17
mov esi, 0x80070057
jmp 0x107bc8a
sub eax, esi
dec eax
dec eax
sar eax, 1
inc eax
mov esi, eax
lea edi, [esi + esi]
push edi
call ebx
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x107bc36
mov esi, 0x8007000e
jmp 0x107bc8a
push edi
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esi - 1]
push eax
push dword [ebp - 0x20]
push esi
push ebx
call fcn.0107b867
mov esi, eax
test esi, esi
jl 0x107bc8a
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107bc81
test byte [eax + 0x1c], 1
je 0x107bc81
cmp byte [eax + 0x19], 4
jb 0x107bc81
push ebx
push 0x10071ec
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [ebp - 0x24]
and dword [ebp - 0x18], 0
mov dword [eax], ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x107bca2
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x10], 0
je 0x107bcb1
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x1c], 0
je 0x107bcc0
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 8