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

Disassembly:
push 0x28
mov eax, 0xbc680b5
call fcn.0bc64d24
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [0xbc6d070]
xor ebx, ebx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
mov eax, 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 + 8], eax
cmp eax, ebx
je 0xbc47149
cmp word [eax], bx
jne 0xbc47149
mov dword [ebp + 8], ebx
cmp edi, ebx
je 0xbc47154
cmp word [edi], bx
jne 0xbc47154
xor edi, edi
cmp dword [ebp + 8], ebx
jne 0xbc47191
cmp edi, ebx
jne 0xbc47191
push 0xbc41488
mov ecx, esi
call fcn.0bc486ab
push esi
lea ecx, [esi + 8]
call fcn.0bc4864b
push esi
lea ecx, [esi + 0x10]
call fcn.0bc4864b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0bc48255
mov eax, ebx
call fcn.0bc64e10
ret 8
push edi
lea ecx, [esi + 8]
call fcn.0bc486ab
push edi
push dword [ebp + 8]
push 0xbc41454
push 9
push 0xbc4144c
call sym.IEShims.dll_IEShims_Uninitialize
mov eax, dword [ebp + 8]
add esp, 0x14
test eax, eax
jne 0xbc47338
push 0x208
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0xbc474b6
and dword [ebp - 0x1c], 0
mov dword [ebp + 8], edi
cmp word [edi], 0x22
mov ebx, edi
mov esi, edi
jne 0xbc47289
and dword [ebp - 0x28], 0
lea esi, [edi + 2]
mov dword [ebp + 8], esi
jmp 0xbc471ff
cmp ax, 0x22
je 0xbc47209
inc esi
inc esi
mov ebx, esi
movzx eax, word [esi]
test ax, ax
jne 0xbc471f5
jmp 0xbc47212
mov dword [ebp - 0x1c], 2
mov ebx, esi
movzx eax, word [ebx]
mov dword [ebp + 0xc], eax
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x18]
push 0x104
push 0xbc41440
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
add eax, eax
mov dword [ebp - 0x20], eax
je 0xbc4726b
cmp eax, 0x208
jae 0xbc47260
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0xbc47259
test al, 0x10
jne 0xbc4726b
add dword [ebp - 0x20], 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0xbc4726b
cmp eax, 0x208
jb 0xbc472b3
mov ax, word [ebp + 0xc]
mov word [ebx], ax
xor eax, eax
mov dword [ebp + 8], edi
cmp word [esi], ax
je 0xbc472cf
cmp dword [ebp - 0x28], eax
je 0xbc472cf
inc esi
inc esi
mov ebx, esi
mov byte [ebp - 0xd], 1
mov dword [ebp + 8], edi
jmp 0xbc472a6
cmp ax, 0x20
je 0xbc47210
cmp ax, 9
je 0xbc47210
inc esi
inc esi
mov ebx, esi
movzx eax, word [esi]
test ax, ax
jne 0xbc4728e
jmp 0xbc47212
mov ax, word [ebp + 0xc]
mov esi, ebx
sub esi, dword [ebp + 8]
mov word [ebx], ax
mov eax, dword [ebp - 0x18]
sar esi, 1
add esi, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0xbc473d4
cmp dword [ebp - 0x1c], eax
jne 0xbc47306
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], edi
call fcn.0bc47e61
mov ebx, dword [ebp + 8]
jmp 0xbc472f6
movzx eax, word [ebx]
cmp ax, 0x20
je 0xbc472fe
cmp ax, 9
je 0xbc472fe
inc ebx
inc ebx
cmp word [ebx], 0
jne 0xbc472e5
jmp 0xbc47311
movzx eax, word [ebx]
mov dword [ebp + 0xc], eax
jmp 0xbc4730c
lea eax, [edi + 2]
mov dword [ebp + 8], eax
xor eax, eax
mov word [ebx], ax
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.0bc486ab
mov ax, word [ebp + 0xc]
mov word [ebx], ax
mov eax, dword [ebp - 0x34]
mov esi, ebx
sub esi, dword [ebp + 8]
mov dword [ebp + 8], eax
sar esi, 1
add esi, dword [ebp - 0x1c]
jmp 0xbc473e0
test edi, edi
je 0xbc473bb
cmp word [edi], 0
je 0xbc473bb
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0xbc47345
sub eax, edx
sar eax, 1
mov esi, eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0xbc4737c
movzx eax, word [edi + esi*2]
test ax, ax
je 0xbc473d9
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
jne 0xbc473d9
cmp word [edi], 0x22
jne 0xbc473b7
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 0xbc473b7
cmp word [edi + esi*2 + 2], 0x22
jne 0xbc473b7
add esi, 2
movzx eax, word [edi + esi*2]
test ax, ax
je 0xbc473d9
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
jne 0xbc473d9
xor esi, esi
jmp 0xbc473d9
mov esi, eax
mov edi, eax
lea ecx, [esi + 2]
mov ax, word [esi]
inc esi
inc esi
test ax, ax
jne 0xbc473c2
sub esi, ecx
sar esi, 1
mov byte [ebp - 0xe], 1
xor eax, eax
inc eax
je 0xbc473e0
mov dword [ebp - 0x24], 1
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
call fcn.0bc486ab
mov ecx, dword [ebp - 0x14]
lea eax, [edi + esi*2]
add ecx, 0x10
push eax
call fcn.0bc486ab
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.0bc48bf6
cmp byte [ebp - 0xe], 0
jne 0xbc47429
cmp byte [ebp - 0xd], 0
je 0xbc47415
test ebx, ebx
jne 0xbc47429
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 8]
push ecx
lea ecx, [eax + 0x20]
call fcn.0bc4864b
jmp 0xbc474b3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0xbc4742e
sub eax, edx
sar eax, 1
lea esi, [eax + 3]
lea eax, [esi + esi]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
jne 0xbc47456
and dword [ebp - 0x24], eax
jmp 0xbc474b3
push 0xbc4143c
push esi
push eax
call fcn.0bc47085
cmp byte [ebp - 0xd], 0
je 0xbc47473
movzx eax, word [ebx]
mov dword [ebp - 0x28], eax
xor eax, eax
mov word [ebx], ax
push edi
mov edi, dword [ebp + 0xc]
push esi
push edi
call fcn.0bc470bf
push 0xbc4143c
push esi
push edi
call fcn.0bc470bf
cmp byte [ebp - 0xd], 0
je 0xbc4749f
mov ax, word [ebp - 0x28]
push ebx
push esi
push edi
mov word [ebx], ax
call fcn.0bc470bf
mov ecx, dword [ebp - 0x14]
push edi
add ecx, 0x20
call fcn.0bc486ab
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push eax
push ecx
push 0xbc41408
push 9
mov edi, 0xbc4144c
push edi
call sym.IEShims.dll_IEShims_Uninitialize
push dword [esi + 0x10]
push 0xbc413d8
push 9
push edi
call sym.IEShims.dll_IEShims_Uninitialize
mov ebx, dword [ebp - 0x24]
add esp, 0x28
jmp 0xbc4717b