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

Disassembly:
push 0xffffffffffffffff
push 0x1009a35c
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x4a8]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x9a]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0xa0], ax
call fcn.10079c60
add esp, 0xc
push 0x104
lea edx, [esp + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov word [esp + 0x44], ax
mov edi, 7
lea eax, [esp + 0x94]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10055e32
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x98]
lea esi, [esp + 0x44]
call fcn.10007450
mov dword [esp + 0x4b0], ebx
xor ecx, ecx
push ebx
mov eax, 0x100a6f30
lea esi, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
call fcn.10007450
mov byte [esp + 0x4b0], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
push 0x100c49e4
neg ecx
or ecx, eax
push ecx
call fcn.10076988
mov ebp, eax
add esp, 8
mov dword [esp + 0x20], ebp
cmp ebp, ebx
jne 0x10055f14
mov byte [esp + 0x4b0], bl
mov edi, 8
cmp dword [esp + 0x3c], edi
jb 0x10055ed2
mov eax, dword [esp + 0x28]
push eax
call fcn.100755e2
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], cx
mov dword [esp + 0x4b0], 0xffffffff
cmp dword [esp + 0x58], edi
jb 0x10055f04
mov edx, dword [esp + 0x44]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov dword [esp + 0x58], esi
mov word [esp + 0x44], ax
jmp 0x10056149
push ebp
push esi
call edi
test eax, eax
je 0x100560e0
mov edi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x10055f30
cmp word [edi], bx
je 0x100560dc
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10055f51
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x60]
call fcn.10007450
mov byte [esp + 0x4b0], 2
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1005608d
lea edx, [esp + 0x78]
push edx
mov eax, esi
push eax
mov ecx, 2
xor edx, edx
call fcn.10006760
mov byte [esp + 0x4b0], 3
push 0x206
lea edx, [esp + 0x2a2]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x2a8], cx
call fcn.10079c60
mov eax, dword [esp + 0x88]
add esp, 0xc
cmp dword [esp + 0x90], 8
jae 0x10055fd5
lea eax, [esp + 0x7c]
push eax
push str.._s
mov ecx, 0x104
lea ebx, [esp + 0x2a4]
call fcn.10001fd0
add esp, 8
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
lea eax, [esp + 0x2b4]
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x10056053
push ebx
lea ecx, [esp + 0x20]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push 0x90078
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x1005604c
mov eax, 1
cmp dword [esp + 0x18], eax
jne 0x1005604c
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x4b0], 2
cmp dword [esp + 0x90], 8
jb 0x10056072
mov eax, dword [esp + 0x7c]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 7
mov word [esp + 0x7c], cx
xor ebx, ebx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10056092
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
mov byte [esp + 0x4b0], 1
cmp dword [esp + 0x74], 8
jb 0x100560c1
mov edx, dword [esp + 0x60]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
cmp edi, ebx
jne 0x10055f30
mov ebp, dword [esp + 0x20]
push ebp
call fcn.10076993
add esp, 4
mov byte [esp + 0x4b0], bl
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x10056108
mov ecx, dword [esp + 0x28]
push ecx
call fcn.100755e2
add esp, 4
mov edi, 7
xor edx, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
mov dword [esp + 0x4b0], 0xffffffff
cmp dword [esp + 0x58], esi
jb 0x1005613a
mov eax, dword [esp + 0x44]
push eax
call fcn.100755e2
add esp, 4
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x58], edi
mov word [esp + 0x44], cx
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + 0x4a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.100755ed
add esp, 0x4a0
ret