Function at 0x420148
Capabilities:
Get disk information
Get disk information via ioctl
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x165
push 0
push 0
dec ecx
jne 0x420151
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
lea esi, [ebp - 0x1a]
xor eax, eax
push ebp
push 0x421636
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x41e234]
xor eax, eax
call fcn.0040a210
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x28], eax
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0xc]
call fcn.00403b60
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4363c4
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
lea eax, [ebp - 0xabc]
push eax
lea eax, [ebp - 0xac0]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00404180
mov eax, dword [ebp - 0xac0]
mov ecx, 4
xor edx, edx
call fcn.0040422c
mov eax, dword [ebp - 0xabc]
mov edx, 0x421650
call fcn.004041a8
jne 0x420208
mov byte [ebx + 0x70b], 1
mov eax, ebx
call fcn.00421e24
mov eax, esi
xor ecx, ecx
mov edx, 8
call fcn.00402b54
mov byte [esi + 6], 0xec
mov byte [esi + 1], 1
lea ecx, [ebx + 0xaa]
mov edx, esi
mov eax, ebx
call fcn.0041f094
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
je 0x42024c
mov eax, ebx
call fcn.0041fcf0
test al, al
jne 0x42024c
mov byte [ebp - 0x11], 0
cmp byte [ebp - 0x11], 0
je 0x4202a1
xor edx, edx
mov ax, word [ebx + 0x154]
call fcn.0040fea8
test al, al
jne 0x4202a1
xor edx, edx
mov ax, word [ebx + 0x14e]
call fcn.0040fea8
test al, al
je 0x4202a1
mov eax, esi
xor ecx, ecx
mov edx, 8
call fcn.00402b54
mov byte [esi + 6], 0xb0
mov byte [esi], 0xd8
mov byte [esi + 3], 0x4f
mov byte [esi + 4], 0xc2
xor ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.0041f094
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4202b4
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x4215ef
lea eax, [ebp - 0xac4]
push eax
lea eax, [ebx + 0xe0]
mov cl, 1
mov dl, 0x28
call fcn.00420070
mov edx, dword [ebp - 0xac4]
lea eax, [ebx + 0x4c]
call fcn.00403b60
lea edx, [ebp - 0xac8]
mov eax, dword [ebx + 0x4c]
call fcn.00414210
mov edx, dword [ebp - 0xac8]
lea eax, [ebx + 0x6f8]
call fcn.00403b60
lea eax, [ebp - 0xacc]
push eax
lea eax, [ebx + 0xbe]
mov cl, 1
mov dl, 0x14
call fcn.00420070
mov edx, dword [ebp - 0xacc]
lea eax, [ebx + 0x40]
call fcn.00403b60
lea eax, [ebp - 0xad0]
push eax
lea eax, [ebx + 0xd8]
mov cl, 1
mov dl, 8
call fcn.00420070
mov edx, dword [ebp - 0xad0]
lea eax, [ebx + 0x44]
call fcn.00403b60
cmp word [ebx + 0x25c], 1
jne 0x420359
mov byte [ebx + 0x70a], 1
mov byte [0x442bc1], 0x45
jmp 0x42037a
mov byte [0x442bc1], 0x36
mov ax, word [ebx + 0x25c]
cmp ax, 0x400
jbe 0x42037a
cmp ax, 0xffff
je 0x42037a
mov word [ebx + 0x70e], ax
cmp word [ebx + 0x14a], 0
je 0x420393
movzx eax, word [ebx + 0x14a]
call fcn.0040fea4
mov byte [ebx + 0x60], al
cmp byte [ebx + 0x60], 0xc
jbe 0x4203cd
lea edx, [ebp - 0xad8]
xor eax, eax
mov al, byte [ebx + 0x60]
call fcn.0040623c
mov ecx, dword [ebp - 0xad8]
lea eax, [ebp - 0xad4]
mov edx, 0x421664
call fcn.00403df4
mov eax, dword [ebp - 0xad4]
mov edx, dword [ebp - 4]
call fcn.0041e248
movzx eax, word [ebx + 0xd4]
shl eax, 9
mov dword [ebx + 0x64], eax
mov dl, 0xf
mov ax, word [ebx + 0x10a]
call fcn.0040fea8
test al, al
jne 0x42040f
mov dl, 0xe
mov ax, word [ebx + 0x10a]
call fcn.0040fea8
test al, al
je 0x42040f
xor edx, edx
mov ax, word [ebx + 0x10a]
call fcn.0040fea8
mov byte [ebx + 0x71], al
mov al, byte [ebx + 0x140]
and al, 0xff
inc eax
mov byte [ebx + 0x68], al
mov dl, 2
mov ax, word [ebx + 0x114]
call fcn.0040fea8
test al, al
je 0x420479
mov ax, word [ebx + 0x15a]
and ax, 0xff
test ax, ax
je 0x420453
mov ax, word [ebx + 0x15a]
and ax, 0xff
movzx eax, ax
call fcn.0040fea4
mov byte [ebx + 0x6a], al
mov ax, word [ebx + 0x15a]
shr ax, 8
test ax, ax
je 0x420479
mov ax, word [ebx + 0x15a]
shr ax, 8
movzx eax, ax
call fcn.0040fea0
mov byte [ebx + 0x69], al
mov dl, 1
mov ax, word [ebx + 0x14e]
call fcn.0040fea8
mov byte [ebx + 0x6b], al
cmp byte [ebx + 0x6b], 0
je 0x4204a6
mov ax, word [ebx + 0x15c]
and ax, 0x7fff
movzx eax, ax
add eax, eax
mov dword [ebx + 0x6e0], eax
mov dl, 0xc
mov ax, word [ebx + 0x120]
call fcn.0040fea8
mov byte [ebx + 0x6f], al
cmp byte [ebx + 0x6f], 0
je 0x4204ce
mov dl, 0xd
mov ax, word [ebx + 0x120]
call fcn.0040fea8
mov byte [ebx + 0x70], al
mov dl, 3
mov ax, word [ebx + 0x14e]
call fcn.0040fea8
mov byte [ebx + 0x76], al
mov dl, 5
mov ax, word [ebx + 0x14e]
call fcn.0040fea8
mov byte [ebx + 0x72], al
mov dl, 6
mov ax, word [ebx + 0x14e]
call fcn.0040fea8
mov byte [ebx + 0x74], al
mov dl, 0xa
mov ax, word [ebx + 0x14e]
call fcn.0040fea8
mov byte [ebx + 0x85], al
xor edx, edx
mov ax, word [ebx + 0x150]
call fcn.0040fea8
mov byte [ebx + 0x48], al
mov dl, 1
mov ax, word [ebx + 0x150]
call fcn.0040fea8
mov byte [ebx + 0x88], al
cmp byte [ebx + 0x88], 0
je 0x420550
cmp byte [ebx + 0x68], 1
je 0x420550
mov byte [ebx + 0x89], 1
mov dl, 3
mov ax, word [ebx + 0x150]
call fcn.0040fea8
mov byte [ebx + 0x77], al
cmp byte [ebx + 0x85], 0
je 0x42057e
mov dl, 8
mov ax, word [ebx + 0x150]
call fcn.0040fea8
mov byte [ebx + 0x86], al
cmp byte [ebx + 0x70a], 0
jne 0x420598
mov dl, 9
mov ax, word [ebx + 0x150]
call fcn.0040fea8
mov byte [ebx + 0x7a], al
mov dl, 0xa
mov ax, word [ebx + 0x150]
call fcn.0040fea8
mov byte [ebx + 0x84], al
mov dl, 3
mov ax, word [ebx + 0x156]
call fcn.0040fea8
mov byte [ebx + 0x78], al
cmp byte [ebx + 0x86], 0
je 0x4205da
mov dl, 8
mov ax, word [ebx + 0x156]
call fcn.0040fea8
mov byte [ebx + 0x87], al
cmp byte [ebx + 0x7a], 0
je 0x4205f1
mov dl, 9
mov ax, word [ebx + 0x156]
call fcn.0040fea8
mov byte [ebx + 0x7b], al
cmp byte [ebx + 0x78], 0
je 0x420602
mov al, byte [ebx + 0x160]
and al, 0xff
mov byte [ebx + 0x79], al
cmp byte [ebx + 0x7a], 0
je 0x420616
mov ax, word [ebx + 0x166]
shr ax, 8
mov byte [ebx + 0x7d], al
cmp byte [ebx + 0x7b], 0
je 0x420627
mov al, byte [ebx + 0x166]
and al, 0xff
mov byte [ebx + 0x7c], al
cmp byte [ebx + 0x84], 0
je 0x420661
push 0
push 0x200
lea eax, [ebx + 0x172]
mov edx, dword [eax + 4]
mov eax, dword [eax]
sub eax, 1
sbb edx, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.004045e0
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
jmp 0x42067e
push 0
push 0x200
lea eax, [ebx + 0x122]
mov eax, dword [eax]
dec eax
xor edx, edx
call fcn.004045e0
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
mov dl, 0xf
mov ax, word [ebx + 0x17e]
call fcn.0040fea8
test al, al
jne 0x4206ce
mov dl, 0xe
mov ax, word [ebx + 0x17e]
call fcn.0040fea8
test al, al
je 0x4206ce
mov dl, 0xd
mov ax, word [ebx + 0x17e]
call fcn.0040fea8
test al, al
je 0x4206ce
mov cx, word [ebx + 0x17e]
and cx, 0xf
mov eax, 1
shl eax, cl
shl eax, 9
mov dword [ebx + 0x50], eax
jmp 0x4206d5
mov dword [ebx + 0x50], 0x200
mov dl, 1
mov ax, word [ebx + 0x154]
call fcn.0040fea8
mov byte [ebx + 0x6c], al
cmp byte [ebx + 0x6b], 0
je 0x42070e
mov dl, 2
mov ax, word [ebx + 0x1aa]
call fcn.0040fea8
mov byte [ebx + 0x6d], al
mov dl, 5
mov ax, word [ebx + 0x1aa]
call fcn.0040fea8
mov byte [ebx + 0x6e], al
mov dl, 5
mov ax, word [ebx + 0x154]
call fcn.0040fea8
mov byte [ebx + 0x73], al
mov dl, 6
mov ax, word [ebx + 0x154]
call fcn.0040fea8
mov byte [ebx + 0x75], al
mov ax, word [ebx + 0x142]
cmp ax, 0xffff
je 0x420863
test ax, ax
je 0x420863
mov byte [ebx + 0x714], 1
mov ax, word [ebx + 0x142]
and ax, 0xe
test ax, ax
je 0x4207b3
mov ax, word [ebx + 0x142]
and ax, 0xe
movzx eax, ax
call fcn.0040fea4
mov byte [ebx + 0x62], al
cmp byte [ebx + 0x62], 3
jbe 0x4207c0
lea edx, [ebp - 0xae0]
xor eax, eax
mov al, byte [ebx + 0x62]
call fcn.0040623c
mov ecx, dword [ebp - 0xae0]
lea eax, [ebp - 0xadc]
mov edx, 0x421684
call fcn.00403df4
mov eax, dword [ebp - 0xadc]
mov edx, dword [ebp - 4]
call fcn.0041e248
jmp 0x4207c0
mov edx, dword [ebp - 4]
mov eax, 0x4216b4
call fcn.0041e248
cmp word [ebx + 0x144], 0
je 0x420817
mov ax, word [ebx + 0x144]
and ax, 0xe
movzx eax, ax
shr eax, 1
mov byte [ebx + 0x63], al
cmp byte [ebx + 0x63], 3
jbe 0x420817
lea edx, [ebp - 0xae8]
xor eax, eax
mov al, byte [ebx + 0x63]
call fcn.0040623c
mov ecx, dword [ebp - 0xae8]
lea eax, [ebp - 0xae4]
mov edx, 0x4216dc
call fcn.00403df4
mov eax, dword [ebp - 0xae4]
mov edx, dword [ebp - 4]
call fcn.0041e248
mov dl, 8
mov ax, word [ebx + 0x142]
call fcn.0040fea8
test al, al
je 0x42082f
cmp byte [ebx + 0x68], 1
jne 0x420833
xor eax, eax
jmp 0x420835
mov al, 1
mov byte [ebx + 0x8a], al
mov dl, 8
mov ax, word [ebx + 0x146]
call fcn.0040fea8
mov byte [ebx + 0x8b], al
mov dl, 8
mov ax, word [ebx + 0x148]
call fcn.0040fea8
mov byte [ebx + 0x8c], al
mov ax, word [ebx + 0x266]
cmp ax, 0xffff
je 0x4208ec
test ax, ax
je 0x4208ec
movzx edx, ax
shr edx, 0xc
cmp edx, 0xe
jne 0x420889
mov byte [ebx + 0x714], 0xe
jmp 0x4208ec
cmp byte [ebx + 0x714], 1
jne 0x4208ec
and ax, 0xfff
test ax, ax
je 0x4208b2
mov ax, word [ebx + 0x266]
and ax, 0xfff
movzx eax, ax
call fcn.0040fea4
inc eax
mov byte [ebx + 0x61], al
cmp byte [ebx + 0x61], 0xb
jbe 0x4208ec
lea edx, [ebp - 0xaf0]
xor eax, eax
mov al, byte [ebx + 0x61]
call fcn.0040623c
mov ecx, dword [ebp - 0xaf0]
lea eax, [ebp - 0xaec]
mov edx, 0x42170c
call fcn.00403df4
mov eax, dword [ebp - 0xaec]
mov edx, dword [ebp - 4]
call fcn.0041e248
cmp dword [ebx + 0x5c], 0x1ff
jne 0x420914
cmp dword [ebx + 0x58], 0xfffffe00
jne 0x420914
cmp byte [ebx + 0x714], 0
jne 0x420914
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x4215ef
mov dl, 0xf
mov ax, word [ebx + 0x156]
call fcn.0040fea8
test al, al
je 0x4209ab
mov dl, 0xf
mov ax, word [ebx + 0x198]
call fcn.0040fea8
test al, al
jne 0x42095f
mov dl, 0xe
mov ax, word [ebx + 0x198]
call fcn.0040fea8
test al, al
je 0x42095f
mov dl, 5
mov ax, word [ebx + 0x198]
call fcn.0040fea8
mov byte [ebx + 0x7e], al
mov dl, 0xf
mov ax, word [ebx + 0x19a]
call fcn.0040fea8
test al, al
jne 0x420994
mov dl, 0xe
mov ax, word [ebx + 0x19a]
call fcn.0040fea8
test al, al
je 0x420994
mov dl, 5
mov ax, word [ebx + 0x19a]
call fcn.0040fea8
mov byte [ebx + 0x7f], al
cmp byte [ebx + 0x7f], 0
je 0x4209ab
mov ax, word [ebx + 0x114]
shr ax, 8
mov byte [ebx + 0x80], al
xor edx, edx
mov ax, word [ebx + 0x246]
call fcn.0040fea8
test al, al
je 0x4209dd
mov byte [ebx + 0x81], 1
mov dl, 5
mov ax, word [ebx + 0x246]
call fcn.0040fea8
test al, al
je 0x4209dd
mov byte [ebx + 0x83], 1
mov al, byte [ebx + 0x1fa]
and al, 0xf
mov byte [ebx + 0x715], al
cmp byte [ebx + 0x715], 9
jbe 0x420a44
mov eax, dword [ebx + 0x6f8]
mov edx, 0x42172c
call fcn.00403ef4
je 0x420a3d
lea edx, [ebp - 0xaf8]
xor eax, eax
mov al, byte [ebx + 0x715]
call fcn.0040623c
mov ecx, dword [ebp - 0xaf8]
lea eax, [ebp - 0xaf4]
mov edx, 0x42173c
call fcn.00403df4
mov eax, dword [ebp - 0xaf4]
mov edx, dword [ebp - 4]
call fcn.0041e248
mov byte [ebx + 0x715], 0
cmp byte [ebx + 0x70a], 0
je 0x420a66
xor edx, edx
mov ax, word [ebx + 0x1fc]
call fcn.0040fea8
test al, al
je 0x420a66
mov byte [ebx + 0x710], 1
mov dl, 0xf
mov ax, word [ebx + 0x158]
call fcn.0040fea8
test al, al
jne 0x420ac6
mov dl, 0xe
mov ax, word [ebx + 0x158]
call fcn.0040fea8
test al, al
je 0x420ac6
mov dl, 8
mov ax, word [ebx + 0x158]
call fcn.0040fea8
test al, al
je 0x420ac6
mov byte [ebx + 0x716], 1
mov ax, word [ebx + 0x182]
and ax, 0xfff
movzx eax, ax
shl eax, 0xc
movzx edx, word [ebx + 0x184]
shr edx, 4
or eax, edx
mov dword [ebx + 0x718], eax
cmp dword [ebx + 0x6f8], 0
jne 0x420b11
mov edx, dword [ebp - 4]
mov eax, 0x421768
call fcn.0041e248
lea edx, [ebp - 0xb00]
mov eax, dword [ebx + 0x718]
call fcn.0040623c
mov ecx, dword [ebp - 0xb00]
lea eax, [ebp - 0xafc]
mov edx, 0x421788
call fcn.00403df4
mov eax, dword [ebp - 0xafc]
mov edx, dword [ebp - 4]
call fcn.0041e248
mov eax, esi
xor ecx, ecx
mov edx, 8
call fcn.00402b54
mov byte [esi + 6], 0xb0
mov byte [esi], 0xd0
mov byte [esi + 3], 0x4f
mov byte [esi + 4], 0xc2
mov byte [esi + 1], 1
lea ecx, [ebx + 0x2ab]
mov edx, esi
mov eax, ebx
call fcn.0041f094
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x420b57
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x4215ef
mov eax, ebx
call fcn.004253b8
test al, al
jne 0x420b76
mov byte [ebx + 0x713], 1
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x4215ef
mov al, byte [ebx + 0x41a]
and al, 0x10
mov byte [ebx + 0x6ab], al
test al, al
je 0x420ba0
mov al, byte [ebx + 0x41f]
mov byte [ebx + 0x6ac], al
mov al, byte [ebx + 0x420]
mov byte [ebx + 0x6af], al
mov eax, ebx
call fcn.00425398
mov byte [ebx + 0x2aa], al
cmp byte [ebx + 0x2aa], 0
jne 0x420bc3
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x4215ef
cmp byte [ebx + 0x70a], 0
je 0x420bd3
mov eax, ebx
call fcn.0041fd10
mov eax, dword [ebx + 0x6f8]
mov edx, 0x421798
call fcn.00403ef4
jne 0x420c6c
mov al, byte [ebx + 0x700]
cmp al, 0x11
je 0x420bfb
cmp al, 0x12
je 0x420bfb
cmp al, 0xa
jne 0x420c0b
lea eax, [ebx + 0x6f8]
mov edx, 0x4217a8
call fcn.00403b60
mov eax, dword [ebx + 0x4c]
mov edx, 0x4217b8
call fcn.00403ef4
je 0x420c65
mov eax, dword [ebx + 0x4c]
mov edx, 0x4217d0
call fcn.00403ef4
je 0x420c65
mov eax, dword [ebx + 0x4c]
mov edx, 0x4217e8
call fcn.00403ef4
je 0x420c65
mov eax, dword [ebx + 0x4c]
mov edx, 0x421800
call fcn.00403ef4
je 0x420c65
mov eax, dword [ebx + 0x4c]
mov edx, 0x421818
call fcn.00403ef4
je 0x420c65
mov eax, dword [ebx + 0x4c]
mov edx, 0x421830
call fcn.00403ef4
jne 0x420c6c
mov byte [ebx + 0x93], 1
mov eax, dword [ebx + 0x6f8]
mov edx, 0x421848
call fcn.00403ef4
jne 0x420cac
mov eax, dword [ebx + 0x4c]
mov edx, 0x421860
call fcn.00403ef4
jne 0x420cac
mov eax, dword [ebx + 0x44]
mov edx, 0x421880
call fcn.00403ef4
jne 0x420cac
mov edx, 0x4217a8
lea eax, [ebx + 0x6f8]
call fcn.00403b60
mov eax, dword [ebx + 0x6f8]
mov edx, 0x421890
call fcn.00403ef4
jne 0x420edc
mov eax, dword [ebx + 0x4c]
mov edx, 0x4218a4
call fcn.00403ef4
jne 0x420d2b
mov eax, dword [ebx + 0x44]
mov edx, 0x4218c4
call fcn.00403ef4
je 0x420d16
mov eax, dword [ebx + 0x44]
mov edx, 0x4218d4
call fcn.00403ef4
je 0x420d16
mov eax, dword [ebx + 0x44]
mov edx, 0x4218e4
call fcn.00403ef4
je 0x420d16
mov eax, dword [ebx + 0x44]
mov edx, 0x4218f8
call fcn.00403ef4
jne 0x420d2b
cmp byte [ebx + 0x700], 0x11
jne 0x420d2b
mov edx, 0x4217a8
lea eax, [ebx + 0x6f8]
call fcn.00403b60
jmp 0x420edc
mov eax, dword [ebx + 0x4c]
mov edx, 0x42190c
call fcn.00403ef4
jne 0x420d6d
mov eax, dword [ebx + 0x44]
mov edx, 0x42192c
call fcn.00403ef4
je 0x420d58
mov eax, dword [ebx + 0x44]
mov edx, 0x42193c
call fcn.00403ef4
jne 0x420d6d
mov edx, 0x4217a8
lea eax, [ebx + 0x6f8]
call fcn.00403b60
jmp 0x420edc
mov eax, dword [ebx + 0x4c]
mov edx, 0x421950
call fcn.00403ef4
jne 0x420de5
mov eax, dword [ebx + 0x44]
mov edx, 0x421970
call fcn.00403ef4
je 0x420dd0
mov eax, dword [ebx + 0x44]
mov edx, 0x421980
call fcn.00403ef4
je 0x420dd0
mov eax, dword [ebx + 0x44]
mov edx, 0x421880
call fcn.00403ef4
je 0x420dd0
mov eax, dword [ebx + 0x44]
mov edx, 0x421990
call fcn.00403ef4
je 0x420dd0
mov eax, dword [ebx + 0x44]
mov edx, 0x4218f8
call fcn.00403ef4
jne 0x420de5
cmp byte [ebx + 0x700], 0x11
jne 0x420de5
mov edx, 0x4217a8
lea eax, [ebx + 0x6f8]
call fcn.00403b60
jmp 0x420edc
mov eax, dword [ebx + 0x4c]
mov edx, 0x4219a0
call fcn.00403ef4
jne 0x420e21
mov eax, dword [ebx + 0x44]
mov edx, 0x4218f8
call fcn.00403ef4
jne 0x420e21
cmp byte [ebx + 0x700], 0x11
jne 0x420e21
mov edx, 0x4217a8
lea eax, [ebx + 0x6f8]
call fcn.00403b60
jmp 0x420edc
mov eax, dword [ebx + 0x4c]
mov edx, 0x4219c0
call fcn.00403ef4
jne 0x420e78
mov eax, dword [ebx + 0x44]
mov edx, 0x4219e0
call fcn.00403ef4
je 0x420e66
mov eax, dword [ebx + 0x44]
mov edx, 0x4219f0
call fcn.00403ef4
je 0x420e66
mov eax, dword [ebx + 0x44]
mov edx, 0x421a00
call fcn.00403ef4
jne 0x420e78
cmp byte [ebx + 0x700], 0x11
jne 0x420e78
mov edx, 0x4217a8
lea eax, [ebx + 0x6f8]
call fcn.00403b60
jmp 0x420edc
mov eax, dword [ebx + 0x4c]
mov edx, 0x421a14
call fcn.00403ef4
jne 0x420edc
mov eax, dword [ebx + 0x44]
mov edx, 0x421a34
call fcn.00403ef4
je 0x420ecc
mov eax, dword [ebx + 0x44]
mov edx, 0x421a44
call fcn.00403ef4
je 0x420ecc
mov eax, dword [ebx + 0x44]
mov edx, 0x421a54
call fcn.00403ef4
je 0x420ecc
mov eax, dword [ebx + 0x44]
mov edx, 0x421a64
call fcn.00403ef4
jne 0x420edc
cmp byte [ebx + 0x700], 0x11
jne 0x420edc
mov edx, 0x4217a8
lea eax, [ebx + 0x6f8]
call fcn.00403b60
cmp byte [ebx + 0x81], 0
je 0x420f22
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.00425198
test al, al
je 0x420f22
mov byte [ebx + 0x82], 1
cmp byte [ebp - 0x19c], 0x80
je 0x420f12
mov al, byte [ebp - 0x19c]
mov byte [ebx + 0x8f], al
cmp byte [ebx + 0x83], 0
je 0x420f22
mov eax, ebx
call fcn.004251ec
mov eax, ebx
call fcn.004253e8
cmp byte [ebx + 0x6be], 0
je 0x420f3e
mov eax, dword [ebx + 0x6c8]
mov dword [ebx + 0x6c4], eax
cmp byte [ebx + 0x8e], 0
jne 0x420f54
mov edx, dword [ebp - 4]
mov eax, 0x421a78
call fcn.0041e248
cmp byte [ebx + 0x8f], 0
jne 0x420fb7
cmp byte [ebx + 0x8d], 0
je 0x420fb7
xor eax, eax
mov al, byte [ebx + 0x8d]
lea eax, [eax + eax*2]
lea eax, [ebx + eax*4 + 0x2a1]
cmp byte [eax + 6], 0
je 0x420f8d
cmp byte [eax + 7], 0
je 0x420f8d
mov dl, byte [eax + 7]
mov byte [ebx + 0x8f], dl
cmp byte [eax + 7], 0
je 0x420fa2
cmp byte [eax + 8], 0
je 0x420fa2
mov dl, byte [eax + 8]
mov byte [ebx + 0x8f], dl
cmp byte [eax + 7], 0
je 0x420fb7
cmp byte [eax + 9], 0
je 0x420fb7
mov al, byte [eax + 9]
mov byte [ebx + 0x8f], al
mov eax, esi
xor ecx, ecx
mov edx, 8
call fcn.00402b54
mov byte [esi + 6], 0xb0
mov byte [esi], 0xd1
mov byte [esi + 3], 0x4f
mov byte [esi + 4], 0xc2
mov byte [esi + 1], 1
lea ecx, [ebx + 0x4ab]
mov edx, esi
mov eax, ebx
call fcn.0041f094
mov byte [ebp - 0x11], al
cmp byte [0x442b6c], 0
je 0x42108b
xor eax, eax
mov al, byte [0x442b6c]
dec eax
test eax, eax
jb 0x42108b
inc eax
mov dword [ebp - 0x3c], eax
mov esi, 0x442b70
mov eax, dword [ebx + 0x40]
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
call fcn.00403ef4
jne 0x421043
lea eax, [ebp - 0xb04]
mov ecx, dword [ebx + 0x2c]
mov edx, 0x421a90
call fcn.00403df4
mov eax, dword [ebp - 0xb04]
xor edx, edx
call fcn.0041e248
mov byte [ebp - 0x11], 0
mov eax, dword [esi]
lea edx, [eax + 0x2ab]
lea eax, [ebx + 0x2ab]
mov ecx, 0x200
call fcn.004062d8
test al, al
je 0x421083
lea eax, [ebp - 0xb08]
mov ecx, dword [ebx + 0x2c]
mov edx, 0x421abc
call fcn.00403df4
mov eax, dword [ebp - 0xb08]
xor edx, edx
call fcn.0041e248
mov byte [ebp - 0x11], 0
add esi, 4
dec dword [ebp - 0x3c]
jne 0x421010
cmp byte [ebp - 0x11], 0
jne 0x42109e
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x4215ef
mov eax, ebx
call fcn.0041fb34
cmp byte [ebx + 0x714], 0
jne 0x4210eb
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4363d8
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
lea eax, [ebp - 0xab8]
mov al, byte [eax]
mov byte [ebx + 0x30], al
lea eax, [ebp - 0xab8]
cmp byte [eax], 2
jae 0x4210eb
mov byte [ebx + 0x32], 1
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4363c4
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
mov eax, dword [ebp + 8]
push eax
push 0
push 0
lea eax, [ebp - 0xab8]
push eax
push edi
call sub.setupapi.dll_SetupDiOpenDeviceInfoW
cmp byte [ebx + 0x714], 0
jne 0x421175
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4363d8
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
lea eax, [ebp - 0xab8]
mov al, byte [eax]
mov byte [ebx + 0x31], al
cmp byte [ebx + 0x32], 0
je 0x421171
lea eax, [ebp - 0xab8]
cmp byte [eax], 2
jae 0x421171
mov byte [ebx + 0x32], 1
jmp 0x421175
mov byte [ebx + 0x32], 0
cmp byte [ebx + 0x70b], 0
je 0x4211d0
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x436414
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
lea eax, [ebp - 0xb0c]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
mov eax, dword [ebp - 0xb0c]
mov edx, 0x421ae4
call fcn.00403ef4
jne 0x4211d0
mov byte [ebx + 0x70c], 1
xor esi, esi
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x436400
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
lea eax, [ebp - 0xb10]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
mov eax, dword [ebp - 0xb10]
mov edx, 0x421b10
call fcn.00403ef4
je 0x42125f
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4363c4
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
mov eax, dword [ebp + 8]
push eax
push 0
push 0
lea eax, [ebp - 0xab8]
push eax
push edi
call sub.setupapi.dll_SetupDiOpenDeviceInfoW
inc esi
cmp esi, 0xa
jne 0x4211d2
cmp esi, 0xa
jne 0x4212a4
mov byte [ebx + 0x32], 0
lea eax, [ebp - 0xb18]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
mov ecx, dword [ebp - 0xb18]
lea eax, [ebp - 0xb14]
mov edx, 0x421b1c
call fcn.00403df4
mov eax, dword [ebp - 0xb14]
mov edx, dword [ebp - 4]
call fcn.0041e248
jmp 0x421321
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4363ec
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
lea eax, [ebx + 0x34]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x436428
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
test eax, eax
jne 0x42130e
mov edx, dword [ebp - 4]
mov eax, 0x421b44
call fcn.0041e248
lea eax, [ebx + 0x38]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
push 0x421b70
push dword [ebx + 0x4c]
push 0x421b84
push dword [ebx + 0x40]
push 0x421b90
lea eax, [ebx + 0x20]
mov edx, 5
call fcn.00403e68
push 0
lea eax, [ebp - 0x10]
push eax
push 0xc
lea eax, [ebp - 0x294]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x421375
mov edx, dword [ebp - 4]
mov eax, 0x421b9c
call fcn.0041e248
mov al, byte [ebp - 0x290]
mov byte [ebp - 0x12], al
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call fcn.0040fe8c
and eax, 0xff
push eax
lea eax, [ebp - 0x28]
mov ecx, 1
mov edx, dword [0x420128]
call fcn.00404854
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], eax
xor esi, esi
mov ecx, esi
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x20]
test eax, eax
je 0x421471
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x421bc0
lea eax, [ebp - 0xb20]
lea edx, [esi + 0x41]
call fcn.00403cd8
push dword [ebp - 0xb20]
push 0x421bd0
lea eax, [ebp - 0xb1c]
mov edx, 3
call fcn.00403e68
mov eax, dword [ebp - 0xb1c]
call fcn.00403fa8
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
je 0x421471
push 0
lea eax, [ebp - 0x10]
push eax
push 0x20
lea eax, [ebp - 0x2b8]
push eax
push 0
push 0
push 0x560000
push edi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x42146b
mov eax, dword [ebp - 0x24]
shl eax, 2
mov edx, dword [ebp - 0x28]
lea edx, [edx + eax*8]
lea eax, [ebp - 0x2b0]
mov ecx, 0x18
call fcn.004029dc
mov eax, dword [ebp - 0x24]
shl eax, 2
mov edx, dword [ebp - 0x28]
lea ecx, [esi + 0x41]
mov byte [edx + eax*8 + 0x18], cl
inc dword [ebp - 0x24]
push edi
call sub.kernel32.dll_CloseHandle
inc esi
cmp esi, 0x20
jne 0x4213b1
cmp dword [ebp - 0x24], 0
je 0x421543
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jb 0x421543
inc eax
mov dword [ebp - 0x3c], eax
xor esi, esi
mov edi, esi
shl edi, 2
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + edi*8]
xor edx, edx
mov dl, byte [ebp - 0x12]
cmp eax, edx
jne 0x421539
cmp dword [ebx + 0x6ec], 0
jne 0x421501
lea eax, [ebp - 0xb24]
mov edx, dword [ebp - 0x28]
mov dl, byte [edx + edi*8 + 0x18]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0xb24]
lea eax, [ebp - 0xb28]
call fcn.00402b48
mov edx, 0x421bd4
lea eax, [ebp - 0xb28]
mov cl, 2
call fcn.00402b18
lea edx, [ebp - 0xb28]
lea eax, [ebx + 0x6ec]
call fcn.00403d54
jmp 0x421539
push dword [ebx + 0x6ec]
push 0x421be0
lea eax, [ebp - 0xb2c]
mov edx, dword [ebp - 0x28]
mov dl, byte [edx + edi*8 + 0x18]
call fcn.00403cd8
push dword [ebp - 0xb2c]
push 0x421bd0
lea eax, [ebx + 0x6ec]
mov edx, 4
call fcn.00403e68
inc esi
dec dword [ebp - 0x3c]
jne 0x421497
cmp byte [ebx + 0x710], 0
je 0x4215b5
mov dword [ebp - 0x27a], 8
xor eax, eax
mov dword [ebp - 0x276], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x286]
xor ecx, ecx
mov edx, 0xc
call fcn.00402b54
push 0
lea eax, [ebp - 0x10]
push eax
push 0xc
lea eax, [ebp - 0x286]
push eax
push 0x12
lea eax, [ebp - 0x27a]
push eax
push 0x2d1400
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x4215b5
cmp dword [ebp - 0x10], 0xc
jne 0x4215b5
cmp dword [ebp - 0x27e], 0
je 0x4215b5
mov byte [ebx + 0x711], 1
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x2c
call fcn.00402b54
mov dword [ebp - 0x68], 0x2c
mov dword [ebp - 0x64], 6
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x5c], eax
push 0
lea eax, [ebp - 0x68]
push eax
mov eax, dword [0x442c40]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_RegisterDeviceNotificationA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42163d
lea eax, [ebp - 0xb2c]
call fcn.00403b0c
lea eax, [ebp - 0xb20]
mov edx, 0x18
call fcn.00403b30
lea eax, [ebp - 0xac0]
mov edx, 2
call fcn.00404114
lea eax, [ebp - 0x28]
mov edx, dword [0x420128]
call fcn.00404860
ret