Function at 0x6106a510
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 0x6106a65e
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 0x6106a790
mov edx, dword [ebx + 0x108]
mov esi, dword [0x61144e38]
cmp byte [edx], 0
setne byte [ebx + 0x11c]
test esi, esi
jne 0x6106a807
test byte [ebp + 0x14], 4
jne 0x6106a720
xor esi, esi
test al, 0x10
jne 0x6106a720
cmp dword [ebp - 0x30], 3
jle 0x6106a5fd
mov esi, 1
test al, 4
je 0x6106a670
mov eax, 3
xor ecx, ecx
mov edx, pe_nt_image_headers32
mov dword [esp + 0x10], eax
mov eax, 0x61107420
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 0x6106a720
cmp esi, 2
je 0x6106a8b0
movzx eax, byte [0x6110a820]
jmp 0x6106a77a
test esi, esi
je 0x6106a720
xor eax, eax
mov edi, pe_nt_image_headers32
mov ecx, 3
mov dword [esp + 0x18], eax
mov eax, 1
mov edx, 0x61107420
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 0x6106a720
cmp esi, 1
jne 0x6106a655
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 0x6106a8d2
cmp dword [ebp - 0x30], 3
jle 0x6106a720
cmp byte [ebx + 0x11c], 0
je 0x6106a720
mov eax, 0xffffffff
mov dword [ebx + 0x114], eax
jmp 0x6106a588
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 [0x6110a820]
test al, 1
je 0x6106a778
cmp byte [ebx + 0x125], 0
mov eax, str.not_a_symlink
je 0x6106a746
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, 0x61127b0b
mov dword [esp + 8], eax
mov eax, 0x10
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
movzx eax, byte [0x6110a820]
xor edi, edi
test al, 1
jne 0x6106a820
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x6110a820], 1
jne 0x6106a86a
call sub.KERNEL32.dll_GetLastError
cmp eax, 1
je 0x6106a8a6
cmp eax, 0x20
je 0x6106a704
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 0x6106a588
mov edx, dword [ebx + 0x108]
mov eax, dword [0x61144e38]
cmp byte [edx], 0
setne byte [ebx + 0x11c]
test eax, eax
jne 0x6106a807
nop
lea esi, [esi]
test byte [ebp + 0x14], 4
jne 0x6106a720
mov eax, dword [ebx + 0x114]
xor esi, esi
jmp 0x6106a5ea
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 0x6106a7f0
jmp 0x6106a720
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], 0x6110a820
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], 0x6110a820
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 0x6106a7ab
mov eax, 2
jmp 0x6106a7b4
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 0x6106a65e
jmp 0x6106a720
cmp word [ebx], 0x5c3a
jne 0x6106a65e
mov dword [esp + 4], ebx
mov dword [esp], ebx
call method.symlink_info.parse_device_char_const_
test al, al
je 0x6106a65e
jmp 0x6106a720