Function at 0x4920c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ae62
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x45], 0
mov word [ebp - 0x1c], 0x20
mov word [ebp - 0x1a], 0x3a
mov word [ebp - 0x18], 0x5c
mov word [ebp - 0x16], 0
mov ecx, 9
mov esi, 0x4b08e8
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
jmp 0x49213c
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x20
jge 0x4923c6
movzx ecx, byte [ebp - 0x45]
test ecx, ecx
jne 0x4923c6
mov dword [ebp - 0x58], 0
mov edx, 1
mov ecx, dword [ebp - 0x50]
shl edx, cl
and edx, dword [ebp - 0x10]
jne 0x49216a
jmp 0x492133
mov eax, dword [ebp - 0x50]
add eax, 0x41
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 3
je 0x49218f
cmp dword [ebp - 0x54], 6
je 0x49218f
jmp 0x492133
mov edx, dword [ebp - 0x4c]
add edx, 0x30
mov word [ebp - 0x22], dx
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
je 0x4923c1
mov dword [ebp - 0x74], 0
push 0x18
push 0
lea edx, [ebp - 0x70]
push edx
call fcn.00452150
add esp, 0xc
push 0
lea eax, [ebp - 0x74]
push eax
push 0x18
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 0x74080
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx eax, byte [ebp - 0x6d]
test eax, eax
jg 0x49220b
jmp 0x4923b7
mov byte [ebp - 0x75], 0
movzx edx, byte [ebp - 0x6d]
mov ecx, dword [ebp - 0x50]
sar edx, cl
and edx, 0x10
neg edx
sbb edx, edx
and edx, 0xffffffb5
add edx, 0xec
mov byte [ebp - 0x75], dl
push 0x21
push 0
lea eax, [ebp - 0x2b0]
push eax
call fcn.00452150
add esp, 0xc
push 0x210
push 0
lea ecx, [ebp - 0x28c]
push ecx
call fcn.00452150
add esp, 0xc
lea edx, [ebp - 0x74]
push edx
mov al, byte [ebp - 0x50]
push eax
mov cl, byte [ebp - 0x75]
push ecx
lea edx, [ebp - 0x28c]
push edx
lea eax, [ebp - 0x2b0]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0048ecb0
add esp, 0x18
movzx edx, al
test edx, edx
je 0x4923b7
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x2b4], ecx
cmp dword [ebp - 0x2b8], 0
je 0x4923b7
cmp dword [ebp - 0x2b4], 0x2e
jbe 0x4923b7
push 0x13
push 0xa
mov edx, dword [ebp - 0x2b8]
push edx
lea eax, [ebp - 0x2d4]
push eax
call fcn.004915f0
add esp, 0x10
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp - 0x310]
mov dword [ebp - 0x314], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x314]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d4]
call fcn.00409a80
push 0x2e
push 0x1b
mov eax, dword [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x2f0]
push ecx
call fcn.004915f0
add esp, 0x10
mov dword [ebp - 0x318], eax
mov edx, dword [ebp - 0x318]
mov dword [ebp - 0x31c], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x31c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f0]
call fcn.00409a80
push 0x1a
push 0x17
mov ecx, dword [ebp - 0x2b8]
push ecx
lea edx, [ebp - 0x30c]
push edx
call fcn.004915f0
add esp, 0x10
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x324], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x324]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30c]
call fcn.00409a80
mov byte [ebp - 0x45], 1
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x492133
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret