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

Disassembly:
push 0x3c
mov eax, 0x10025cac
call fcn.10002999
mov esi, ecx
mov dword [ebp - 0x28], esi
xor eax, eax
xor ecx, ecx
inc eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x34], eax
mov eax, dword [0x10041c78]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov byte [ebp - 0xd], cl
mov byte [ebp - 0xe], cl
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x1002985d
movzx eax, word [edi]
neg eax
sbb eax, eax
and edi, eax
mov dword [ebp + 8], edi
test ebx, ebx
je 0x1002986a
movzx eax, word [ebx]
neg eax
sbb eax, eax
and ebx, eax
test edi, edi
jne 0x10029895
test ebx, ebx
jne 0x10029895
push 0x10029cf4
mov ecx, esi
call fcn.1000587b
push esi
lea ecx, [esi + 8]
call fcn.10005178
push esi
lea ecx, [esi + 0x10]
call fcn.10005178
jmp 0x10029c42
push ebx
lea ecx, [esi + 8]
call fcn.1000587b
push ebx
push edi
push 0x10029c54
push 9
pop eax
push eax
push 0x10029c88
mov dword [ebp - 0x3c], eax
call sym.IEShims.dll_IEShims_Uninitialize
add esp, 0x14
test edi, edi
jne 0x10029a72
push 0x208
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 0x18], eax
pop ecx
test eax, eax
je 0x10029c0d
push 0x20
pop edx
push 0x22
pop ecx
mov esi, ebx
mov eax, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edi
cmp word [ebx], cx
jne 0x100299a3
lea eax, [ebx + 2]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], eax
jmp 0x1002990c
cmp dx, cx
je 0x10029919
add eax, 2
mov esi, eax
mov dword [ebp - 0x14], esi
movzx edx, word [eax]
mov dword [ebp - 0x1c], eax
test dx, dx
je 0x10029925
jmp 0x100298ff
mov dword [ebp - 0x24], 2
mov esi, eax
mov dword [ebp - 0x14], esi
movzx eax, word [esi]
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x18]
push 0x104
push 0x1000def0
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
add eax, eax
mov dword [ebp - 0x38], eax
je 0x1002997c
cmp eax, 0x208
jae 0x10029971
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002996b
test al, 0x10
jne 0x1002997c
mov eax, dword [ebp - 0x38]
add eax, 2
test eax, eax
je 0x1002997c
cmp eax, 0x208
jb 0x100299d6
mov eax, dword [ebp - 0x20]
mov word [esi], ax
mov eax, dword [ebp - 0x1c]
cmp word [eax], di
je 0x100299f4
cmp dword [ebp - 0x34], edi
je 0x100299f4
add eax, 2
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0x1c], eax
inc ecx
mov dword [ebp - 0x14], esi
push 0x20
mov byte [ebp - 0xd], cl
pop edx
mov dword [ebp - 0x2c], ebx
jmp 0x100299c8
cmp cx, dx
je 0x10029920
push 9
pop esi
cmp cx, si
je 0x10029920
add eax, 2
mov esi, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
movzx ecx, word [eax]
test cx, cx
je 0x10029925
jmp 0x100299a8
mov eax, dword [ebp - 0x20]
mov edi, esi
sub edi, dword [ebp - 0x2c]
mov word [esi], ax
mov eax, dword [ebp - 0x18]
sar edi, 1
add edi, dword [ebp - 0x24]
mov dword [ebp + 8], eax
xor eax, eax
inc eax
jmp 0x10029b20
cmp dword [ebp - 0x24], edi
jne 0x10029a46
mov dword [ebp - 0x2c], ebx
mov eax, ebx
test ebx, ebx
je 0x10029a16
push 0x10029cf8
push ebx
call dword [sym.imp.msvcrt.dll_wcsspn]
pop ecx
pop ecx
lea eax, [ebx + eax*2]
mov dword [ebp - 0x2c], eax
mov esi, eax
mov dword [ebp - 0x14], esi
cmp word [eax], di
je 0x10029a51
push 0x20
pop edx
movzx ecx, word [esi]
cmp cx, dx
je 0x10029a3e
cmp cx, word [ebp - 0x3c]
je 0x10029a3e
add esi, 2
mov dword [ebp - 0x14], esi
cmp word [esi], di
je 0x10029a51
jmp 0x10029a23
movzx ecx, word [esi]
mov dword [ebp - 0x20], ecx
jmp 0x10029a4c
lea eax, [ebx + 2]
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov word [esi], cx
push eax
lea ecx, [ebp - 0x48]
call fcn.1000587b
mov eax, dword [ebp - 0x20]
mov edi, esi
sub edi, dword [ebp - 0x2c]
sar edi, 1
add edi, dword [ebp - 0x24]
mov word [esi], ax
mov eax, dword [ebp - 0x48]
jmp 0x10029b2a
xor esi, esi
test ebx, ebx
je 0x10029b06
cmp word [ebx], si
je 0x10029b06
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x10029a88
sub edi, ecx
sar edi, 1
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10029ac3
movzx eax, word [ebx + edi*2]
test ax, ax
je 0x10029abe
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
je 0x10029ac3
xor eax, eax
inc eax
jmp 0x10029b24
push 0x22
pop eax
cmp word [ebx], ax
jne 0x10029b02
push edi
lea eax, [ebx + 2]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10029b02
push 0x22
pop eax
cmp word [ebx + edi*2 + 2], ax
jne 0x10029b02
add edi, 2
movzx eax, word [ebx + edi*2]
test ax, ax
je 0x10029abe
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
jne 0x10029abe
mov edi, esi
jmp 0x10029abe
mov ebx, edi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x10029b0b
sub edi, ecx
xor eax, eax
sar edi, 1
inc eax
mov byte [ebp - 0xe], al
test eax, eax
je 0x10029b27
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1000587b
lea eax, [ebx + edi*2]
push eax
lea ecx, [esi + 0x10]
call fcn.1000587b
lea ecx, [esi + 0x10]
call fcn.1002ab65
cmp byte [ebp - 0xe], 0
jne 0x10029b70
cmp byte [ebp - 0xd], 0
je 0x10029b5c
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x10029b73
mov esi, dword [ebp - 0x28]
lea eax, [esi + 8]
push eax
lea ecx, [esi + 0x20]
call fcn.10005178
jmp 0x10029c0a
mov esi, dword [ebp - 0x14]
mov ecx, ebx
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10029b7a
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 3]
mov dword [ebp - 0x24], eax
add eax, eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 0x3c], eax
pop ecx
test eax, eax
jne 0x10029ba8
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x30], edi
jmp 0x10029c0a
mov edx, dword [ebp - 0x24]
mov ecx, eax
push 0x1000dd60
call fcn.10029d4b
cmp byte [ebp - 0xd], 0
je 0x10029bc5
movzx edi, word [esi]
xor eax, eax
mov word [esi], ax
mov edx, dword [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x3c]
mov ecx, ebx
call fcn.10029d03
mov edx, dword [ebp - 0x24]
mov ecx, ebx
push 0x1000dd60
call fcn.10029d03
cmp byte [ebp - 0xd], 0
je 0x10029bf6
mov edx, dword [ebp - 0x24]
mov ecx, ebx
push esi
mov word [esi], di
call fcn.10029d03
mov esi, dword [ebp - 0x28]
push ebx
lea ecx, [esi + 0x20]
call fcn.1000587b
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.msvcrt.dll_free]
push dword [esi + 8]
mov edi, 0x10029c88
push dword [esi]
push 0x10029c90
push 9
pop ebx
push ebx
push edi
call sym.IEShims.dll_IEShims_Uninitialize
push dword [esi + 0x10]
push 0x10029cc4
push ebx
push edi
call sym.IEShims.dll_IEShims_Uninitialize
mov edi, dword [ebp - 0x30]
add esp, 0x28
lea ecx, [ebp - 0x48]
call fcn.10003610
mov eax, edi
call fcn.10002980
ret 8