Function at 0x10009340
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000936a
push 0
call fcn.10009790
test eax, eax
je 0x1000936a
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
pop ecx
ret 0xc
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100093c7
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call fcn.10009af1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10009646
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10009541
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
call ebx
mov edi, eax
push edi
call fcn.10009af1
mov esi, eax
add esp, 4
test esi, esi
je 0x10009646
push esi
push edi
call ebx
test eax, eax
je 0x10009683
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 6]
push eax
call fcn.10009af1
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10009437
push esi
call fcn.10009c2b
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x18]
push eax
push esi
push str._s_s.sys
push ebx
call fcn.1000a573
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10009541
push esi
call fcn.10009c2b
push ebx
call fcn.10009c2b
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
add esp, 8
push 0
push 0
call ebx
mov esi, eax
mov edi, str._system32Drivers_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
call fcn.10009af1
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10009646
push esi
push ebp
call ebx
test eax, eax
jne 0x100094aa
push ebp
jmp 0x10009684
mov edi, str._system32Drivers_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x18]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 5]
push eax
call fcn.10009af1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10009646
push esi
push ebp
push 0x10017f18
push ebx
call fcn.1000a573
push ebp
call fcn.10009c2b
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000953d
push ebx
call fcn.10009c2b
add esp, 4
mov eax, 0xfffffffc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ebp, dword [esp + 0x10]
mov dword [ebp + 8], ebx
mov ebx, dword [esp + 0x18]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.10009af1
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp + 4], edx
jne 0x10009585
mov eax, dword [ebp + 8]
push eax
call fcn.10009c2b
add esp, 4
mov dword [ebp + 8], 0
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x100095ae
mov esi, ebx
cmp byte [esi], 0x5c
je 0x1000960b
cmp byte [esi + 1], 0x5c
je 0x1000960b
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 4
push ecx
call fcn.10009af1
xor edi, edi
add esp, 4
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x100095eb
mov ecx, dword [ebp + 8]
push ecx
call fcn.10009c2b
mov edx, dword [ebp + 4]
mov dword [ebp + 8], edi
push edx
jmp 0x1000963b
push esi
push str.._s
push eax
call fcn.1000a573
add esp, 0xc
mov dword [ebp + 0x10], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call fcn.10009af1
mov edx, eax
xor edi, edi
add esp, 4
cmp edx, edi
mov dword [ebp + 0xc], edx
jne 0x10009653
mov eax, dword [ebp + 8]
push eax
call fcn.10009c2b
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], edi
push ecx
call fcn.10009c2b
add esp, 8
mov dword [ebp + 4], edi
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
pop ecx
ret 0xc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [ebp + 0x10], 1
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
call fcn.10009c2b
add esp, 4
mov eax, 0xfffffff3
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc