Function at 0x604bc0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x604bc9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x605051
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dl, 1
jne 0x604c10
lea edx, [ebp - 0x28]
mov eax, dword [0x6e457c]
mov eax, dword [eax]
call fcn.005d1e94
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.00404e54
mov byte [ebp - 0x19], 0
jmp 0x604c2e
lea edx, [ebp - 0x2c]
mov eax, dword [0x6e5554]
mov eax, dword [eax]
call fcn.005d1e94
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00404e54
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0xc]
call fcn.00404ba0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x604c71
inc esi
xor ebx, ebx
push dword [ebp - 0xc]
push 0x60506c
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f4c
inc ebx
dec esi
jne 0x604c48
cmp byte [ebp + 8], 1
jne 0x604cc7
push 0
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [0x6e34ec]
mov eax, dword [eax]
call fcn.005d1e94
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea edx, [ebp - 0x48]
mov ecx, 1
pop eax
call fcn.0040bc78
mov eax, dword [ebp - 0x34]
mov cx, word [0x605070]
mov dl, 3
call fcn.004aec68
mov word [ebp - 0x22], ax
cmp byte [ebp + 8], 0
je 0x604cd8
cmp word [ebp - 0x22], 1
jne 0x604fb0
mov dl, 1
mov eax, dword [0x4946e0]
call fcn.00495798
mov dword [ebp - 0x20], eax
call sub.kernel32.dll_GetLogicalDrives
mov esi, eax
mov ecx, dword [0x6e3f1c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x564304]
call fcn.004aa110
mov edx, dword [0x6e37d0]
mov dword [edx], eax
mov eax, dword [0x6e37d0]
mov eax, dword [eax]
call fcn.0048b07c
lea eax, [ebp - 0x10]
mov edx, 0x104
call fcn.00405218
push 0x104
lea eax, [ebp - 0x10]
call fcn.004050e4
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00405218
mov al, byte [ebp - 0x19]
push eax
lea eax, [ebp - 0x50]
mov ecx, 0x60507c
mov edx, dword [ebp - 0x10]
call fcn.00404ed8
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
call fcn.004054bc
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 4]
mov ecx, dword [ebp - 0x20]
call fcn.006050b0
mov ebx, 2
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x604de1
mov ecx, ebx
mov eax, 1
shl eax, cl
mov edx, eax
mov ecx, edx
and ecx, esi
cmp ecx, edx
jne 0x604de1
lea eax, [ebp - 0x54]
lea edx, [ebx + 0x61]
call fcn.00404d88
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
mov ecx, 0x605088
call fcn.00404ed8
mov eax, dword [ebp - 0x18]
call fcn.0040508c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x604dc4
cmp eax, 3
jne 0x604de1
mov al, byte [ebp - 0x19]
push eax
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x18]
call fcn.004054bc
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 4]
mov ecx, dword [ebp - 0x20]
call fcn.006050b0
inc ebx
cmp ebx, 0x1a
jne 0x604d72
mov eax, dword [0x6e37d0]
mov eax, dword [eax]
call fcn.0048adbc
mov eax, dword [0x6e37d0]
mov eax, dword [eax]
call fcn.00403c70
cmp byte [ebp - 5], 1
jne 0x604fa8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x604ef6
lea eax, [ebp - 0xc]
call fcn.00404ba0
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x604e77
inc esi
xor ebx, ebx
lea eax, [ebp - 0x60]
mov ecx, 0x60506c
mov edx, dword [ebp - 0xc]
call fcn.00404ed8
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
call fcn.004054bc
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x64]
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x64]
pop eax
call fcn.00405554
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0xc]
call fcn.00404e54
inc ebx
dec esi
jne 0x604e33
push 0
lea eax, [ebp - 0x70]
mov ecx, 0x605094
mov edx, dword [ebp - 0x14]
call fcn.00404ed8
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
call fcn.004054bc
push dword [ebp - 0x6c]
lea edx, [ebp - 0x74]
mov eax, dword [0x6e4c84]
mov eax, dword [eax]
call fcn.005d1e94
push dword [ebp - 0x74]
push 0x60509c
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 0xc]
call fcn.004054bc
push dword [ebp - 0x78]
push 0x6050a4
lea edx, [ebp - 0x7c]
mov eax, dword [0x6e5258]
mov eax, dword [eax]
call fcn.005d1e94
push dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
mov edx, 6
call fcn.0040561c
mov eax, dword [ebp - 0x68]
mov cx, word [0x6050ac]
mov dl, 2
call fcn.004aec68
jmp 0x604fa8
lea eax, [ebp - 0xc]
call fcn.00404ba0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x604f39
inc esi
xor ebx, ebx
push dword [ebp - 0xc]
push 0x60506c
lea ecx, [ebp - 0x80]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x80]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f4c
inc ebx
dec esi
jne 0x604f10
push 0
lea edx, [ebp - 0x88]
mov eax, dword [0x6e64ac]
mov eax, dword [eax]
call fcn.005d1e94
push dword [ebp - 0x88]
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 0xc]
call fcn.004054bc
push dword [ebp - 0x8c]
push 0x6050a4
lea edx, [ebp - 0x90]
mov eax, dword [0x6e5258]
mov eax, dword [eax]
call fcn.005d1e94
push dword [ebp - 0x90]
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.0040561c
mov eax, dword [ebp - 0x84]
mov cx, word [0x6050ac]
mov dl, 2
call fcn.004aec68
mov eax, dword [ebp - 0x20]
call fcn.00403c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60505b
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.004052f0
lea eax, [ebp - 0x80]
call fcn.00404ba0
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.004052f0
lea eax, [ebp - 0x70]
call fcn.00404ba0
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.004052f0
lea eax, [ebp - 0x60]
call fcn.00404ba0
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004052f0
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00404bc4
lea eax, [ebp - 0x4c]
call fcn.004052d8
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004052f0
lea eax, [ebp - 0x30]
call fcn.00404ba0
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004052f0
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404bc4
ret