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

Disassembly:
push 0x3c
mov eax, 0x1000f383
call fcn.1000f120
mov dword [ebp - 0x20], ecx
xor eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov eax, dword [0x10041044]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xe], bl
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x10010a12
movzx eax, word [esi]
neg eax
sbb eax, eax
and esi, eax
mov dword [ebp + 8], esi
test edi, edi
je 0x10010a1f
movzx eax, word [edi]
neg eax
sbb eax, eax
and edi, eax
test esi, esi
jne 0x10010a54
test edi, edi
jne 0x10010a54
mov ecx, 0x100066ac
push ecx
call fcn.10013835
mov esi, dword [ebp - 0x20]
mov ecx, esi
push eax
call fcn.10012d50
push esi
lea ecx, [esi + 8]
call fcn.10012a78
push esi
lea ecx, [esi + 0x10]
call fcn.10012a78
jmp 0x10010e4c
lea eax, [ecx + 8]
mov ecx, edi
push edi
mov dword [ebp - 0x38], eax
call fcn.10013835
mov ecx, dword [ebp - 0x38]
push eax
call fcn.10012d50
push edi
push esi
push 0x10006600
push 9
pop eax
push eax
push 0x10006634
call sym.IEShims.dll_IEShims_Uninitialize
add esp, 0x14
test esi, esi
jne 0x10010c83
push 0x208
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 0x18], eax
pop ecx
test eax, eax
je 0x10010e17
movzx ecx, word [edi]
mov esi, edi
mov edx, ecx
mov dword [ebp - 0x14], esi
push 0x22
mov dword [ebp - 0x28], edx
mov eax, edi
pop edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], ebx
cmp cx, dx
jne 0x10010b92
lea ecx, [edi + 2]
mov dword [ebp - 0x34], ebx
movzx eax, word [ecx]
mov dword [ebp - 0x24], ecx
test ax, ax
jmp 0x10010af0
cmp ax, dx
je 0x10010b81
add ecx, 2
mov dword [ebp - 0x14], ecx
movzx eax, word [ecx]
mov esi, eax
test ax, ax
mov dword [ebp - 0x28], esi
mov esi, ecx
mov dword [ebp - 0x1c], ecx
jne 0x10010ad4
mov edx, dword [ebp - 0x24]
movzx eax, word [esi]
mov dword [ebp - 0x28], eax
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x18]
push 0x104
push 0x1000663c
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
add eax, eax
mov dword [ebp - 0x3c], eax
je 0x10010b51
cmp eax, 0x208
jae 0x10010b42
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10010b3c
test al, 0x10
jne 0x10010b51
mov eax, dword [ebp - 0x3c]
add eax, 2
test eax, eax
je 0x10010b51
cmp eax, 0x208
jb 0x10010bdc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov word [esi], cx
cmp word [eax], bx
je 0x10010bf5
cmp dword [ebp - 0x34], 0
je 0x10010bf5
add eax, 2
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x1c], eax
mov esi, eax
mov dword [ebp - 0x14], eax
movzx ecx, word [eax]
jmp 0x10010b95
mov esi, ecx
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x14], esi
jmp 0x10010af5
mov ecx, dword [ebp - 0x28]
mov edx, edi
mov dword [ebp - 0x24], edx
test cx, cx
je 0x10010af8
movzx ecx, cx
push 0x20
pop esi
cmp cx, si
je 0x10010bd2
push 9
pop esi
cmp cx, si
je 0x10010bd2
add eax, 2
mov esi, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
movzx eax, word [eax]
mov ecx, eax
test ax, ax
mov eax, esi
jne 0x10010ba6
jmp 0x10010af8
mov esi, eax
mov dword [ebp - 0x14], esi
jmp 0x10010af8
mov eax, dword [ebp - 0x14]
sub esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sar esi, 1
add esi, dword [ebp - 0x2c]
mov word [eax], cx
mov ecx, dword [ebp - 0x18]
jmp 0x10010d27
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], ebx
jne 0x10010c51
push 0x100067d4
push edi
call dword [sym.imp.msvcrt.dll_wcsspn]
pop ecx
pop ecx
lea eax, [edi + eax*2]
movzx ecx, word [eax]
mov esi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], esi
test cx, cx
je 0x10010c5c
push 0x20
pop eax
cmp cx, ax
je 0x10010c41
push 9
pop eax
cmp cx, ax
je 0x10010c41
add esi, 2
mov dword [ebp - 0x14], esi
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x10010c1f
jmp 0x10010c4c
movzx eax, cx
mov dword [ebp - 0x28], eax
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x24]
jmp 0x10010c5c
lea eax, [edi + 2]
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov word [esi], cx
push eax
mov ecx, eax
call fcn.10013835
push eax
lea ecx, [ebp - 0x48]
call fcn.10012d50
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x48]
mov word [esi], ax
sub esi, dword [ebp - 0x24]
sar esi, 1
add esi, dword [ebp - 0x2c]
jmp 0x10010d27
test edi, edi
je 0x10010d0c
cmp word [edi], bx
je 0x10010d0c
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x10010c93
sub esi, ecx
sar esi, 1
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10010cc9
movzx eax, word [edi + esi*2]
test ax, ax
je 0x10010d24
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
jne 0x10010d24
push 0x22
pop eax
cmp word [edi], ax
jne 0x10010d08
push esi
lea eax, [edi + 2]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10010d08
push 0x22
pop eax
cmp word [edi + esi*2 + 2], ax
jne 0x10010d08
add esi, 2
movzx eax, word [edi + esi*2]
test ax, ax
je 0x10010d24
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
jne 0x10010d24
mov esi, ebx
jmp 0x10010d24
mov edi, esi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x10010d11
sub esi, ecx
mov byte [ebp - 0xe], 1
sar esi, 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.10013835
mov ecx, dword [ebp - 0x20]
push eax
call fcn.10012d50
lea ecx, [edi + esi*2]
mov esi, dword [ebp - 0x20]
push ecx
call fcn.10013835
push eax
lea ecx, [esi + 0x10]
call fcn.10012d50
lea ecx, [esi + 0x10]
call fcn.10013859
cmp byte [ebp - 0xe], 0
jne 0x10010d79
cmp byte [ebp - 0xd], 0
je 0x10010d66
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x10010d7c
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x38]
lea ecx, [ecx + 0x20]
call fcn.10012a78
jmp 0x10010e11
mov esi, dword [ebp - 0x14]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10010d81
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 3]
mov dword [ebp - 0x2c], eax
add eax, eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 0x3c], eax
pop ecx
test eax, eax
je 0x10010e14
mov edx, dword [ebp - 0x2c]
mov ecx, eax
push 0x10005c78
call fcn.10010eac
cmp byte [ebp - 0xd], 0
je 0x10010dc4
movzx ebx, word [esi]
xor eax, eax
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
push edi
mov edi, dword [ebp - 0x3c]
mov ecx, edi
call fcn.10010e5e
mov edx, dword [ebp - 0x2c]
mov ecx, edi
push 0x10005c78
call fcn.10010e5e
cmp byte [ebp - 0xd], 0
je 0x10010df5
mov edx, dword [ebp - 0x2c]
mov ecx, edi
push esi
mov word [esi], bx
call fcn.10010e5e
push edi
mov ecx, edi
call fcn.10013835
mov ecx, dword [ebp - 0x20]
push eax
lea ecx, [ecx + 0x20]
call fcn.10012d50
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x20]
mov edx, 0x10006634
push dword [eax + 8]
push dword [eax]
push 0x10006648
push 9
pop ecx
push ecx
push edx
call sym.IEShims.dll_IEShims_Uninitialize
push dword [eax + 0x10]
push 0x1000667c
push ecx
push edx
call sym.IEShims.dll_IEShims_Uninitialize
add esp, 0x28
lea ecx, [ebp - 0x48]
call fcn.1000daa0
mov eax, ebx
call fcn.1000f0ee
ret 8