Function at 0x107ba70
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x111027c]
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 0x107baab
push 0x1007280
push 0x15e
push 0x1007228
call fcn.0107b644
mov dword [esi], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x107bade
test byte [eax + 0x1c], 1
je 0x107bade
cmp byte [eax + 0x19], 4
jb 0x107bade
push edi
push 0x10071fc
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x107bae3
sub eax, edx
push 2
sar eax, 1
pop ebx
cmp eax, ebx
jae 0x107bb02
mov esi, 0x80070057
jmp 0x107be46
push 0x1007278
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 0x107baf8
add edx, 4
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x107bb21
sub eax, esi
sar eax, 1
cmp eax, ebx
jb 0x107baf8
mov esi, 0x10019e4
push esi
push edx
call edi
pop ecx
pop ecx
test eax, eax
je 0x107baf8
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 0x107bb4c
sub ecx, dword [ebp - 0x10]
sar ecx, 1
cmp ecx, ebx
jb 0x107baf8
push esi
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x107baf8
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 0x107bb8e
mov esi, 0x8007000e
jmp 0x107be28
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.0107b9ed
mov esi, eax
test esi, esi
jl 0x107be28
mov eax, dword [0x111024c]
mov edi, 0x111024c
cmp eax, edi
je 0x107bbe3
test byte [eax + 0x1c], 1
je 0x107bbe3
cmp byte [eax + 0x19], 4
jb 0x107bbe3
push dword [ebp - 0x10]
push 0x10071fc
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
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 0x107bc58
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x107bc1a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, edi
je 0x107be28
test byte [eax + 0x1c], 1
je 0x107be28
cmp byte [eax + 0x19], 2
jb 0x107be28
push esi
push dword [ebp - 0x10]
push 0x10071fc
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x107be28
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 0x107bcd0
cmp eax, 0x80000005
je 0x107bcd0
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x107bc9d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x107be10
test byte [eax + 0x1c], 1
je 0x107be10
cmp byte [eax + 0x19], 2
jb 0x107be10
push esi
push 0x10071fc
push 0x13
jmp 0x107bd53
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 0x107bdb5
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 0x107bd63
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x107bd25
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x107be10
test byte [eax + 0x1c], 1
je 0x107be10
cmp byte [eax + 0x19], 2
jb 0x107be10
push esi
push 0x10071fc
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x107be10
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 0x107bd71
sub eax, edi
sar eax, 1
cmp eax, 2
jb 0x107bd96
push 0x10019e4
push edx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x107bd9d
mov esi, 0x80070057
jmp 0x107be10
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 0x107bdbc
mov esi, 0x8007000e
jmp 0x107be10
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.0107b9ed
mov esi, eax
test esi, esi
jl 0x107be10
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x107be07
test byte [eax + 0x1c], 1
je 0x107be07
cmp byte [eax + 0x19], 4
jb 0x107be07
push ebx
push 0x10071fc
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
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 0x107be28
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x10], 0
je 0x107be37
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x1c], 0
je 0x107be46
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.0106f798
leave
ret 8