Function at 0x6106aa50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ecx, 1
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x118], ecx
mov byte [ebx + 0x125], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call method.suffix_scan.has_char_const__suffix_info_const_
mov dword [ebx + 0x108], eax
mov edx, dword [ebp + 0xc]
and dword [ebx + 0x110], 0xfefffffe
mov byte [ebx + 0x124], 0
sub eax, edx
mov dword [ebx + 0x10c], eax
xor eax, eax
mov word [ebx + 0x126], ax
xor eax, eax
mov word [ebx + 0x128], ax
xor eax, eax
mov dword [ebx + 0x12c], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call method.suffix_scan.next__
test eax, eax
je 0x6106ab9e
xor eax, eax
mov dword [ebx + 0x120], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileAttributesA
mov dword [ebx + 0x114], eax
sub esp, 4
cmp eax, 0xffffffff
je 0x6106acd0
mov edx, dword [ebx + 0x108]
mov esi, dword [0x61146c88]
cmp byte [edx], 0
setne byte [ebx + 0x11c]
test esi, esi
jne 0x6106ad47
test byte [ebp + 0x14], 4
jne 0x6106ac60
xor esi, esi
test al, 0x10
jne 0x6106ac60
cmp dword [ebp - 0x30], 3
jle 0x6106ab3d
mov esi, 1
test al, 4
je 0x6106abb0
mov eax, 3
xor ecx, ecx
mov edx, pe_nt_image_headers32
mov dword [esp + 0x10], eax
mov eax, 0x6110943c
mov esi, 2
mov dword [esp + 0xc], eax
mov eax, 1
mov edi, 0xffffffff
mov dword [esp + 8], eax
mov eax, 0x80000000
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x6106ac60
cmp esi, 2
je 0x6106adf0
movzx eax, byte [0x6110c854]
jmp 0x6106acba
test esi, esi
je 0x6106ac60
xor eax, eax
mov edi, pe_nt_image_headers32
mov ecx, 3
mov dword [esp + 0x18], eax
mov eax, 1
mov edx, 0x6110943c
mov dword [esp + 8], eax
mov eax, 0x80000000
mov dword [esp + 0x14], edi
mov edi, 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x6106ac60
cmp esi, 1
jne 0x6106ab95
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
call method.symlink_info.check_shortcut_char_const__void_
test eax, eax
mov edi, eax
jne 0x6106ae12
cmp dword [ebp - 0x30], 3
jle 0x6106ac60
cmp byte [ebx + 0x11c], 0
je 0x6106ac60
mov eax, 0xffffffff
mov dword [ebx + 0x114], eax
jmp 0x6106aac8
mov eax, dword [ebx + 0x108]
cmp byte [eax], 0
setne byte [ebx + 0x11c]
xor esi, esi
mov dword [ebx + 0x114], esi
lea esi, [esi]
xor ecx, ecx
mov dword [ebx + 0x118], ecx
movzx eax, byte [0x6110c854]
test al, 1
je 0x6106acb8
cmp byte [ebx + 0x125], 0
mov eax, str.not_a_symlink
je 0x6106ac86
mov eax, str.is_a_device
mov dword [esp + 0x10], eax
mov eax, str.int_symlink_info::check_char__const_suffix_info__unsigned_int_
mov edx, 0x61129c0b
mov dword [esp + 8], eax
mov eax, 0x10
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
movzx eax, byte [0x6110c854]
xor edi, edi
test al, 1
jne 0x6106ad60
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x6110c854], 1
jne 0x6106adaa
call sub.KERNEL32.dll_GetLastError
cmp eax, 1
je 0x6106ade6
cmp eax, 0x20
je 0x6106ac44
mov edx, 0xd
call sym.__Z23geterrno_from_win_errormi_8
mov dword [esp + 4], eax
mov dword [esp], ebx
call method.symlink_info.set_error_int_
test al, al
jne 0x6106aac8
mov edx, dword [ebx + 0x108]
mov eax, dword [0x61146c88]
cmp byte [edx], 0
setne byte [ebx + 0x11c]
test eax, eax
jne 0x6106ad47
nop
lea esi, [esi]
test byte [ebp + 0x14], 4
jne 0x6106ac60
mov eax, dword [ebx + 0x114]
xor esi, esi
jmp 0x6106ab2a
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call method.symlink_info.case_check_char_
test al, al
jne 0x6106ad30
jmp 0x6106ac60
mov eax, dword [ebx + 0x110]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x10], edi
mov dword [esp], 0x6110c854
mov dword [esp + 0x14], eax
mov eax, str._d__symlink.check___s___p____p_
mov dword [esp + 0xc], eax
mov eax, str.int_symlink_info::check_char__const_suffix_info__unsigned_int_
mov dword [esp + 8], eax
mov eax, 0x10
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov dword [esp], 0x6110c854
mov dword [esp + 0x10], eax
mov eax, str.GetFileAttributes___s__failed
mov dword [esp + 0xc], eax
mov eax, str.int_symlink_info::check_char__const_suffix_info__unsigned_int_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
call sub.KERNEL32.dll_GetLastError
cmp eax, 1
jne 0x6106aceb
mov eax, 2
jmp 0x6106acf4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
call method.symlink_info.check_sysfile_char_const__void_
test eax, eax
mov edi, eax
jne 0x6106ab9e
jmp 0x6106ac60
cmp word [ebx], 0x5c3a
jne 0x6106ab9e
mov dword [esp + 4], ebx
mov dword [esp], ebx
call method.symlink_info.parse_device_char_const_
test al, al
je 0x6106ab9e
jmp 0x6106ac60