Function at 0x10049662
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x1004986d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10049795
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10049795
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x10049704
mov dword [ebp - 0x14], 1
jmp 0x10049708
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jl 0x1004971b
mov dword [ebp - 0x18], 1
jmp 0x1004971f
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jle 0x10049732
mov dword [ebp - 0x1c], 1
jmp 0x10049736
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jg 0x10049758
mov dword [ebp - 0x68], 1
jmp 0x1004975c
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x10049781
mov dword [ebp - 0x24], 1
jmp 0x10049785
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jg 0x10049795
and dword [ebp - 0x28], 0
jmp 0x1004979c
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x30b6
jl 0x100497c1
push 0xfffffffffffffff7
pop eax
test eax, eax
jne 0x100497c1
and dword [ebp - 0x30], 0
jmp 0x100497c8
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [eax]
cmp ecx, 9
jae 0x100497e7
mov eax, 0x930509b9
test eax, eax
je 0x100497e7
mov dword [ebp - 0xc], 1
jmp 0x100497eb
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
cmp dword [ebp - 0xc], 0
je 0x1004980a
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x1004980a
mov dword [ebp - 0x34], 1
jmp 0x1004980e
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
imul eax, dword [ebp - 0x34]
dec eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0xf11caf1e
je 0x10049831
mov dword [ebp - 0x3c], 1
jmp 0x10049835
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
je 0x10049848
mov dword [ebp - 0x40], 1
jmp 0x1004984c
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jge 0x1004985f
mov dword [ebp - 0x44], 1
jmp 0x10049863
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
jmp 0x10049892
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax]
test eax, eax
je 0x10049892
push 0x1ec6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esp, ebp
pop ebp
ret