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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0
mov esi, 0x10013cc
push 0
push esi
call fcn.01003c41
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 0x1004aa0
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.01003ae7
call fcn.010055be
mov dword [0x100f904], eax
xor eax, eax
jmp 0x1004d30
push edi
push ebx
push esi
call fcn.01003c41
test eax, eax
jne 0x1004acf
push eax
push 0x10
push eax
push eax
push 0x4b1
push eax
call fcn.01003ae7
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x100f904], 0x80070714
jmp 0x1004a99
push 0x10013ac
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 1
test eax, eax
pop edi
jne 0x1004ae8
mov dword [0x100f8d0], edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [0x100edbe]
test al, al
je 0x1004b33
cmp al, 0x5c
jne 0x1004b0a
cmp byte [0x100edbf], al
jne 0x1004b0a
xor esi, esi
xor eax, eax
jmp 0x1004b0e
mov eax, edi
xor esi, esi
push eax
push esi
push 0x100edbe
call fcn.01004950
test eax, eax
jne 0x1004b85
push esi
push 0x10
push esi
push esi
push 0x4be
push esi
call fcn.01003ae7
jmp 0x1004a99
xor eax, eax
cmp dword [0x100eca4], eax
jne 0x1004d18
cmp dword [0x100f8d0], eax
jne 0x1004d18
mov esi, 0x100f084
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1004b8c
push 3
push edi
push esi
call fcn.01004950
test eax, eax
jne 0x1004b85
push esi
call fcn.01002109
test eax, eax
jne 0x1004b8c
push edi
push edi
push esi
call fcn.01004950
test eax, eax
je 0x1004b8c
mov eax, edi
jmp 0x1004d30
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x114]
push 0x10014a8
push eax
call edi
cmp byte [ebp - 0x114], 0x5a
jg 0x1004ce4
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, eax
cmp ebx, 6
je 0x1004bc6
cmp ebx, 3
jne 0x1004bd8
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1004c22
cmp ebx, 2
jne 0x1004c5a
cmp byte [ebp - 0x114], 0x41
je 0x1004c5a
cmp byte [ebp - 0x114], 0x42
je 0x1004c5a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1004c5a
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
cmp eax, 0x5f5e100
jb 0x1004c5a
xor ebx, ebx
lea eax, [ebp - 0x114]
push ebx
push 3
push eax
call fcn.01004e1b
test eax, eax
jne 0x1004c65
lea eax, [ebp - 0x114]
push eax
call fcn.01002109
test eax, eax
jne 0x1004c5a
push ebx
lea eax, [ebp - 0x114]
push 1
push eax
call fcn.01004e1b
test eax, eax
jne 0x1004c65
inc byte [ebp - 0x114]
jmp 0x1004ba0
lea eax, [ebp - 0x114]
push eax
call fcn.01002109
test eax, eax
je 0x1004c87
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x114]
push 0x1001498
push eax
call fcn.01005925
lea eax, [ebp - 0x114]
push eax
call fcn.010020e6
test eax, eax
jne 0x1004cb9
inc byte [ebp - 0x114]
and byte [ebp - 0x111], al
jmp 0x1004ba0
lea eax, [ebp - 0x114]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x114]
push eax
push esi
call edi
push ebx
push 1
push esi
call fcn.01004950
test eax, eax
jne 0x1004d13
jmp 0x1004ba0
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 4
lea eax, [ebp - 0x114]
push 3
push eax
call fcn.01004e1b
test eax, eax
je 0x1004a99
jmp 0x1004b92
push 1
pop eax
jmp 0x1004d30
push eax
push eax
push 0x1002b36
push eax
push 0x7d2
push dword [0x100f8dc]
call fcn.010057eb
pop edi
pop esi
pop ebx
leave
ret