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

Disassembly:
push ecx
push ebp
mov ebp, ecx
cmp dword [ebp + 0x10], 0
mov dword [esp + 4], ebp
je 0x1007cd53
push 0
call fcn.1007ca10
test eax, eax
je 0x1007cd53
mov eax, 0xfffffff5
pop ebp
pop ecx
ret 0xc
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x1007cdaf
mov ebx, dword [esp + 0x18]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007cd67
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007cd77
sub eax, esi
lea eax, [eax + edx + 1]
push eax
call fcn.1007f4b3
mov esi, eax
add esp, 4
test esi, esi
je 0x1007d058
mov edx, esi
mov eax, edi
sub edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1007cda0
jmp 0x1007cf61
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
call edi
mov esi, eax
push esi
call fcn.1007f4b3
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1007d058
push ebx
push esi
call edi
test eax, eax
je 0x1007d08b
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007cde1
mov edi, dword [esp + 0x18]
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007cdf5
sub eax, esi
lea ecx, [eax + edx + 6]
push ecx
call fcn.1007f4b3
mov esi, eax
add esp, 4
test esi, esi
jne 0x1007ce27
push ebx
call fcn.1007f35c
add esp, 4
pop edi
pop esi
pop ebx
mov eax, 0xfffffffd
pop ebp
pop ecx
ret 0xc
push edi
push ebx
push str._s_s.sys
push esi
call fcn.100807c6
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1007cf54
push ebx
call fcn.1007f35c
push esi
call fcn.1007f35c
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
add esp, 8
push 0
push 0
call ebp
mov esi, eax
mov eax, str._system32Drivers_
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007ce70
sub eax, edx
add eax, esi
push eax
call fcn.1007f4b3
mov edi, eax
add esp, 4
test edi, edi
je 0x1007d058
push esi
push edi
call ebp
test eax, eax
jne 0x1007ce9c
push edi
jmp 0x1007d08c
mov eax, edi
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1007cea0
mov edx, dword [str._system32Drivers_]
mov dword [eax], edx
mov ecx, dword [0x100c4fd4]
mov dword [eax + 4], ecx
mov edx, dword [0x100c4fd8]
mov dword [eax + 8], edx
mov ecx, dword [0x100c4fdc]
mov dword [eax + 0xc], ecx
mov dx, word [0x100c4fe0]
mov word [eax + 0x10], dx
mov cl, byte [0x100c4fe2]
mov byte [eax + 0x12], cl
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007cee4
mov ebp, dword [esp + 0x18]
sub eax, edx
mov edx, eax
mov eax, ebp
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007cef8
sub eax, esi
lea edx, [eax + edx + 5]
push edx
call fcn.1007f4b3
mov esi, eax
add esp, 4
test esi, esi
je 0x1007d058
push ebp
push edi
push 0x100c4fc4
push esi
call fcn.100807c6
push edi
call fcn.1007f35c
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1007cf50
push esi
call fcn.1007f35c
add esp, 4
pop edi
pop esi
pop ebx
mov eax, 0xfffffffc
pop ebp
pop ecx
ret 0xc
mov ebp, dword [esp + 0x10]
push ebx
call fcn.1007f35c
mov ebx, dword [esp + 0x1c]
add esp, 4
mov eax, ebx
mov dword [ebp + 8], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007cf70
sub eax, edx
inc eax
push eax
call fcn.1007f4b3
xor edi, edi
add esp, 4
mov dword [ebp + 4], eax
cmp eax, edi
jne 0x1007cfa8
mov eax, dword [ebp + 8]
push eax
call fcn.1007f35c
add esp, 4
mov dword [ebp + 8], edi
pop edi
pop esi
pop ebx
mov eax, 0xfffffffd
pop ebp
pop ecx
ret 0xc
mov ecx, ebx
mov edx, eax
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1007cfb0
mov esi, dword [esp + 0x20]
cmp esi, edi
jne 0x1007cfc4
mov esi, ebx
cmp byte [esi], 0x5c
je 0x1007d01f
cmp byte [esi + 1], 0x5c
je 0x1007d01f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007cfd4
sub eax, edx
add eax, 5
push eax
call fcn.1007f4b3
add esp, 4
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x1007cfff
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007f35c
mov edx, dword [ebp + 4]
push edx
jmp 0x1007d04a
push esi
push str.._s
push eax
call fcn.100807c6
add esp, 0xc
pop edi
pop esi
pop ebx
mov dword [ebp + 0x10], 1
xor eax, eax
pop ebp
pop ecx
ret 0xc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007d024
sub eax, edx
push eax
call fcn.1007f4b3
add esp, 4
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x1007d065
mov eax, dword [ebp + 8]
push eax
call fcn.1007f35c
mov ecx, dword [ebp + 4]
push ecx
mov dword [ebp + 8], edi
call fcn.1007f35c
add esp, 8
mov dword [ebp + 4], edi
pop edi
pop esi
pop ebx
mov eax, 0xfffffffd
pop ebp
pop ecx
ret 0xc
mov ecx, esi
mov edx, eax
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1007d070
pop edi
pop esi
pop ebx
mov dword [ebp + 0x10], 1
xor eax, eax
pop ebp
pop ecx
ret 0xc
push ebx
call fcn.1007f35c
add esp, 4
pop edi
pop esi
pop ebx
mov eax, 0xfffffff3
pop ebp
pop ecx
ret 0xc