Function at 0x1004c74
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, 0x10013dc
push 0
push esi
call fcn.01003e69
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 0x1004cc6
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.01003d16
call fcn.01005763
mov dword [0x100c704], eax
xor eax, eax
jmp 0x1004f43
push edi
push ebx
push esi
call fcn.01003e69
test eax, eax
jne 0x1004cf5
push eax
push 0x10
push eax
push eax
push 0x4b1
push eax
call fcn.01003d16
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x100c704], 0x80070714
jmp 0x1004cbf
push 0x10013bc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 1
test eax, eax
pop edi
jne 0x1004d0e
mov dword [0x100c6d0], edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [0x100bbbe]
test al, al
je 0x1004d59
cmp al, 0x5c
jne 0x1004d30
cmp byte [0x100bbbf], al
jne 0x1004d30
xor esi, esi
xor eax, eax
jmp 0x1004d34
mov eax, edi
xor esi, esi
push eax
push esi
push 0x100bbbe
call fcn.01004b76
test eax, eax
jne 0x1004dab
push esi
push 0x10
push esi
push esi
push 0x4be
push esi
call fcn.01003d16
jmp 0x1004cbf
xor esi, esi
cmp dword [0x100baa4], esi
jne 0x1004f22
cmp dword [0x100c6d0], esi
jne 0x1004f22
mov esi, 0x100be84
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1004db2
push 3
push edi
push esi
call fcn.01004b76
test eax, eax
jne 0x1004dab
push esi
call fcn.0100228b
test eax, eax
jne 0x1004db2
push edi
push edi
push esi
call fcn.01004b76
test eax, eax
je 0x1004db2
mov eax, edi
jmp 0x1004f43
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push 0x10014b8
push eax
call edi
cmp byte [ebp - 0x104], 0x5a
jg 0x1004eee
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, eax
cmp ebx, 6
je 0x1004dec
cmp ebx, 3
jne 0x1004dfe
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1004e2c
cmp ebx, 2
jne 0x1004e64
cmp byte [ebp - 0x104], 0x41
je 0x1004e64
cmp byte [ebp - 0x104], 0x42
je 0x1004e64
lea eax, [ebp - 0x104]
push eax
call fcn.01005b4a
test eax, eax
je 0x1004e64
cmp eax, 0x19000
jb 0x1004e64
xor ebx, ebx
lea eax, [ebp - 0x104]
push ebx
push 3
push eax
call fcn.01004fe7
test eax, eax
jne 0x1004e6f
lea eax, [ebp - 0x104]
push eax
call fcn.0100228b
test eax, eax
jne 0x1004e64
push ebx
lea eax, [ebp - 0x104]
push 1
push eax
call fcn.01004fe7
test eax, eax
jne 0x1004e6f
inc byte [ebp - 0x104]
jmp 0x1004dc6
lea eax, [ebp - 0x104]
push eax
call fcn.0100228b
test eax, eax
je 0x1004e91
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push 0x10014a8
push eax
call fcn.01005ab2
lea eax, [ebp - 0x104]
push eax
call fcn.01002268
test eax, eax
jne 0x1004ec3
inc byte [ebp - 0x104]
and byte [ebp - 0x101], al
jmp 0x1004dc6
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.01004b76
test eax, eax
jne 0x1004f1d
jmp 0x1004dc6
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.01004fe7
test eax, eax
je 0x1004cbf
jmp 0x1004db8
push 1
pop eax
jmp 0x1004f43
push esi
push esi
push 0x1002cff
push esi
push 0x7d2
push dword [0x100c6dc]
call fcn.01005990
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret