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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
push edi
push 5
pop ecx
mov esi, 0x715d1bd0
lea edi, [ebp - 0x228]
push 0x3a
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x213]
push dword [ebp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
push 0x715d1bb0
stosb byte es:[edi], al
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
call fcn.715dd74c
pop ecx
pop ecx
call fcn.715d49c8
test eax, eax
je 0x715d4dda
push 1
mov esi, 0x715d1bac
pop eax
lea ecx, [ebp - 0x228]
push eax
push 0x22
pop edi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp + 0x10]
push esi
push eax
mov dword [0x715e4530], ecx
call fcn.715d65a6
mov dword [ebp - 0x14], eax
push 1
push edi
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.715d65a6
mov dword [ebp - 0x20], eax
push 1
push edi
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.715d65a6
mov dword [ebp - 0x1c], eax
push 1
push edi
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.715d65a6
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], eax
je 0x715d4c75
push dword [ebp - 0x1c]
call fcn.715d8d93
mov ebx, eax
test bl, 1
je 0x715d4c83
mov word [0x715e4522], 1
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x715d4dd3
cmp byte [esi], 0
je 0x715d4dd3
lea eax, [ebp - 0x10]
mov edi, 0x104
push eax
lea eax, [ebp - 0x128]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x715d4cbf
mov dword [ebp - 8], 0x474
jmp 0x715d4d63
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x715d4d68
lea eax, [ebp - 0x128]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x715d4cf3
mov dword [ebp - 8], 0x466
jmp 0x715d4dda
lea eax, [ebp - 0x128]
push 0x715d1ba8
push eax
call fcn.715e1804
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov edx, eax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x14], edx
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax + 2]
cmp eax, 0x104
jg 0x715d4d5c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.715e1804
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x715d4d8f
mov dword [ebp - 8], 0x479
mov dword [ebp - 0xc], esi
jmp 0x715d4dda
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
and byte [eax], 0
lea eax, [ebp - 0x128]
mov byte [ebp - 1], cl
push eax
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 1]
mov byte [eax], cl
push dword [ebp - 0x24]
lea eax, [ebp - 0x32c]
not ebx
and ebx, 2
or ebx, 5
push ebx
push 0
push eax
lea eax, [ebp - 0x128]
push dword [ebp - 0x20]
push eax
call fcn.715d531f
test eax, eax
jl 0x715d4dda
call fcn.715d4a3f
lea eax, [ebp - 0x128]
push eax
push 0x715d1b84
call fcn.715dd74c
pop ecx
xor eax, eax
pop ecx
jmp 0x715d4e16
mov dword [ebp - 8], 0x471
xor esi, esi
cmp dword [ebp - 8], esi
je 0x715d4df6
push esi
push 0x10
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [0x715e4534]
call fcn.715d6f11
cmp dword [ebp - 0x18], esi
je 0x715d4e00
call fcn.715d4a3f
lea eax, [ebp - 0x128]
push eax
push 0x715d1b60
call fcn.715dd74c
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10