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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x175
push 0
push 0
dec ecx
jne 0x421ea9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
mov esi, eax
xor eax, eax
push ebp
push 0x423f52
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x41f1d4]
xor eax, eax
call fcn.0040a260
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ebx, eax
mov dword [ebx + 0x28], esi
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x14]
call fcn.00403b60
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a414
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, 0x423f6c
call fcn.004041a8
jne 0x421f5a
mov byte [ebx + 0x275c], 1
lea eax, [ebp - 0xac4]
push eax
mov ecx, 0x17
mov edx, 1
mov eax, dword [ebx + 0x2c]
call fcn.00404008
mov eax, dword [ebp - 0xac4]
mov edx, 0x423f80
call fcn.00403ef4
jne 0x421f8c
mov byte [ebx + 0x70b], 1
mov eax, ebx
call fcn.00424a4c
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00402b54
mov byte [ebp - 6], 0xec
mov byte [ebp - 0xb], 1
cmp byte [ebx + 0x70b], 0
je 0x421fcb
lea ecx, [ebx + 0x71c]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00420cb0
mov byte [ebp - 0x19], al
jmp 0x42204b
lea ecx, [ebx + 0xac]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00420cb0
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
je 0x421ff3
mov eax, ebx
call fcn.00421998
test al, al
jne 0x421ff3
mov byte [ebp - 0x19], 0
cmp byte [ebp - 0x19], 0
je 0x42204b
xor edx, edx
mov ax, word [ebx + 0x156]
call fcn.0040ff00
test al, al
jne 0x42204b
xor edx, edx
mov ax, word [ebx + 0x150]
call fcn.0040ff00
test al, al
je 0x42204b
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00402b54
mov byte [ebp - 6], 0xb0
mov byte [ebp - 0xc], 0xd8
mov byte [ebp - 9], 0x4f
mov byte [ebp - 8], 0xc2
xor ecx, ecx
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00420cb0
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x42205e
lea eax, [ebp - 4]
call fcn.00405d34
jmp 0x423eda
cmp byte [ebx + 0x70b], 0
je 0x4228ac
mov byte [ebx + 0x70a], 1
mov byte [ebx + 0x2766], 1
mov dword [ebx + 0x6c4], 1
lea eax, [ebx + 0x71c]
mov ax, word [eax]
mov word [ebx + 0x70c], ax
lea eax, [ebp - 0xac8]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00404180
mov edx, dword [ebp - 0xac8]
mov eax, 0x423f9c
call fcn.00404278
mov esi, eax
test esi, esi
je 0x422112
lea eax, [ebp - 0xad0]
push eax
lea eax, [ebp - 0xad4]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00404180
mov eax, dword [ebp - 0xad4]
lea edx, [esi + 5]
mov ecx, 4
call fcn.0040422c
mov edx, dword [ebp - 0xad0]
lea eax, [ebp - 0xacc]
call fcn.00403d94
mov eax, dword [ebp - 0xacc]
call fcn.0040cc54
mov word [ebx + 0x70e], ax
cmp word [ebx + 0x70e], 0
jne 0x422156
lea eax, [ebp - 0xadc]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
mov ecx, dword [ebp - 0xadc]
lea eax, [ebp - 0xad8]
mov edx, 0x423fb0
call fcn.00403df4
mov eax, dword [ebp - 0xad8]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
lea eax, [ebp - 0xae0]
push eax
lea eax, [ebx + 0x734]
xor ecx, ecx
mov dl, 0x28
call fcn.00421d80
mov edx, dword [ebp - 0xae0]
lea eax, [ebx + 0x4c]
call fcn.00403b60
lea ecx, [ebp - 0xae4]
mov dl, 1
mov eax, dword [ebx + 0x4c]
call fcn.00414374
mov edx, dword [ebp - 0xae4]
lea eax, [ebx + 0x6f8]
call fcn.00403b60
lea eax, [ebp - 0xae8]
push eax
lea eax, [ebx + 0x720]
xor ecx, ecx
mov dl, 0x14
call fcn.00421d80
mov edx, dword [ebp - 0xae8]
lea eax, [ebx + 0x40]
call fcn.00403b60
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebx + 0x75c]
xor ecx, ecx
mov dl, 8
call fcn.00421d80
mov edx, dword [ebp - 0xaec]
lea eax, [ebx + 0x44]
call fcn.00403b60
lea eax, [ebx + 0x76c]
mov esi, dword [eax]
mov dword [ebx + 0x710], esi
cmp esi, 0x20000
jbe 0x42222a
lea edx, [ebp - 0xaf4]
mov eax, esi
call fcn.0040628c
mov ecx, dword [ebp - 0xaf4]
lea eax, [ebp - 0xaf0]
mov edx, 0x423fd4
call fcn.00403df4
mov eax, dword [ebp - 0xaf0]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
mov al, byte [ebx + 0x81c]
and al, 1
mov byte [ebx + 0x6b], al
lea eax, [ebx + 0x864]
cmp dword [eax], 0
je 0x422244
mov byte [ebx + 0x6f], 1
mov al, byte [ebx + 0x864]
and al, 1
mov byte [ebx + 0x70], al
mov al, byte [ebx + 0x823]
mov byte [ebx + 0x272c], al
test al, al
je 0x422263
mov byte [ebx + 0x76], 1
lea eax, [ebx + 0xf1c]
cmp word [eax], 0
je 0x4222c0
test byte [ebx + 0xf1f], 1
jne 0x422292
lea eax, [ebx + 0xf1c]
movzx eax, word [eax]
mov ecx, 0x64
xor edx, edx
div ecx
mov byte [ebx + 0x272d], al
jmp 0x4222aa
lea eax, [ebx + 0xf1c]
movzx eax, word [eax]
mov ecx, 0x2710
xor edx, edx
div ecx
mov byte [ebx + 0x272d], al
cmp byte [ebx + 0x272d], 0
jne 0x4222c0
mov edx, dword [ebp - 4]
mov eax, 0x423ff4
call fcn.0041f1e8
mov al, byte [ebx + 0x825]
and al, 1
mov byte [ebx + 0x272e], al
mov al, byte [ebx + 0x929]
and al, 1
mov byte [ebx + 0x72], al
test byte [ebx + 0x81c], 4
je 0x4222e6
mov byte [ebx + 0x48], 1
test byte [ebx + 0x924], 4
je 0x4222f6
mov byte [ebx + 0x2760], 1
lea eax, [ebx + 0x765]
mov eax, dword [eax]
and eax, 0xffffff
mov dword [ebx + 0x2768], eax
test byte [ebx + 0x81c], 0x10
je 0x422319
mov byte [ebx + 0x6ad], 1
cmp byte [ebx + 0x6ad], 0
je 0x422337
mov byte [ebx + 0x6ae], 2
lea eax, [ebx + 0x858]
mov al, byte [eax]
mov byte [ebx + 0x6b1], al
lea eax, [ebx + 0x826]
cmp word [eax], 0
je 0x422353
lea eax, [ebx + 0x826]
mov al, byte [eax]
sub al, 0x11
mov byte [ebx + 0x91], al
mov eax, ebx
call fcn.004285f4
lea eax, [ebx + 0x828]
cmp word [eax], 0
je 0x422376
lea eax, [ebx + 0x828]
mov al, byte [eax]
sub al, 0x11
mov byte [ebx + 0x92], al
lea eax, [ebx + 0x82c]
cmp dword [eax], 0
je 0x422388
mov byte [ebx + 0x2724], 1
mov al, byte [ebx + 0x85e]
and al, 1
mov byte [ebx + 0x272f], al
lea eax, [ebx + 0x85c]
cmp word [eax], 0
je 0x4223a9
mov byte [ebx + 0x2748], 1
lea eax, [ebx + 0x77c]
test byte [eax], 2
je 0x4223bb
mov byte [ebx + 0x2750], 1
lea eax, [ebx + 0x77c]
test byte [eax], 8
je 0x4223cd
mov byte [ebx + 0x2752], 1
lea eax, [ebx + 0x77c]
test byte [eax], 0x20
je 0x4223df
mov byte [ebx + 0x2754], 1
lea eax, [ebx + 0x81c]
test byte [eax + 1], 2
je 0x4223f2
mov byte [ebx + 0x2757], 1
lea eax, [ebx + 0x920]
mov eax, dword [eax]
mov dword [ebx + 0x714], eax
lea eax, [ebx + 0x938]
mov eax, dword [eax]
mov dword [ebx + 0x718], eax
test eax, eax
jne 0x42241e
mov eax, dword [ebx + 0x714]
mov dword [ebx + 0x718], eax
cmp dword [ebx + 0x714], 1
jbe 0x42245c
lea edx, [ebp - 0xafc]
mov eax, dword [ebx + 0x714]
call fcn.0040628c
mov ecx, dword [ebp - 0xafc]
lea eax, [ebp - 0xaf8]
mov edx, 0x42400c
call fcn.00403df4
mov eax, dword [ebp - 0xaf8]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
cmp dword [ebx + 0x714], 0
jbe 0x4225ea
mov esi, dword [ebx + 0x714]
cmp esi, 1
jb 0x4225ea
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00402b54
mov byte [ebp - 6], 0xec
mov eax, esi
mov byte [ebp - 0xa], al
lea ecx, [ebx + 0x171c]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00420cb0
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
je 0x4225a6
cmp esi, dword [ebx + 0x714]
je 0x4224ea
mov al, byte [ebx + 0x1736]
and al, 0xf
and eax, 0xff
shl eax, 2
add eax, 0x82
mov cl, byte [ebx + eax + 0x171c]
mov eax, 1
shl eax, cl
cmp eax, dword [ebx + 0x50]
je 0x4224ea
mov edx, dword [ebp - 4]
mov eax, 0x424028
call fcn.0041f1e8
mov al, byte [ebx + 0x1736]
and al, 0xf
and eax, 0xff
shl eax, 2
add eax, 0x82
mov cl, byte [ebx + eax + 0x171c]
mov eax, 1
shl eax, cl
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x50]
xor edx, edx
push edx
push eax
lea eax, [ebx + 0x171c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
call fcn.00404630
add eax, dword [ebx + 0x58]
adc edx, dword [ebx + 0x5c]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
xor eax, eax
mov al, byte [ebx + 0x1735]
shl eax, 2
add eax, 0x82
cmp byte [ebx + eax + 0x171c], 0
jne 0x42255a
mov edx, dword [ebp - 4]
mov eax, 0x424064
call fcn.0041f1e8
xor eax, eax
mov al, byte [ebx + 0x1735]
shl eax, 2
add eax, 0x82
mov cl, byte [ebx + eax + 0x171c]
mov eax, 1
shl eax, cl
cmp eax, dword [ebx + 0x271c]
jbe 0x4225e1
xor eax, eax
mov al, byte [ebx + 0x1735]
shl eax, 2
add eax, 0x82
mov cl, byte [ebx + eax + 0x171c]
mov eax, 1
shl eax, cl
mov dword [ebx + 0x271c], eax
jmp 0x4225e1
push 0x424088
lea edx, [ebp - 0xb04]
mov eax, esi
call fcn.0040628c
push dword [ebp - 0xb04]
push 0x4240b4
lea eax, [ebp - 0xb00]
mov edx, 3
call fcn.00403e68
mov eax, dword [ebp - 0xb00]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
dec esi
test esi, esi
jne 0x422478
cmp dword [ebx + 0x5c], 0
jne 0x422603
cmp dword [ebx + 0x58], 0
jne 0x422603
mov edx, dword [ebp - 4]
mov eax, 0x4240c8
call fcn.0041f1e8
push ebp
mov edx, dword [ebp - 4]
mov al, 1
call fcn.00421e58
pop ecx
test al, al
je 0x42261c
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x2734], eax
push ebp
mov edx, dword [ebp - 4]
mov al, 2
call fcn.00421e58
pop ecx
test al, al
je 0x422635
mov al, byte [ebp - 0x10]
mov byte [ebx + 0x2738], al
cmp byte [ebx + 0x72], 0
je 0x422654
push ebp
mov edx, dword [ebp - 4]
mov al, 6
call fcn.00421e58
pop ecx
test al, al
je 0x422654
mov eax, dword [ebp - 0x10]
and eax, 1
mov byte [ebx + 0x73], al
push ebp
mov edx, dword [ebp - 4]
mov al, 8
call fcn.00421e58
pop ecx
test al, al
je 0x42266f
mov ax, word [ebp - 0x10]
mov word [ebx + 0x273a], ax
push ebp
mov edx, dword [ebp - 4]
mov al, 9
call fcn.00421e58
pop ecx
test al, al
je 0x422688
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x273c], eax
push ebp
mov edx, dword [ebp - 4]
mov al, 0xa
call fcn.00421e58
pop ecx
test al, al
je 0x4226a4
mov eax, dword [ebp - 0x10]
and eax, 1
mov byte [ebx + 0x2740], al
push ebp
mov edx, dword [ebp - 4]
mov al, 0xb
call fcn.00421e58
pop ecx
test al, al
je 0x4226bd
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x2744], eax
cmp byte [ebx + 0x272e], 0
je 0x4226e2
push ebp
mov edx, dword [ebp - 4]
mov al, 0xc
call fcn.00421e58
pop ecx
test al, al
je 0x4226e2
mov eax, dword [ebp - 0x10]
and eax, 1
mov byte [ebx + 0x2732], al
cmp byte [ebx + 0x2724], 0
je 0x422759
push ebp
mov edx, dword [ebp - 4]
mov al, 0xd
call fcn.00421e58
pop ecx
test al, al
je 0x422759
mov eax, dword [ebp - 0x10]
and eax, 1
mov byte [ebx + 0x2725], al
cmp dword [0x446914], 0x1000
je 0x422747
lea edx, [ebp - 0xb0c]
mov eax, 0x1000
call fcn.0040628c
mov ecx, dword [ebp - 0xb0c]
lea eax, [ebp - 0xb08]
mov edx, 0x4240e4
call fcn.00403df4
mov eax, dword [ebp - 0xb08]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
mov eax, dword [ebx + 0x2728]
imul dword [0x446914]
mov dword [ebx + 0x2728], eax
cmp byte [ebx + 0x2748], 0
je 0x42277b
push ebp
mov edx, dword [ebp - 4]
mov al, 0xf
call fcn.00421e58
pop ecx
test al, al
je 0x42277b
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x274c], eax
cmp byte [ebx + 0x272f], 0
je 0x4227f4
push ebp
mov edx, dword [ebp - 4]
mov al, 0x10
call fcn.00421e58
pop ecx
test al, al
je 0x4227f4
mov eax, dword [ebp - 0x10]
call fcn.00405740
sub al, 0x11
mov byte [ebx + 0x2730], al
cmp byte [ebx + 0x2730], 0xef
jne 0x4227e9
push 0x4240f8
lea edx, [ebp - 0xb14]
mov eax, dword [ebp - 0x10]
call fcn.0040628c
push dword [ebp - 0xb14]
push 0x424134
lea eax, [ebp - 0xb10]
mov edx, 3
call fcn.00403e68
mov eax, dword [ebp - 0xb10]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
mov al, byte [ebp - 0x10]
sub al, 0x11
mov byte [ebx + 0x2731], al
cmp byte [ebx + 0x2750], 0
je 0x422819
push ebp
mov edx, dword [ebp - 4]
mov al, 0x11
call fcn.00421e58
pop ecx
test al, al
je 0x422819
mov eax, dword [ebp - 0x10]
and eax, 1
mov byte [ebx + 0x2751], al
cmp byte [ebx + 0x2752], 0
je 0x42283d
push ebp
mov edx, dword [ebp - 4]
mov al, 0x12
call fcn.00421e58
pop ecx
test al, al
je 0x42283d
mov al, byte [ebp - 0x10]
and al, 0xf
mov byte [ebx + 0x2753], al
cmp byte [ebx + 0x2754], 0
je 0x42287d
push ebp
mov edx, dword [ebp - 4]
mov al, 0x13
call fcn.00421e58
pop ecx
test al, al
je 0x422862
mov eax, dword [ebp - 0x10]
and eax, 1
mov byte [ebx + 0x2755], al
push ebp
mov edx, dword [ebp - 4]
mov al, 0x14
call fcn.00421e58
pop ecx
test al, al
je 0x42287d
mov al, byte [ebp - 0x10]
and al, 7
mov byte [ebx + 0x2756], al
cmp byte [ebx + 0x2757], 0
je 0x4230bc
push ebp
mov edx, dword [ebp - 4]
mov al, 0x15
call fcn.00421e58
pop ecx
test al, al
je 0x4230bc
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x2758], eax
jmp 0x4230bc
lea eax, [ebp - 0xb18]
push eax
lea eax, [ebx + 0xe2]
mov cl, 1
mov dl, 0x28
call fcn.00421d80
mov edx, dword [ebp - 0xb18]
lea eax, [ebx + 0x4c]
call fcn.00403b60
lea ecx, [ebp - 0xb1c]
xor edx, edx
mov eax, dword [ebx + 0x4c]
call fcn.00414374
mov edx, dword [ebp - 0xb1c]
lea eax, [ebx + 0x6f8]
call fcn.00403b60
lea eax, [ebp - 0xb20]
push eax
lea eax, [ebx + 0xc0]
mov cl, 1
mov dl, 0x14
call fcn.00421d80
mov edx, dword [ebp - 0xb20]
lea eax, [ebx + 0x40]
call fcn.00403b60
lea eax, [ebp - 0xb24]
push eax
lea eax, [ebx + 0xda]
mov cl, 1
mov dl, 8
call fcn.00421d80
mov edx, dword [ebp - 0xb24]
lea eax, [ebx + 0x44]
call fcn.00403b60
cmp word [ebx + 0x25e], 1
jne 0x42294c
mov byte [ebx + 0x70a], 1
jmp 0x422970
cmp word [ebx + 0x25e], 0x400
jbe 0x422970
cmp word [ebx + 0x25e], 0xffff
je 0x422970
mov ax, word [ebx + 0x25e]
mov word [ebx + 0x275e], ax
cmp word [ebx + 0x14c], 0
je 0x422989
movzx eax, word [ebx + 0x14c]
call fcn.0040fefc
mov byte [ebx + 0x60], al
cmp byte [ebx + 0x60], 0xc
jbe 0x4229c3
lea edx, [ebp - 0xb2c]
xor eax, eax
mov al, byte [ebx + 0x60]
call fcn.0040628c
mov ecx, dword [ebp - 0xb2c]
lea eax, [ebp - 0xb28]
mov edx, 0x424140
call fcn.00403df4
mov eax, dword [ebp - 0xb28]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
movzx eax, word [ebx + 0xd6]
shl eax, 9
mov dword [ebx + 0x64], eax
mov dl, 0xf
mov ax, word [ebx + 0x10c]
call fcn.0040ff00
test al, al
jne 0x422a05
mov dl, 0xe
mov ax, word [ebx + 0x10c]
call fcn.0040ff00
test al, al
je 0x422a05
xor edx, edx
mov ax, word [ebx + 0x10c]
call fcn.0040ff00
mov byte [ebx + 0x71], al
mov al, byte [ebx + 0x142]
and al, 0xff
inc eax
mov byte [ebx + 0x68], al
mov dl, 2
mov ax, word [ebx + 0x116]
call fcn.0040ff00
test al, al
je 0x422a6f
mov ax, word [ebx + 0x15c]
and ax, 0xff
test ax, ax
je 0x422a49
mov ax, word [ebx + 0x15c]
and ax, 0xff
movzx eax, ax
call fcn.0040fefc
mov byte [ebx + 0x6a], al
mov ax, word [ebx + 0x15c]
shr ax, 8
test ax, ax
je 0x422a6f
mov ax, word [ebx + 0x15c]
shr ax, 8
movzx eax, ax
call fcn.0040fef8
mov byte [ebx + 0x69], al
mov dl, 1
mov ax, word [ebx + 0x150]
call fcn.0040ff00
mov byte [ebx + 0x6b], al
cmp byte [ebx + 0x6b], 0
je 0x422a9c
mov ax, word [ebx + 0x15e]
and ax, 0x7fff
movzx eax, ax
add eax, eax
mov dword [ebx + 0x6e4], eax
mov dl, 0xc
mov ax, word [ebx + 0x122]
call fcn.0040ff00
mov byte [ebx + 0x6f], al
cmp byte [ebx + 0x6f], 0
je 0x422ac4
mov dl, 0xd
mov ax, word [ebx + 0x122]
call fcn.0040ff00
mov byte [ebx + 0x70], al
mov dl, 3
mov ax, word [ebx + 0x150]
call fcn.0040ff00
mov byte [ebx + 0x76], al
mov dl, 5
mov ax, word [ebx + 0x150]
call fcn.0040ff00
mov byte [ebx + 0x72], al
mov dl, 6
mov ax, word [ebx + 0x150]
call fcn.0040ff00
mov byte [ebx + 0x74], al
mov dl, 0xa
mov ax, word [ebx + 0x150]
call fcn.0040ff00
mov byte [ebx + 0x85], al
xor edx, edx
mov ax, word [ebx + 0x152]
call fcn.0040ff00
mov byte [ebx + 0x48], al
mov dl, 1
mov ax, word [ebx + 0x152]
call fcn.0040ff00
mov byte [ebx + 0x88], al
cmp byte [ebx + 0x88], 0
je 0x422b46
cmp byte [ebx + 0x68], 1
je 0x422b46
mov byte [ebx + 0x89], 1
mov dl, 3
mov ax, word [ebx + 0x152]
call fcn.0040ff00
mov byte [ebx + 0x77], al
cmp byte [ebx + 0x85], 0
je 0x422b74
mov dl, 8
mov ax, word [ebx + 0x152]
call fcn.0040ff00
mov byte [ebx + 0x86], al
cmp byte [ebx + 0x70a], 0
jne 0x422b8e
mov dl, 9
mov ax, word [ebx + 0x152]
call fcn.0040ff00
mov byte [ebx + 0x7a], al
mov dl, 0xa
mov ax, word [ebx + 0x152]
call fcn.0040ff00
mov byte [ebx + 0x84], al
mov dl, 3
mov ax, word [ebx + 0x158]
call fcn.0040ff00
mov byte [ebx + 0x78], al
cmp byte [ebx + 0x86], 0
je 0x422bd0
mov dl, 8
mov ax, word [ebx + 0x158]
call fcn.0040ff00
mov byte [ebx + 0x87], al
cmp byte [ebx + 0x7a], 0
je 0x422be7
mov dl, 9
mov ax, word [ebx + 0x158]
call fcn.0040ff00
mov byte [ebx + 0x7b], al
cmp byte [ebx + 0x78], 0
je 0x422bf8
mov al, byte [ebx + 0x162]
and al, 0xff
mov byte [ebx + 0x79], al
cmp byte [ebx + 0x7a], 0
je 0x422c0c
mov ax, word [ebx + 0x168]
shr ax, 8
mov byte [ebx + 0x7d], al
cmp byte [ebx + 0x7b], 0
je 0x422c1d
mov al, byte [ebx + 0x168]
and al, 0xff
mov byte [ebx + 0x7c], al
cmp byte [ebx + 0x84], 0
je 0x422c57
push 0
push 0x200
lea eax, [ebx + 0x174]
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.00404630
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
jmp 0x422c74
push 0
push 0x200
lea eax, [ebx + 0x124]
mov eax, dword [eax]
dec eax
xor edx, edx
call fcn.00404630
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
mov dl, 0xf
mov ax, word [ebx + 0x180]
call fcn.0040ff00
test al, al
jne 0x422cc4
mov dl, 0xe
mov ax, word [ebx + 0x180]
call fcn.0040ff00
test al, al
je 0x422cc4
mov dl, 0xd
mov ax, word [ebx + 0x180]
call fcn.0040ff00
test al, al
je 0x422cc4
mov cx, word [ebx + 0x180]
and cx, 0xf
mov eax, 1
shl eax, cl
shl eax, 9
mov dword [ebx + 0x50], eax
jmp 0x422ccb
mov dword [ebx + 0x50], 0x200
mov dl, 1
mov ax, word [ebx + 0x156]
call fcn.0040ff00
mov byte [ebx + 0x6c], al
cmp byte [ebx + 0x6b], 0
je 0x422d04
mov dl, 2
mov ax, word [ebx + 0x1ac]
call fcn.0040ff00
mov byte [ebx + 0x6d], al
mov dl, 5
mov ax, word [ebx + 0x1ac]
call fcn.0040ff00
mov byte [ebx + 0x6e], al
mov dl, 5
mov ax, word [ebx + 0x156]
call fcn.0040ff00
mov byte [ebx + 0x73], al
mov dl, 6
mov ax, word [ebx + 0x156]
call fcn.0040ff00
mov byte [ebx + 0x75], al
mov ax, word [ebx + 0x144]
cmp ax, 0xffff
je 0x422e59
test ax, ax
je 0x422e59
mov byte [ebx + 0x2764], 1
mov ax, word [ebx + 0x144]
and ax, 0xe
test ax, ax
je 0x422da9
mov ax, word [ebx + 0x144]
and ax, 0xe
movzx eax, ax
call fcn.0040fefc
mov byte [ebx + 0x62], al
cmp byte [ebx + 0x62], 3
jbe 0x422db6
lea edx, [ebp - 0xb34]
xor eax, eax
mov al, byte [ebx + 0x62]
call fcn.0040628c
mov ecx, dword [ebp - 0xb34]
lea eax, [ebp - 0xb30]
mov edx, 0x424160
call fcn.00403df4
mov eax, dword [ebp - 0xb30]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
jmp 0x422db6
mov edx, dword [ebp - 4]
mov eax, 0x424190
call fcn.0041f1e8
cmp word [ebx + 0x146], 0
je 0x422e0d
mov ax, word [ebx + 0x146]
and ax, 0xe
movzx eax, ax
shr eax, 1
mov byte [ebx + 0x63], al
cmp byte [ebx + 0x63], 3
jbe 0x422e0d
lea edx, [ebp - 0xb3c]
xor eax, eax
mov al, byte [ebx + 0x63]
call fcn.0040628c
mov ecx, dword [ebp - 0xb3c]
lea eax, [ebp - 0xb38]
mov edx, 0x4241b8
call fcn.00403df4
mov eax, dword [ebp - 0xb38]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
mov dl, 8
mov ax, word [ebx + 0x144]
call fcn.0040ff00
test al, al
je 0x422e25
cmp byte [ebx + 0x68], 1
jne 0x422e29
xor eax, eax
jmp 0x422e2b
mov al, 1
mov byte [ebx + 0x8a], al
mov dl, 8
mov ax, word [ebx + 0x148]
call fcn.0040ff00
mov byte [ebx + 0x8b], al
mov dl, 8
mov ax, word [ebx + 0x14a]
call fcn.0040ff00
mov byte [ebx + 0x8c], al
mov ax, word [ebx + 0x268]
cmp ax, 0xffff
je 0x422ee2
test ax, ax
je 0x422ee2
movzx edx, ax
shr edx, 0xc
cmp edx, 0xe
jne 0x422e7f
mov byte [ebx + 0x2764], 0xe
jmp 0x422ee2
cmp byte [ebx + 0x2764], 1
jne 0x422ee2
and ax, 0xfff
test ax, ax
je 0x422ea8
mov ax, word [ebx + 0x268]
and ax, 0xfff
movzx eax, ax
call fcn.0040fefc
inc eax
mov byte [ebx + 0x61], al
cmp byte [ebx + 0x61], 0xb
jbe 0x422ee2
lea edx, [ebp - 0xb44]
xor eax, eax
mov al, byte [ebx + 0x61]
call fcn.0040628c
mov ecx, dword [ebp - 0xb44]
lea eax, [ebp - 0xb40]
mov edx, 0x4241e8
call fcn.00403df4
mov eax, dword [ebp - 0xb40]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
cmp dword [ebx + 0x5c], 0x1ff
jne 0x422f0a
cmp dword [ebx + 0x58], 0xfffffe00
jne 0x422f0a
cmp byte [ebx + 0x2764], 0
jne 0x422f0a
lea eax, [ebp - 4]
call fcn.00405d34
jmp 0x423eda
mov dl, 0xf
mov ax, word [ebx + 0x158]
call fcn.0040ff00
test al, al
je 0x422fa1
mov dl, 0xf
mov ax, word [ebx + 0x19a]
call fcn.0040ff00
test al, al
jne 0x422f55
mov dl, 0xe
mov ax, word [ebx + 0x19a]
call fcn.0040ff00
test al, al
je 0x422f55
mov dl, 5
mov ax, word [ebx + 0x19a]
call fcn.0040ff00
mov byte [ebx + 0x7e], al
mov dl, 0xf
mov ax, word [ebx + 0x19c]
call fcn.0040ff00
test al, al
jne 0x422f8a
mov dl, 0xe
mov ax, word [ebx + 0x19c]
call fcn.0040ff00
test al, al
je 0x422f8a
mov dl, 5
mov ax, word [ebx + 0x19c]
call fcn.0040ff00
mov byte [ebx + 0x7f], al
cmp byte [ebx + 0x7f], 0
je 0x422fa1
mov ax, word [ebx + 0x116]
shr ax, 8
mov byte [ebx + 0x80], al
xor edx, edx
mov ax, word [ebx + 0x248]
call fcn.0040ff00
test al, al
je 0x422fd3
mov byte [ebx + 0x81], 1
mov dl, 5
mov ax, word [ebx + 0x248]
call fcn.0040ff00
test al, al
je 0x422fd3
mov byte [ebx + 0x83], 1
mov al, byte [ebx + 0x1fc]
and al, 0xf
mov byte [ebx + 0x2765], al
cmp byte [ebx + 0x2765], 9
jbe 0x42303a
mov eax, dword [ebx + 0x6f8]
mov edx, 0x424208
call fcn.00403ef4
je 0x423033
lea edx, [ebp - 0xb4c]
xor eax, eax
mov al, byte [ebx + 0x2765]
call fcn.0040628c
mov ecx, dword [ebp - 0xb4c]
lea eax, [ebp - 0xb48]
mov edx, 0x424218
call fcn.00403df4
mov eax, dword [ebp - 0xb48]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
mov byte [ebx + 0x2765], 0
cmp byte [ebx + 0x70a], 0
je 0x42305c
xor edx, edx
mov ax, word [ebx + 0x1fe]
call fcn.0040ff00
test al, al
je 0x42305c
mov byte [ebx + 0x2760], 1
mov dl, 0xf
mov ax, word [ebx + 0x15a]
call fcn.0040ff00
test al, al
jne 0x4230bc
mov dl, 0xe
mov ax, word [ebx + 0x15a]
call fcn.0040ff00
test al, al
je 0x4230bc
mov dl, 8
mov ax, word [ebx + 0x15a]
call fcn.0040ff00
test al, al
je 0x4230bc
mov byte [ebx + 0x2766], 1
mov ax, word [ebx + 0x184]
and ax, 0xfff
movzx eax, ax
shl eax, 0xc
movzx edx, word [ebx + 0x186]
shr edx, 4
or eax, edx
mov dword [ebx + 0x2768], eax
cmp dword [ebx + 0x6f8], 0
jne 0x423154
mov edx, dword [ebp - 4]
mov eax, 0x424244
call fcn.0041f1e8
lea ecx, [ebp - 0xb54]
mov edx, 6
mov eax, dword [ebx + 0x2768]
call fcn.0040cc20
mov ecx, dword [ebp - 0xb54]
lea eax, [ebp - 0xb50]
mov edx, 0x424264
call fcn.00403df4
mov eax, dword [ebp - 0xb50]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
cmp byte [ebx + 0x70b], 0
je 0x423154
lea ecx, [ebp - 0xb5c]
movzx eax, word [ebx + 0x70c]
mov edx, 4
call fcn.0040cc20
mov ecx, dword [ebp - 0xb5c]
lea eax, [ebp - 0xb58]
mov edx, 0x424274
call fcn.00403df4
mov eax, dword [ebp - 0xb58]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00402b54
mov byte [ebp - 6], 0xb0
mov byte [ebp - 0xc], 0xd0
mov byte [ebp - 9], 0x4f
mov byte [ebp - 8], 0xc2
mov byte [ebp - 0xb], 1
lea ecx, [ebx + 0x2ad]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00420cb0
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x42319d
lea eax, [ebp - 4]
call fcn.00405d34
jmp 0x423eda
cmp byte [ebx + 0x70b], 0
je 0x4231b2
mov eax, ebx
call fcn.00428248
jmp 0x423793
mov eax, ebx
call fcn.00428218
test al, al
jne 0x4231d1
mov byte [ebx + 0x2763], 1
lea eax, [ebp - 4]
call fcn.00405d34
jmp 0x423eda
test byte [ebx + 0x41c], 0x10
je 0x4231e1
mov byte [ebx + 0x6ad], 1
cmp byte [ebx + 0x6ad], 0
je 0x423202
mov al, byte [ebx + 0x421]
mov byte [ebx + 0x6ae], al
mov al, byte [ebx + 0x422]
mov byte [ebx + 0x6b1], al
mov eax, ebx
call fcn.004281f8
mov byte [ebx + 0x2ac], al
cmp byte [ebx + 0x2ac], 0
jne 0x423225
lea eax, [ebp - 4]
call fcn.00405d34
jmp 0x423eda
cmp byte [ebx + 0x70a], 0
je 0x423235
mov eax, ebx
call fcn.004219b8
mov eax, dword [ebx + 0x6f8]
mov edx, 0x42428c
call fcn.00403ef4
jne 0x4232ce
mov al, byte [ebx + 0x700]
cmp al, 0x11
je 0x42325d
cmp al, 0x12
je 0x42325d
cmp al, 0xa
jne 0x42326d
lea eax, [ebx + 0x6f8]
mov edx, 0x42429c
call fcn.00403b60
mov eax, dword [ebx + 0x4c]
mov edx, 0x4242ac
call fcn.00403ef4
je 0x4232c7
mov eax, dword [ebx + 0x4c]
mov edx, 0x4242c4
call fcn.00403ef4
je 0x4232c7
mov eax, dword [ebx + 0x4c]
mov edx, 0x4242dc
call fcn.00403ef4
je 0x4232c7
mov eax, dword [ebx + 0x4c]
mov edx, 0x4242f4
call fcn.00403ef4
je 0x4232c7
mov eax, dword [ebx + 0x4c]
mov edx, 0x42430c
call fcn.00403ef4
je 0x4232c7
mov eax, dword [ebx + 0x4c]
mov edx, 0x424324
call fcn.00403ef4
jne 0x4232ce
mov byte [ebx + 0x93], 1
mov eax, dword [ebx + 0x6f8]
mov edx, 0x42433c
call fcn.00403ef4
jne 0x42330e
mov eax, dword [ebx + 0x4c]
mov edx, 0x424354
call fcn.00403ef4
jne 0x42330e
mov eax, dword [ebx + 0x44]
mov edx, 0x424374
call fcn.00403ef4
jne 0x42330e
mov edx, 0x42429c
lea eax, [ebx + 0x6f8]
call fcn.00403b60
mov eax, dword [ebx + 0x6f8]
mov edx, 0x424384
call fcn.00403ef4
jne 0x42354d
mov eax, dword [ebx + 0x4c]
mov edx, 0x424398
call fcn.00403ef4
jne 0x42338d
mov eax, dword [ebx + 0x44]
mov edx, 0x4243b8
call fcn.00403ef4
je 0x423378
mov eax, dword [ebx + 0x44]
mov edx, 0x4243c8
call fcn.00403ef4
je 0x423378
mov eax, dword [ebx + 0x44]
mov edx, 0x4243d8
call fcn.00403ef4
je 0x423378
mov eax, dword [ebx + 0x44]
mov edx, 0x4243ec
call fcn.00403ef4
jne 0x42338d
cmp byte [ebx + 0x700], 0x11
jne 0x42338d
mov edx, 0x42429c
lea eax, [ebx + 0x6f8]
call fcn.00403b60
jmp 0x42354d
mov eax, dword [ebx + 0x4c]
mov edx, 0x424400
call fcn.00403ef4
jne 0x4233cf
mov eax, dword [ebx + 0x44]
mov edx, 0x424420
call fcn.00403ef4
je 0x4233ba
mov eax, dword [ebx + 0x44]
mov edx, 0x424430
call fcn.00403ef4
jne 0x4233cf
mov edx, 0x42429c
lea eax, [ebx + 0x6f8]
call fcn.00403b60
jmp 0x42354d
mov eax, dword [ebx + 0x4c]
mov edx, 0x424444
call fcn.00403ef4
jne 0x423456
mov eax, dword [ebx + 0x44]
mov edx, 0x424464
call fcn.00403ef4
je 0x423441
mov eax, dword [ebx + 0x44]
mov edx, 0x424474
call fcn.00403ef4
je 0x423441
mov eax, dword [ebx + 0x44]
mov edx, 0x424374
call fcn.00403ef4
je 0x423441
mov eax, dword [ebx + 0x44]
mov edx, 0x424484
call fcn.00403ef4
je 0x423441
mov eax, dword [ebx + 0x44]
mov edx, 0x424494
call fcn.00403ef4
je 0x423441
mov eax, dword [ebx + 0x44]
mov edx, 0x4243ec
call fcn.00403ef4
jne 0x423456
cmp byte [ebx + 0x700], 0x11
jne 0x423456
mov edx, 0x42429c
lea eax, [ebx + 0x6f8]
call fcn.00403b60
jmp 0x42354d
mov eax, dword [ebx + 0x4c]
mov edx, 0x4244a8
call fcn.00403ef4
jne 0x423492
mov eax, dword [ebx + 0x44]
mov edx, 0x4243ec
call fcn.00403ef4
jne 0x423492
cmp byte [ebx + 0x700], 0x11
jne 0x423492
mov edx, 0x42429c
lea eax, [ebx + 0x6f8]
call fcn.00403b60
jmp 0x42354d
mov eax, dword [ebx + 0x4c]
mov edx, 0x4244c8
call fcn.00403ef4
jne 0x4234e9
mov eax, dword [ebx + 0x44]
mov edx, 0x4244e8
call fcn.00403ef4
je 0x4234d7
mov eax, dword [ebx + 0x44]
mov edx, 0x4244f8
call fcn.00403ef4
je 0x4234d7
mov eax, dword [ebx + 0x44]
mov edx, 0x424508
call fcn.00403ef4
jne 0x4234e9
cmp byte [ebx + 0x700], 0x11
jne 0x4234e9
mov edx, 0x42429c
lea eax, [ebx + 0x6f8]
call fcn.00403b60
jmp 0x42354d
mov eax, dword [ebx + 0x4c]
mov edx, 0x42451c
call fcn.00403ef4
jne 0x42354d
mov eax, dword [ebx + 0x44]
mov edx, 0x42453c
call fcn.00403ef4
je 0x42353d
mov eax, dword [ebx + 0x44]
mov edx, 0x42454c
call fcn.00403ef4
je 0x42353d
mov eax, dword [ebx + 0x44]
mov edx, 0x42455c
call fcn.00403ef4
je 0x42353d
mov eax, dword [ebx + 0x44]
mov edx, 0x42456c
call fcn.00403ef4
jne 0x42354d
cmp byte [ebx + 0x700], 0x11
jne 0x42354d
mov edx, 0x42429c
lea eax, [ebx + 0x6f8]
call fcn.00403b60
cmp byte [ebx + 0x81], 0
je 0x4235ba
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.00427dc4
test al, al
je 0x4235ad
mov byte [ebx + 0x82], 1
cmp byte [ebp - 0x19c], 0x80
jae 0x423585
mov al, byte [ebp - 0x19c]
mov byte [ebx + 0x8f], al
jmp 0x42359b
cmp byte [ebx + 0x700], 0x12
je 0x42359b
mov edx, dword [ebp - 4]
mov eax, 0x424580
call fcn.0041f1e8
cmp byte [ebx + 0x83], 0
je 0x4235ba
mov eax, ebx
call fcn.00427f2c
jmp 0x4235ba
mov edx, dword [ebp - 4]
mov eax, 0x4245a4
call fcn.0041f1e8
mov eax, ebx
call fcn.004285f4
mov eax, ebx
call fcn.00428248
cmp byte [ebx + 0x6c0], 0
je 0x4235dd
mov eax, dword [ebx + 0x6cc]
mov dword [ebx + 0x6c8], eax
cmp byte [ebx + 0x8e], 0
jne 0x4235f3
mov edx, dword [ebp - 4]
mov eax, 0x4245c0
call fcn.0041f1e8
cmp byte [ebx + 0x8f], 0
jne 0x4236a9
cmp byte [ebx + 0x8d], 0
je 0x4236a9
xor eax, eax
mov al, byte [ebx + 0x8d]
lea eax, [eax + eax*2]
lea eax, [ebx + eax*4 + 0x2a3]
cmp byte [eax + 6], 0
je 0x423634
cmp byte [eax + 7], 0
je 0x423634
mov dl, byte [eax + 7]
mov byte [ebx + 0x8f], dl
cmp byte [eax + 7], 0
je 0x423649
cmp byte [eax + 8], 0
je 0x423649
mov dl, byte [eax + 8]
mov byte [ebx + 0x8f], dl
cmp byte [eax + 7], 0
je 0x42365e
cmp byte [eax + 9], 0
je 0x42365e
mov al, byte [eax + 9]
mov byte [ebx + 0x8f], al
cmp byte [ebx + 0x8f], 0x55
jbe 0x4236a9
lea edx, [ebp - 0xb64]
xor eax, eax
mov al, byte [ebx + 0x8d]
lea eax, [eax + eax*2]
movzx eax, byte [ebx + eax*4 + 0x2a3]
call fcn.0040628c
mov ecx, dword [ebp - 0xb64]
lea eax, [ebp - 0xb60]
mov edx, 0x4245d8
call fcn.00403df4
mov eax, dword [ebp - 0xb60]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00402b54
mov byte [ebp - 6], 0xb0
mov byte [ebp - 0xc], 0xd1
mov byte [ebp - 9], 0x4f
mov byte [ebp - 8], 0xc2
mov byte [ebp - 0xb], 1
lea ecx, [ebx + 0x4ad]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00420cb0
mov byte [ebp - 0x19], al
cmp byte [0x446b78], 0
je 0x423780
xor eax, eax
mov al, byte [0x446b78]
dec eax
test eax, eax
jb 0x423780
inc eax
mov dword [ebp - 0x3c], eax
mov esi, 0x446b7c
mov eax, dword [ebx + 0x40]
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
call fcn.00403ef4
jne 0x423738
lea eax, [ebp - 0xb68]
mov ecx, dword [ebx + 0x2c]
mov edx, 0x424608
call fcn.00403df4
mov eax, dword [ebp - 0xb68]
xor edx, edx
call fcn.0041f1e8
mov byte [ebp - 0x19], 0
mov eax, dword [esi]
lea edx, [eax + 0x2ad]
lea eax, [ebx + 0x2ad]
mov ecx, 0x200
call fcn.00406328
test al, al
je 0x423778
lea eax, [ebp - 0xb6c]
mov ecx, dword [ebx + 0x2c]
mov edx, 0x424634
call fcn.00403df4
mov eax, dword [ebp - 0xb6c]
xor edx, edx
call fcn.0041f1e8
mov byte [ebp - 0x19], 0
add esi, 4
dec dword [ebp - 0x3c]
jne 0x423705
cmp byte [ebp - 0x19], 0
jne 0x423793
lea eax, [ebp - 4]
call fcn.00405d34
jmp 0x423eda
mov eax, ebx
call fcn.004217b4
cmp byte [ebx + 0x70b], 0
jne 0x4237e9
cmp byte [ebx + 0x2764], 0
jne 0x4237e9
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a428
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 0x4237e9
mov byte [ebx + 0x32], 1
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a414
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 + 0x70b], 0
jne 0x42387c
cmp byte [ebx + 0x2764], 0
jne 0x42387c
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a428
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 0x423878
lea eax, [ebp - 0xab8]
cmp byte [eax], 2
jae 0x423878
mov byte [ebx + 0x32], 1
jmp 0x42387c
mov byte [ebx + 0x32], 0
cmp byte [ebx + 0x275c], 0
je 0x4238d7
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a464
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
lea eax, [ebp - 0xb70]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
mov eax, dword [ebp - 0xb70]
mov edx, 0x42465c
call fcn.00403ef4
jne 0x4238d7
mov byte [ebx + 0x275d], 1
xor esi, esi
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a450
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
lea eax, [ebp - 0xb74]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
mov eax, dword [ebp - 0xb74]
mov edx, 0x424688
call fcn.00403ef4
je 0x423966
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a414
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 0x4238d9
cmp esi, 0xa
jne 0x4239ae
mov byte [ebx + 0x32], 0
lea eax, [ebp - 0xb7c]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
mov ecx, dword [ebp - 0xb7c]
lea eax, [ebp - 0xb78]
mov edx, 0x424694
call fcn.00403df4
mov eax, dword [ebp - 0xb78]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
jmp 0x423c0c
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a43c
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 0x43a478
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
test eax, eax
jne 0x423a18
mov edx, dword [ebp - 4]
mov eax, 0x4246bc
call fcn.0041f1e8
lea eax, [ebx + 0x38]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
cmp byte [ebx + 0x70b], 0
je 0x423c0c
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a3ec
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 + 0x2720], al
mov al, byte [ebx + 0x2720]
not al
dec eax
sub al, 6
jae 0x423aad
lea edx, [ebp - 0xb84]
xor eax, eax
mov al, byte [ebx + 0x2720]
call fcn.0040628c
mov ecx, dword [ebp - 0xb84]
lea eax, [ebp - 0xb80]
mov edx, 0x4246e8
call fcn.00403df4
mov eax, dword [ebp - 0xb80]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a400
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 + 0x2721], al
mov al, byte [ebx + 0x2721]
not al
dec eax
sub al, 0x10
jae 0x423b22
lea edx, [ebp - 0xb8c]
xor eax, eax
mov al, byte [ebx + 0x2721]
call fcn.0040628c
mov ecx, dword [ebp - 0xb8c]
lea eax, [ebp - 0xb88]
mov edx, 0x42470c
call fcn.00403df4
mov eax, dword [ebp - 0xb88]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a3c4
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 + 0x2722], al
mov al, byte [ebx + 0x2722]
not al
dec eax
sub al, 6
jae 0x423b97
lea edx, [ebp - 0xb94]
xor eax, eax
mov al, byte [ebx + 0x2722]
call fcn.0040628c
mov ecx, dword [ebp - 0xb94]
lea eax, [ebp - 0xb90]
mov edx, 0x424730
call fcn.00403df4
mov eax, dword [ebp - 0xb90]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x43a3d8
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 + 0x2723], al
mov al, byte [ebx + 0x2723]
not al
dec eax
sub al, 0x10
jae 0x423c0c
lea edx, [ebp - 0xb9c]
xor eax, eax
mov al, byte [ebx + 0x2723]
call fcn.0040628c
mov ecx, dword [ebp - 0xb9c]
lea eax, [ebp - 0xb98]
mov edx, 0x424758
call fcn.00403df4
mov eax, dword [ebp - 0xb98]
mov edx, dword [ebp - 4]
call fcn.0041f1e8
push 0x424780
push dword [ebx + 0x4c]
push 0x424794
push dword [ebx + 0x40]
push 0x4247a0
lea eax, [ebx + 0x20]
mov edx, 5
call fcn.00403e68
push 0
lea eax, [ebp - 0x18]
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 0x423c60
mov edx, dword [ebp - 4]
mov eax, 0x4247ac
call fcn.0041f1e8
mov al, byte [ebp - 0x290]
mov byte [ebp - 0x1a], al
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call fcn.0040fee4
and eax, 0xff
push eax
lea eax, [ebp - 0x28]
mov ecx, 1
mov edx, dword [0x421e38]
call fcn.004048a4
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 0x423d5c
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x4247d0
lea eax, [ebp - 0xba4]
lea edx, [esi + 0x41]
call fcn.00403cd8
push dword [ebp - 0xba4]
push 0x4247e0
lea eax, [ebp - 0xba0]
mov edx, 3
call fcn.00403e68
mov eax, dword [ebp - 0xba0]
call fcn.00403fa8
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
je 0x423d5c
push 0
lea eax, [ebp - 0x18]
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 0x423d56
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 0x423c9c
cmp dword [ebp - 0x24], 0
je 0x423e2e
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jb 0x423e2e
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 - 0x1a]
cmp eax, edx
jne 0x423e24
cmp dword [ebx + 0x6ec], 0
jne 0x423dec
lea eax, [ebp - 0xba8]
mov edx, dword [ebp - 0x28]
mov dl, byte [edx + edi*8 + 0x18]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0xba8]
lea eax, [ebp - 0xbac]
call fcn.00402b48
mov edx, 0x4247e4
lea eax, [ebp - 0xbac]
mov cl, 2
call fcn.00402b18
lea edx, [ebp - 0xbac]
lea eax, [ebx + 0x6ec]
call fcn.00403d54
jmp 0x423e24
push dword [ebx + 0x6ec]
push 0x4247f0
lea eax, [ebp - 0xbb0]
mov edx, dword [ebp - 0x28]
mov dl, byte [edx + edi*8 + 0x18]
call fcn.00403cd8
push dword [ebp - 0xbb0]
push 0x4247e0
lea eax, [ebx + 0x6ec]
mov edx, 4
call fcn.00403e68
inc esi
dec dword [ebp - 0x3c]
jne 0x423d82
cmp byte [ebx + 0x2760], 0
je 0x423ea0
mov dword [ebp - 0x27a], 8
xor eax, eax
mov dword [ebp - 0x276], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x286]
xor ecx, ecx
mov edx, 0xc
call fcn.00402b54
push 0
lea eax, [ebp - 0x18]
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 0x423ea0
cmp dword [ebp - 0x18], 0xc
jne 0x423ea0
cmp dword [ebp - 0x27e], 0
je 0x423ea0
mov byte [ebx + 0x2761], 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 [0x446c4c]
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 0x423f59
lea eax, [ebp - 0xbb0]
call fcn.00403b0c
lea eax, [ebp - 0xba4]
mov edx, 0x34
call fcn.00403b30
lea eax, [ebp - 0xad4]
mov edx, 2
call fcn.00404114
lea eax, [ebp - 0xacc]
call fcn.00403b0c
lea eax, [ebp - 0xac8]
call fcn.004040fc
lea eax, [ebp - 0xac4]
call fcn.00403b0c
lea eax, [ebp - 0xac0]
mov edx, 2
call fcn.00404114
lea eax, [ebp - 0x28]
mov edx, dword [0x421e38]
call fcn.004048b0
ret