Function at 0x490910
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
xor ecx, ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x490d4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
cmp byte [0x4e9c76], 0
je 0x490b7a
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push 0x490d60
lea eax, [ebp - 0x84]
xor edx, edx
mov dl, byte [ebp - 1]
add edx, 0x41
dec edx
call fcn.00404b40
push dword [ebp - 0x84]
push 0x490d70
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00404cd8
mov eax, dword [ebp - 0x80]
call fcn.00404e18
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je case.0x490b02.0
lea eax, [ebp - 0x88]
xor edx, edx
mov dl, byte [ebp - 1]
add edx, 0x41
dec edx
call fcn.00404b40
lea eax, [ebp - 0x88]
mov edx, 0x490d7c
call fcn.00404c20
mov eax, dword [ebp - 0x88]
call fcn.00404e18
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x490a7a
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x18
call fcn.004034fc
mov eax, dword [ebp - 8]
mov word [eax], 4
mov eax, dword [ebp - 8]
mov word [eax + 2], 1
push 0
lea eax, [ebp - 0x20]
push eax
push 0x18
lea eax, [ebp - 0x7a]
push eax
push 0
push 0
push 0x2404c
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0x11], 0
je 0x490a5b
mov eax, dword [ebp - 0x66]
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x7a]
imul dword [ebp - 0x6e]
imul dword [ebp - 0x6a]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
jmp 0x490a6f
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 0x800
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 0x57800
mov al, byte [ebp - 0x11]
mov byte [ebp - 9], al
jmp 0x490d2c
push 0
lea eax, [ebp - 0x10]
push eax
push 0x18
lea eax, [ebp - 0x7a]
push eax
push 0
push 0
push 0x70000
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0x11], 0
je case.0x490b02.0
mov eax, dword [ebp - 8]
mov word [eax + 2], 0
mov eax, dword [ebp - 0x7a]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x6e]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x6a]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x66]
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x7a]
imul dword [ebp - 0x6e]
imul dword [ebp - 0x6a]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x72]
cmp eax, 0x16
ja case.0x490b02.0
mov al, byte [eax + 0x490b09]
jmp dword [eax*4 + 0x490b20]
mov eax, dword [ebp - 8]
mov word [eax], 0
jmp case.0x490b02.0
mov eax, dword [ebp - 8]
mov word [eax], 1
mov eax, dword [ebp - 8]
mov word [eax + 2], 1
jmp case.0x490b02.0
mov eax, dword [ebp - 8]
mov word [eax], 2
mov eax, dword [ebp - 8]
mov word [eax + 2], 1
jmp case.0x490b02.0
mov eax, dword [ebp - 8]
mov word [eax], 3
jmp case.0x490b02.0
cmp byte [0x4e9c44], 0
je case.0x490b02.0
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x1c]
dec eax
je 0x490ba9
dec eax
je 0x490baf
jmp 0x490bb3
mov byte [ebp - 0x62], 1
jmp 0x490bb3
mov byte [ebp - 0x62], 0
xor eax, eax
mov al, byte [ebp - 1]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x62]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x860
mov dword [ebp - 0x30], 0x440d
mov dword [ebp - 0x24], 1
push 0
lea eax, [ebp - 0x10]
push eax
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, dword [0x4e9c50]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x490bff
test byte [ebp - 0x24], 1
je 0x490c03
xor eax, eax
jmp 0x490c05
mov al, 1
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
je 0x490c7c
movzx eax, word [ebp - 0x5e]
movzx edx, word [ebp - 0x4c]
imul edx
movzx edx, word [ebp - 0x4e]
imul edx
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x14]
jbe 0x490c3c
movzx eax, word [ebp - 0x5e]
movzx edx, word [ebp - 0x4c]
imul edx
movzx edx, word [ebp - 0x4e]
imul edx
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
movzx eax, word [ebp - 0x53]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x14]
jbe 0x490c52
movzx eax, word [ebp - 0x53]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x46]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x14]
jbe 0x490c66
mov eax, dword [ebp - 0x46]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
movzx eax, word [ebp - 0x5b]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x10]
jbe 0x490c7c
movzx eax, word [ebp - 0x5b]
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jle 0x490b9e
cmp byte [ebp - 0x11], 0
je case.0x490b02.0
mov eax, dword [ebp - 8]
mov word [eax + 2], 0
movzx eax, word [ebp - 0x4c]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
movzx eax, word [ebp - 0x5e]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
movzx eax, word [ebp - 0x4e]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
xor eax, eax
mov al, byte [ebp - 0x61]
cmp eax, 9
ja case.0x490cca.0
mov al, byte [eax + 0x490cd1]
jmp dword [eax*4 + 0x490cdb]
mov eax, dword [ebp - 8]
mov word [eax], 1
jmp case.0x490cca.0
mov eax, dword [ebp - 8]
mov word [eax], 3
jmp case.0x490cca.0
test byte [ebp - 0x60], 1
jne 0x490d0f
mov eax, dword [ebp - 8]
mov word [eax], 2
jmp case.0x490cca.0
mov eax, dword [ebp - 8]
mov word [eax], 0
test byte [ebp - 0x60], 1
jne case.0x490b02.0
mov eax, dword [ebp - 8]
mov word [eax + 2], 1
mov al, byte [ebp - 0x11]
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490d51
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.0040497c
ret