Function at 0x1004c18
Capabilities:
Check if file exists
Get common file path
Get disk information
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push 0
mov esi, 0x10013cc
push 0
push esi
call fcn.01003e0b
mov edi, eax
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x1004c6a
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.01003cb8
call fcn.010056fe
mov dword [0x100b704], eax
xor eax, eax
jmp 0x1004ede
push edi
push ebx
push esi
call fcn.01003e0b
test eax, eax
jne 0x1004c99
push eax
push 0x10
push eax
push eax
push 0x4b1
push eax
call fcn.01003cb8
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x100b704], 0x80070714
jmp 0x1004c63
push 0x10013ac
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 1
test eax, eax
pop edi
jne 0x1004cb2
mov dword [0x100b6d0], edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [0x100abbe]
test al, al
je 0x1004cfd
cmp al, 0x5c
jne 0x1004cd4
cmp byte [0x100abbf], al
jne 0x1004cd4
xor esi, esi
xor eax, eax
jmp 0x1004cd8
mov eax, edi
xor esi, esi
push eax
push esi
push 0x100abbe
call fcn.01004b1a
test eax, eax
jne 0x1004d4f
push esi
push 0x10
push esi
push esi
push 0x4be
push esi
call fcn.01003cb8
jmp 0x1004c63
xor eax, eax
cmp dword [0x100aaa4], eax
jne 0x1004ec6
cmp dword [0x100b6d0], eax
jne 0x1004ec6
mov esi, 0x100ae84
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1004d56
push 3
push edi
push esi
call fcn.01004b1a
test eax, eax
jne 0x1004d4f
push esi
call fcn.0100226b
test eax, eax
jne 0x1004d56
push edi
push edi
push esi
call fcn.01004b1a
test eax, eax
je 0x1004d56
mov eax, edi
jmp 0x1004ede
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push 0x10014a8
push eax
call edi
cmp byte [ebp - 0x104], 0x5a
jg 0x1004e92
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, eax
cmp ebx, 6
je 0x1004d90
cmp ebx, 3
jne 0x1004da2
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1004dd0
cmp ebx, 2
jne 0x1004e08
cmp byte [ebp - 0x104], 0x41
je 0x1004e08
cmp byte [ebp - 0x104], 0x42
je 0x1004e08
lea eax, [ebp - 0x104]
push eax
call fcn.01005ae5
test eax, eax
je 0x1004e08
cmp eax, 0x19000
jb 0x1004e08
xor ebx, ebx
lea eax, [ebp - 0x104]
push ebx
push 3
push eax
call fcn.01004f82
test eax, eax
jne 0x1004e13
lea eax, [ebp - 0x104]
push eax
call fcn.0100226b
test eax, eax
jne 0x1004e08
push ebx
lea eax, [ebp - 0x104]
push 1
push eax
call fcn.01004f82
test eax, eax
jne 0x1004e13
inc byte [ebp - 0x104]
jmp 0x1004d6a
lea eax, [ebp - 0x104]
push eax
call fcn.0100226b
test eax, eax
je 0x1004e35
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push 0x1001498
push eax
call fcn.01005a4d
lea eax, [ebp - 0x104]
push eax
call fcn.01002248
test eax, eax
jne 0x1004e67
inc byte [ebp - 0x104]
and byte [ebp - 0x101], al
jmp 0x1004d6a
lea eax, [ebp - 0x104]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
push esi
call edi
push ebx
push 1
push esi
call fcn.01004b1a
test eax, eax
jne 0x1004ec1
jmp 0x1004d6a
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 4
lea eax, [ebp - 0x104]
push 3
push eax
call fcn.01004f82
test eax, eax
je 0x1004c63
jmp 0x1004d5c
push 1
pop eax
jmp 0x1004ede
push eax
push eax
push 0x1002ca1
push eax
push 0x7d2
push dword [0x100b6dc]
call fcn.0100592b
pop edi
pop esi
pop ebx
leave
ret