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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x164
push 0
push 0
dec ecx
jne 0x41fed1
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 0x421364
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x41dfb4]
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 - 0x30]
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, 0x42137c
call fcn.004041a8
jne 0x41ff88
mov byte [ebx + 0x707], 1
mov eax, ebx
call fcn.00421b28
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.0041ee14
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
je 0x41ffcc
mov eax, ebx
call fcn.0041fa70
test al, al
jne 0x41ffcc
mov byte [ebp - 0x11], 0
cmp byte [ebp - 0x11], 0
je 0x420021
xor edx, edx
mov ax, word [ebx + 0x154]
call fcn.0040feb0
test al, al
jne 0x420021
xor edx, edx
mov ax, word [ebx + 0x14e]
call fcn.0040feb0
test al, al
je 0x420021
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.0041ee14
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x420034
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x421318
lea eax, [ebp - 0xac4]
push eax
lea eax, [ebx + 0xe0]
mov cl, 1
mov dl, 0x28
call fcn.0041fdf0
mov edx, dword [ebp - 0xac4]
lea eax, [ebx + 0x4c]
call fcn.00403b60
lea edx, [ebp - 0xac8]
mov eax, dword [ebx + 0x4c]
call fcn.004141c0
mov edx, dword [ebp - 0xac8]
lea eax, [ebx + 0x6f4]
call fcn.00403b60
cmp dword [ebx + 0x6f4], 0
jne 0x42008d
mov edx, dword [ebp - 4]
mov eax, 0x421390
call fcn.0041dfc8
lea eax, [ebp - 0xacc]
push eax
lea eax, [ebx + 0xbe]
mov cl, 1
mov dl, 0x14
call fcn.0041fdf0
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.0041fdf0
mov edx, dword [ebp - 0xad0]
lea eax, [ebx + 0x44]
call fcn.00403b60
cmp word [ebx + 0x25c], 1
jne 0x4200e8
mov byte [ebx + 0x706], 1
jmp 0x420102
mov ax, word [ebx + 0x25c]
cmp ax, 0x400
jbe 0x420102
cmp ax, 0xffff
je 0x420102
mov word [ebx + 0x70a], ax
cmp word [ebx + 0x14a], 0
je 0x42011b
movzx eax, word [ebx + 0x14a]
call fcn.0040feac
mov byte [ebx + 0x60], al
cmp byte [ebx + 0x60], 0xc
jbe 0x420155
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, 0x4213b0
call fcn.00403df4
mov eax, dword [ebp - 0xad4]
mov edx, dword [ebp - 4]
call fcn.0041dfc8
movzx eax, word [ebx + 0xd4]
shl eax, 9
mov dword [ebx + 0x64], eax
mov dl, 0xf
mov ax, word [ebx + 0x10a]
call fcn.0040feb0
test al, al
jne 0x420197
mov dl, 0xe
mov ax, word [ebx + 0x10a]
call fcn.0040feb0
test al, al
je 0x420197
xor edx, edx
mov ax, word [ebx + 0x10a]
call fcn.0040feb0
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.0040feb0
test al, al
je 0x420201
mov ax, word [ebx + 0x15a]
and ax, 0xff
test ax, ax
je 0x4201db
mov ax, word [ebx + 0x15a]
and ax, 0xff
movzx eax, ax
call fcn.0040feac
mov byte [ebx + 0x6a], al
mov ax, word [ebx + 0x15a]
shr ax, 8
test ax, ax
je 0x420201
mov ax, word [ebx + 0x15a]
shr ax, 8
movzx eax, ax
call fcn.0040fea8
mov byte [ebx + 0x69], al
mov dl, 1
mov ax, word [ebx + 0x14e]
call fcn.0040feb0
mov byte [ebx + 0x6b], al
cmp byte [ebx + 0x6b], 0
je 0x42022e
mov ax, word [ebx + 0x15c]
and ax, 0x7fff
movzx eax, ax
add eax, eax
mov dword [ebx + 0x6dc], eax
mov dl, 0xc
mov ax, word [ebx + 0x120]
call fcn.0040feb0
mov byte [ebx + 0x6f], al
cmp byte [ebx + 0x6f], 0
je 0x420256
mov dl, 0xd
mov ax, word [ebx + 0x120]
call fcn.0040feb0
mov byte [ebx + 0x70], al
mov dl, 3
mov ax, word [ebx + 0x14e]
call fcn.0040feb0
mov byte [ebx + 0x76], al
mov dl, 5
mov ax, word [ebx + 0x14e]
call fcn.0040feb0
mov byte [ebx + 0x72], al
mov dl, 6
mov ax, word [ebx + 0x14e]
call fcn.0040feb0
mov byte [ebx + 0x74], al
mov dl, 0xa
mov ax, word [ebx + 0x14e]
call fcn.0040feb0
mov byte [ebx + 0x85], al
xor edx, edx
mov ax, word [ebx + 0x150]
call fcn.0040feb0
mov byte [ebx + 0x48], al
mov dl, 1
mov ax, word [ebx + 0x150]
call fcn.0040feb0
mov byte [ebx + 0x88], al
cmp byte [ebx + 0x88], 0
je 0x4202d8
cmp byte [ebx + 0x68], 1
je 0x4202d8
mov byte [ebx + 0x89], 1
mov dl, 3
mov ax, word [ebx + 0x150]
call fcn.0040feb0
mov byte [ebx + 0x77], al
cmp byte [ebx + 0x85], 0
je 0x420306
mov dl, 8
mov ax, word [ebx + 0x150]
call fcn.0040feb0
mov byte [ebx + 0x86], al
cmp byte [ebx + 0x706], 0
jne 0x420320
mov dl, 9
mov ax, word [ebx + 0x150]
call fcn.0040feb0
mov byte [ebx + 0x7a], al
mov dl, 0xa
mov ax, word [ebx + 0x150]
call fcn.0040feb0
mov byte [ebx + 0x84], al
mov dl, 3
mov ax, word [ebx + 0x156]
call fcn.0040feb0
mov byte [ebx + 0x78], al
cmp byte [ebx + 0x86], 0
je 0x420362
mov dl, 8
mov ax, word [ebx + 0x156]
call fcn.0040feb0
mov byte [ebx + 0x87], al
cmp byte [ebx + 0x7a], 0
je 0x420379
mov dl, 9
mov ax, word [ebx + 0x156]
call fcn.0040feb0
mov byte [ebx + 0x7b], al
cmp byte [ebx + 0x78], 0
je 0x42038a
mov al, byte [ebx + 0x160]
and al, 0xff
mov byte [ebx + 0x79], al
cmp byte [ebx + 0x7a], 0
je 0x42039e
mov ax, word [ebx + 0x166]
shr ax, 8
mov byte [ebx + 0x7d], al
cmp byte [ebx + 0x7b], 0
je 0x4203af
mov al, byte [ebx + 0x166]
and al, 0xff
mov byte [ebx + 0x7c], al
cmp byte [ebx + 0x84], 0
je 0x4203e9
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 0x420406
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.0040feb0
test al, al
jne 0x420456
mov dl, 0xe
mov ax, word [ebx + 0x17e]
call fcn.0040feb0
test al, al
je 0x420456
mov dl, 0xd
mov ax, word [ebx + 0x17e]
call fcn.0040feb0
test al, al
je 0x420456
mov cx, word [ebx + 0x17e]
and cx, 0xf
mov eax, 1
shl eax, cl
shl eax, 9
mov dword [ebx + 0x50], eax
jmp 0x42045d
mov dword [ebx + 0x50], 0x200
mov dl, 1
mov ax, word [ebx + 0x154]
call fcn.0040feb0
mov byte [ebx + 0x6c], al
cmp byte [ebx + 0x6b], 0
je 0x420496
mov dl, 2
mov ax, word [ebx + 0x1aa]
call fcn.0040feb0
mov byte [ebx + 0x6d], al
mov dl, 5
mov ax, word [ebx + 0x1aa]
call fcn.0040feb0
mov byte [ebx + 0x6e], al
mov dl, 5
mov ax, word [ebx + 0x154]
call fcn.0040feb0
mov byte [ebx + 0x73], al
mov dl, 6
mov ax, word [ebx + 0x154]
call fcn.0040feb0
mov byte [ebx + 0x75], al
mov ax, word [ebx + 0x142]
cmp ax, 0xffff
je 0x4205eb
test ax, ax
je 0x4205eb
mov byte [ebx + 0x710], 1
mov ax, word [ebx + 0x142]
and ax, 0xe
test ax, ax
je 0x42053b
mov ax, word [ebx + 0x142]
and ax, 0xe
movzx eax, ax
call fcn.0040feac
mov byte [ebx + 0x62], al
cmp byte [ebx + 0x62], 3
jbe 0x420548
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, 0x4213d0
call fcn.00403df4
mov eax, dword [ebp - 0xadc]
mov edx, dword [ebp - 4]
call fcn.0041dfc8
jmp 0x420548
mov edx, dword [ebp - 4]
mov eax, 0x421400
call fcn.0041dfc8
cmp word [ebx + 0x144], 0
je 0x42059f
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 0x42059f
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, 0x421428
call fcn.00403df4
mov eax, dword [ebp - 0xae4]
mov edx, dword [ebp - 4]
call fcn.0041dfc8
mov dl, 8
mov ax, word [ebx + 0x142]
call fcn.0040feb0
test al, al
je 0x4205b7
cmp byte [ebx + 0x68], 1
jne 0x4205bb
xor eax, eax
jmp 0x4205bd
mov al, 1
mov byte [ebx + 0x8a], al
mov dl, 8
mov ax, word [ebx + 0x146]
call fcn.0040feb0
mov byte [ebx + 0x8b], al
mov dl, 8
mov ax, word [ebx + 0x148]
call fcn.0040feb0
mov byte [ebx + 0x8c], al
mov ax, word [ebx + 0x266]
cmp ax, 0xffff
je 0x420674
test ax, ax
je 0x420674
movzx edx, ax
shr edx, 0xc
cmp edx, 0xe
jne 0x420611
mov byte [ebx + 0x710], 0xe
jmp 0x420674
cmp byte [ebx + 0x710], 1
jne 0x420674
and ax, 0xfff
test ax, ax
je 0x42063a
mov ax, word [ebx + 0x266]
and ax, 0xfff
movzx eax, ax
call fcn.0040feac
inc eax
mov byte [ebx + 0x61], al
cmp byte [ebx + 0x61], 0xb
jbe 0x420674
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, 0x421458
call fcn.00403df4
mov eax, dword [ebp - 0xaec]
mov edx, dword [ebp - 4]
call fcn.0041dfc8
cmp dword [ebx + 0x5c], 0x1ff
jne 0x42069c
cmp dword [ebx + 0x58], 0xfffffe00
jne 0x42069c
cmp byte [ebx + 0x710], 0
jne 0x42069c
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x421318
mov dl, 0xf
mov ax, word [ebx + 0x156]
call fcn.0040feb0
test al, al
je 0x420733
mov dl, 0xf
mov ax, word [ebx + 0x198]
call fcn.0040feb0
test al, al
jne 0x4206e7
mov dl, 0xe
mov ax, word [ebx + 0x198]
call fcn.0040feb0
test al, al
je 0x4206e7
mov dl, 5
mov ax, word [ebx + 0x198]
call fcn.0040feb0
mov byte [ebx + 0x7e], al
mov dl, 0xf
mov ax, word [ebx + 0x19a]
call fcn.0040feb0
test al, al
jne 0x42071c
mov dl, 0xe
mov ax, word [ebx + 0x19a]
call fcn.0040feb0
test al, al
je 0x42071c
mov dl, 5
mov ax, word [ebx + 0x19a]
call fcn.0040feb0
mov byte [ebx + 0x7f], al
cmp byte [ebx + 0x7f], 0
je 0x420733
mov ax, word [ebx + 0x114]
shr ax, 8
mov byte [ebx + 0x80], al
xor edx, edx
mov ax, word [ebx + 0x246]
call fcn.0040feb0
test al, al
je 0x420765
mov byte [ebx + 0x81], 1
mov dl, 5
mov ax, word [ebx + 0x246]
call fcn.0040feb0
test al, al
je 0x420765
mov byte [ebx + 0x83], 1
mov al, byte [ebx + 0x1fa]
and al, 0xf
mov byte [ebx + 0x711], al
cmp byte [ebx + 0x711], 9
jbe 0x4207cc
mov eax, dword [ebx + 0x6f4]
mov edx, 0x421478
call fcn.00403ef4
je 0x4207c5
lea edx, [ebp - 0xaf8]
xor eax, eax
mov al, byte [ebx + 0x711]
call fcn.0040623c
mov ecx, dword [ebp - 0xaf8]
lea eax, [ebp - 0xaf4]
mov edx, 0x421488
call fcn.00403df4
mov eax, dword [ebp - 0xaf4]
mov edx, dword [ebp - 4]
call fcn.0041dfc8
mov byte [ebx + 0x711], 0
cmp byte [ebx + 0x706], 0
je 0x4207ee
xor edx, edx
mov ax, word [ebx + 0x1fc]
call fcn.0040feb0
test al, al
je 0x4207ee
mov byte [ebx + 0x70c], 1
mov dl, 0xf
mov ax, word [ebx + 0x158]
call fcn.0040feb0
test al, al
jne 0x42084e
mov dl, 0xe
mov ax, word [ebx + 0x158]
call fcn.0040feb0
test al, al
je 0x42084e
mov dl, 8
mov ax, word [ebx + 0x158]
call fcn.0040feb0
test al, al
je 0x42084e
mov byte [ebx + 0x712], 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 + 0x714], eax
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.0041ee14
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x420894
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x421318
mov eax, ebx
call fcn.004250b0
test al, al
jne 0x4208b3
mov byte [ebx + 0x70f], 1
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x421318
mov al, byte [ebx + 0x41a]
and al, 0x10
mov byte [ebx + 0x6ab], al
test al, al
je 0x4208dd
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.00425090
mov byte [ebx + 0x2aa], al
cmp byte [ebx + 0x2aa], 0
jne 0x420900
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x421318
cmp byte [ebx + 0x706], 0
je 0x420910
mov eax, ebx
call fcn.0041fa90
mov eax, dword [ebx + 0x6f4]
mov edx, 0x4214b4
call fcn.00403ef4
jne 0x4209a9
mov al, byte [ebx + 0x6fc]
cmp al, 0x11
je 0x420938
cmp al, 0x12
je 0x420938
cmp al, 0xa
jne 0x420948
lea eax, [ebx + 0x6f4]
mov edx, 0x4214c4
call fcn.00403b60
mov eax, dword [ebx + 0x4c]
mov edx, 0x4214d4
call fcn.00403ef4
je 0x4209a2
mov eax, dword [ebx + 0x4c]
mov edx, 0x4214ec
call fcn.00403ef4
je 0x4209a2
mov eax, dword [ebx + 0x4c]
mov edx, 0x421504
call fcn.00403ef4
je 0x4209a2
mov eax, dword [ebx + 0x4c]
mov edx, 0x42151c
call fcn.00403ef4
je 0x4209a2
mov eax, dword [ebx + 0x4c]
mov edx, 0x421534
call fcn.00403ef4
je 0x4209a2
mov eax, dword [ebx + 0x4c]
mov edx, 0x42154c
call fcn.00403ef4
jne 0x4209a9
mov byte [ebx + 0x93], 1
mov eax, dword [ebx + 0x6f4]
mov edx, 0x421564
call fcn.00403ef4
jne 0x4209e9
mov eax, dword [ebx + 0x4c]
mov edx, 0x42157c
call fcn.00403ef4
jne 0x4209e9
mov eax, dword [ebx + 0x44]
mov edx, 0x42159c
call fcn.00403ef4
jne 0x4209e9
lea eax, [ebx + 0x6f4]
mov edx, 0x4214c4
call fcn.00403b60
mov eax, dword [ebx + 0x6f4]
mov edx, 0x4215ac
call fcn.00403ef4
jne 0x420c19
mov eax, dword [ebx + 0x4c]
mov edx, 0x4215c0
call fcn.00403ef4
jne 0x420a68
mov eax, dword [ebx + 0x44]
mov edx, 0x4215e0
call fcn.00403ef4
je 0x420a53
mov eax, dword [ebx + 0x44]
mov edx, 0x4215f0
call fcn.00403ef4
je 0x420a53
mov eax, dword [ebx + 0x44]
mov edx, 0x421600
call fcn.00403ef4
je 0x420a53
mov eax, dword [ebx + 0x44]
mov edx, 0x421614
call fcn.00403ef4
jne 0x420a68
cmp byte [ebx + 0x6fc], 0x11
jne 0x420a68
lea eax, [ebx + 0x6f4]
mov edx, 0x4214c4
call fcn.00403b60
jmp 0x420c19
mov eax, dword [ebx + 0x4c]
mov edx, 0x421628
call fcn.00403ef4
jne 0x420aaa
mov eax, dword [ebx + 0x44]
mov edx, 0x421648
call fcn.00403ef4
je 0x420a95
mov eax, dword [ebx + 0x44]
mov edx, 0x421658
call fcn.00403ef4
jne 0x420aaa
lea eax, [ebx + 0x6f4]
mov edx, 0x4214c4
call fcn.00403b60
jmp 0x420c19
mov eax, dword [ebx + 0x4c]
mov edx, 0x42166c
call fcn.00403ef4
jne 0x420b22
mov eax, dword [ebx + 0x44]
mov edx, 0x42168c
call fcn.00403ef4
je 0x420b0d
mov eax, dword [ebx + 0x44]
mov edx, 0x42169c
call fcn.00403ef4
je 0x420b0d
mov eax, dword [ebx + 0x44]
mov edx, 0x42159c
call fcn.00403ef4
je 0x420b0d
mov eax, dword [ebx + 0x44]
mov edx, 0x4216ac
call fcn.00403ef4
je 0x420b0d
mov eax, dword [ebx + 0x44]
mov edx, 0x421614
call fcn.00403ef4
jne 0x420b22
cmp byte [ebx + 0x6fc], 0x11
jne 0x420b22
lea eax, [ebx + 0x6f4]
mov edx, 0x4214c4
call fcn.00403b60
jmp 0x420c19
mov eax, dword [ebx + 0x4c]
mov edx, 0x4216bc
call fcn.00403ef4
jne 0x420b5e
mov eax, dword [ebx + 0x44]
mov edx, 0x421614
call fcn.00403ef4
jne 0x420b5e
cmp byte [ebx + 0x6fc], 0x11
jne 0x420b5e
lea eax, [ebx + 0x6f4]
mov edx, 0x4214c4
call fcn.00403b60
jmp 0x420c19
mov eax, dword [ebx + 0x4c]
mov edx, 0x4216dc
call fcn.00403ef4
jne 0x420bb5
mov eax, dword [ebx + 0x44]
mov edx, 0x4216fc
call fcn.00403ef4
je 0x420ba3
mov eax, dword [ebx + 0x44]
mov edx, 0x42170c
call fcn.00403ef4
je 0x420ba3
mov eax, dword [ebx + 0x44]
mov edx, 0x42171c
call fcn.00403ef4
jne 0x420bb5
cmp byte [ebx + 0x6fc], 0x11
jne 0x420bb5
lea eax, [ebx + 0x6f4]
mov edx, 0x4214c4
call fcn.00403b60
jmp 0x420c19
mov eax, dword [ebx + 0x4c]
mov edx, 0x421730
call fcn.00403ef4
jne 0x420c19
mov eax, dword [ebx + 0x44]
mov edx, 0x421750
call fcn.00403ef4
je 0x420c09
mov eax, dword [ebx + 0x44]
mov edx, 0x421760
call fcn.00403ef4
je 0x420c09
mov eax, dword [ebx + 0x44]
mov edx, 0x421770
call fcn.00403ef4
je 0x420c09
mov eax, dword [ebx + 0x44]
mov edx, 0x421780
call fcn.00403ef4
jne 0x420c19
cmp byte [ebx + 0x6fc], 0x11
jne 0x420c19
lea eax, [ebx + 0x6f4]
mov edx, 0x4214c4
call fcn.00403b60
cmp byte [ebx + 0x81], 0
je 0x420c5f
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.00424eb8
test al, al
je 0x420c5f
mov byte [ebx + 0x82], 1
cmp byte [ebp - 0x19c], 0x80
je 0x420c4f
mov al, byte [ebp - 0x19c]
mov byte [ebx + 0x8f], al
cmp byte [ebx + 0x83], 0
je 0x420c5f
mov eax, ebx
call fcn.00424f0c
mov eax, ebx
call fcn.004250e0
cmp byte [ebx + 0x8f], 0
jne 0x420cc9
cmp byte [ebx + 0x8d], 0
je 0x420cc9
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 0x420c9f
cmp byte [eax + 7], 0
je 0x420c9f
mov dl, byte [eax + 7]
mov byte [ebx + 0x8f], dl
cmp byte [eax + 7], 0
je 0x420cb4
cmp byte [eax + 8], 0
je 0x420cb4
mov dl, byte [eax + 8]
mov byte [ebx + 0x8f], dl
cmp byte [eax + 7], 0
je 0x420cc9
cmp byte [eax + 9], 0
je 0x420cc9
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.0041ee14
test al, al
jne 0x420d01
mov byte [ebp - 0x11], 0
cmp byte [0x442b6c], 0
je 0x420da2
xor eax, eax
mov al, byte [0x442b6c]
dec eax
test eax, eax
jb 0x420da2
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 0x420d5a
lea eax, [ebp - 0xafc]
mov ecx, dword [ebx + 0x2c]
mov edx, 0x421794
call fcn.00403df4
mov eax, dword [ebp - 0xafc]
xor edx, edx
call fcn.0041dfc8
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 0x420d9a
lea eax, [ebp - 0xb00]
mov ecx, dword [ebx + 0x2c]
mov edx, 0x4217c0
call fcn.00403df4
mov eax, dword [ebp - 0xb00]
xor edx, edx
call fcn.0041dfc8
mov byte [ebp - 0x11], 0
add esi, 4
dec dword [ebp - 0x3c]
jne 0x420d27
cmp byte [ebp - 0x11], 0
jne 0x420db5
lea eax, [ebp - 4]
call fcn.00405ce4
jmp 0x421318
mov eax, ebx
call fcn.0041f8b4
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 0x420dee
mov edx, dword [ebp - 4]
mov eax, 0x4217e8
call fcn.0041dfc8
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.0040fe94
and eax, 0xff
push eax
lea eax, [ebp - 0x2c]
mov ecx, 1
mov edx, dword [0x41fea8]
call fcn.00404854
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], eax
xor esi, esi
mov ecx, esi
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x20]
test eax, eax
je 0x420ef2
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x42180c
lea eax, [ebp - 0xb08]
lea edx, [esi + 0x41]
call fcn.00403cd8
push dword [ebp - 0xb08]
push 0x42181c
lea eax, [ebp - 0xb04]
mov edx, 3
call fcn.00403e68
mov eax, dword [ebp - 0xb04]
call fcn.00403fa8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x420ef2
push 0
lea eax, [ebp - 0x10]
push eax
push 0x20
lea eax, [ebp - 0x2b8]
push eax
push 0
push 0
push 0x560000
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x420ee9
mov eax, dword [ebp - 0x28]
shl eax, 2
mov edx, dword [ebp - 0x2c]
lea edx, [edx + eax*8]
lea eax, [ebp - 0x2b0]
mov ecx, 0x18
call fcn.004029dc
mov eax, dword [ebp - 0x28]
shl eax, 2
mov edx, dword [ebp - 0x2c]
lea ecx, [esi + 0x41]
mov byte [edx + eax*8 + 0x18], cl
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle
inc esi
cmp esi, 0x20
jne 0x420e2a
cmp dword [ebp - 0x28], 0
je 0x420fce
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jb 0x420fce
inc eax
mov dword [ebp - 0x3c], eax
xor esi, esi
mov eax, esi
shl eax, 2
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + eax*8]
xor edx, edx
mov dl, byte [ebp - 0x12]
cmp eax, edx
jne 0x420fc4
cmp dword [ebx + 0x6e8], 0
jne 0x420f87
lea eax, [ebp - 0xb0c]
mov edx, esi
shl edx, 2
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + edx*8 + 0x18]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0xb0c]
lea eax, [ebp - 0xb10]
call fcn.00402b48
mov edx, 0x421820
lea eax, [ebp - 0xb10]
mov cl, 2
call fcn.00402b18
lea edx, [ebp - 0xb10]
lea eax, [ebx + 0x6e8]
call fcn.00403d54
jmp 0x420fc4
push dword [ebx + 0x6e8]
push 0x42182c
lea eax, [ebp - 0xb14]
mov edx, esi
shl edx, 2
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + edx*8 + 0x18]
call fcn.00403cd8
push dword [ebp - 0xb14]
push 0x42181c
lea eax, [ebx + 0x6e8]
mov edx, 4
call fcn.00403e68
inc esi
dec dword [ebp - 0x3c]
jne 0x420f18
cmp byte [ebx + 0x710], 0
jne 0x421014
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x30]
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 0x421014
mov byte [ebx + 0x32], 1
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x30]
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 + 0x710], 0
jne 0x42109e
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x30]
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 0x42109a
lea eax, [ebp - 0xab8]
cmp byte [eax], 2
jae 0x42109a
mov byte [ebx + 0x32], 1
jmp 0x42109e
mov byte [ebx + 0x32], 0
cmp byte [ebx + 0x707], 0
je 0x4210f9
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x436414
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
lea eax, [ebp - 0xb18]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
mov eax, dword [ebp - 0xb18]
mov edx, 0x421838
call fcn.00403ef4
jne 0x4210f9
mov byte [ebx + 0x708], 1
xor esi, esi
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x436400
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
lea eax, [ebp - 0xb1c]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
mov eax, dword [ebp - 0xb1c]
mov edx, 0x421864
call fcn.00403ef4
je 0x421188
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x30]
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 0x4210fb
cmp esi, 0xa
jne 0x4211cd
mov byte [ebx + 0x32], 0
lea eax, [ebp - 0xb24]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
mov ecx, dword [ebp - 0xb24]
lea eax, [ebp - 0xb20]
mov edx, 0x421870
call fcn.00403df4
mov eax, dword [ebp - 0xb20]
mov edx, dword [ebp - 4]
call fcn.0041dfc8
jmp 0x42124a
push 0
push 0
push 0x800
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x30]
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 - 0x30]
push eax
push 0x436428
mov eax, dword [ebp + 8]
push eax
push edi
call sub.setupapi.dll_SetupDiGetDevicePropertyW
test eax, eax
jne 0x421237
mov edx, dword [ebp - 4]
mov eax, 0x421898
call fcn.0041dfc8
lea eax, [ebx + 0x38]
lea edx, [ebp - 0xab8]
mov ecx, 0x400
call fcn.00403d78
push 0x4218c4
push dword [ebx + 0x4c]
push 0x4218d8
push dword [ebx + 0x40]
push 0x4218e4
lea eax, [ebx + 0x20]
mov edx, 5
call fcn.00403e68
cmp byte [ebx + 0x70c], 0
je 0x4212de
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 0x4212de
cmp dword [ebp - 0x10], 0xc
jne 0x4212de
cmp dword [ebp - 0x27e], 0
je 0x4212de
mov byte [ebx + 0x70d], 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 0x42136b
lea eax, [ebp - 0xb24]
mov edx, 5
call fcn.00403b30
lea eax, [ebp - 0xb08]
mov edx, 0x12
call fcn.00403b30
lea eax, [ebp - 0xac0]
mov edx, 2
call fcn.00404114
lea eax, [ebp - 0x2c]
mov edx, dword [0x41fea8]
call fcn.00404860
ret