Function at 0x4216cc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push esi
push edi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov eax, 0x5085f0
call fcn.004c58b8
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x75c], 0
jge 0x421701
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x421949
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx + 4]
sub ecx, 7
je 0x42193d
sub ecx, 0x7ff9
je 0x42172f
sub ecx, 4
je 0x4218c3
jmp 0x42193d
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x75c], 0
jne 0x42193d
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x75c], 1
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 4], 2
jne 0x4218b4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov edx, dword [0x4e9e7c]
mov dword [ebp - 0x44], edx
mov esi, 0x4e9e80
lea edi, [ebp - 0x70]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x40]
push dword [eax + 0xc]
push dword [ebp - 0x34]
call fcn.00421950
add esp, 8
mov edx, dword [ebp - 0x34]
mov byte [edx + 0x760], al
mov ecx, dword [ebp - 0x34]
movsx eax, byte [ecx + 0x760]
push eax
push 0x500672
lea edx, [ebp - 0x44]
push edx
call fcn.004c85cc
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x70]
push ecx
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x48]
push ecx
push 0x10
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0x44]
push edx
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
jne 0x4217e1
mov ecx, dword [ebp - 0x34]
mov byte [ecx + 0x760], 0
jmp 0x42193d
push 3
push 0x500677
lea eax, [ebp - 0x70]
push eax
call fcn.004c57b4
add esp, 0xc
test eax, eax
je 0x42181e
push 4
push str.NTFS
lea edx, [ebp - 0x70]
push edx
call fcn.004c57b4
add esp, 0xc
test eax, eax
je 0x42181e
mov ecx, dword [ebp - 0x34]
mov byte [ecx + 0x760], 0
jmp 0x42193d
mov word [ebp - 0x20], 8
mov edx, str.USB_Device_Installed:
lea eax, [ebp - 4]
call fcn.004d137c
inc dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [sym.ISP_Tool.exe__Form1]
mov eax, dword [ecx + 0x574]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.00488e84
pop edx
call fcn.00488de0
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d14dc
mov word [ebp - 0x20], 0x14
lea edx, [ebp - 0x44]
lea eax, [ebp - 8]
call fcn.004d137c
inc dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
mov eax, dword [sym.ISP_Tool.exe__Form1]
mov edx, dword [eax + 0x574]
mov eax, dword [edx + 0x208]
mov edx, 1
call fcn.00488e84
add eax, 0xc
pop edx
call fcn.004d1520
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d14dc
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x75c], 2
jmp 0x42193d
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x75c], 2
jne 0x42193d
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x75c], 3
mov edx, dword [ebp - 0x34]
mov byte [edx + 0x760], 0
mov word [ebp - 0x20], 0x20
mov edx, str.USB_Device_Removed_
lea eax, [ebp - 0xc]
call fcn.004d137c
inc dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [sym.ISP_Tool.exe__Form1]
mov eax, dword [ecx + 0x574]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.00488e84
pop edx
call fcn.00488de0
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004d14dc
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x75c], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret