Function at 0x453ee0
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
sub esp, 0x368
mov ecx, 5
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
mov esi, str.ResumeUSBStorageDev__
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
push str.SYSTEMMountedDevices
push 0x80000002
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x453f5e
push str.HKEY_LOCAL_MACHINESYSTEMMountedDevices
push 0x4e82c8
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov edx, dword [0x4d2de4]
lea ecx, [esp + 0x30]
push 0xa67
push ecx
push edx
call fcn.0044fa60
add esp, 0x1c
mov eax, 0x22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
lea eax, [esp + 0x6c]
push 0x104
push eax
mov dword [esp + 0x18], 0x104
call dword [0x4fa400]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x453fc7
push 0x4e82b0
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov edx, dword [0x4d2de4]
lea ecx, [esp + 0x2c]
push 0xa70
push ecx
push edx
call fcn.0044fa60
mov eax, dword [esp + 0x2c]
add esp, 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x22
pop ebx
add esp, 0x368
ret
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, 2
jne 0x4541dc
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x170]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], 3
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x170]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x170]
or ecx, 0xffffffff
mov byte [esp + 0x171], 0x3f
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x16f], al
lea ecx, [esp + 0x10]
push ecx
push eax
push eax
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x10]
add ecx, 2
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x454092
push 0x4e82a0
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x2c]
push 0xa84
push edx
push eax
call fcn.0044fa60
add esp, 0x18
jmp 0x45410b
mov eax, dword [esp + 0x10]
mov edi, esi
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x170]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push esi
push ecx
push 0
push edx
push eax
call ebp
test eax, eax
je 0x454131
lea ecx, [esp + 0x170]
push ecx
push str.HKEY_LOCAL_MACHINESYSTEMMountedDevices
push 0x4e828c
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x34]
push 0xa8e
push edx
push eax
call fcn.0044fa60
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4fa414]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x22
pop ebx
add esp, 0x368
ret
mov eax, dword [0x4d2f84]
push eax
push esi
call fcn.004694d5
add esp, 8
test eax, eax
mov al, byte [0x4fa4b4]
je 0x454196
test al, 1
jne 0x4541d3
call ebx
push 1
push eax
call fcn.00455920
movsx ecx, al
add esp, 8
lea edx, [esp + 0x274]
push ecx
push str._c:_
push edx
call fcn.00467d68
add esp, 0xc
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x274]
push eax
push ecx
call dword [0x4fa408]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x45424e
test al, 4
jne 0x4541d3
call ebx
push 2
push eax
call fcn.00455920
movsx edx, al
add esp, 8
lea eax, [esp + 0x274]
push edx
push str._c:_
push eax
call fcn.00467d68
add esp, 0xc
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x274]
push ecx
push edx
call dword [0x4fa408]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x45424e
cmp eax, 3
jne 0x45424e
lea eax, [esp + 0x6c]
push 0x32
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00466df0
mov al, byte [0x4fa4b4]
add esp, 0xc
test al, 4
mov byte [esp + 0x68], 0
jne 0x45424e
lea edx, [esp + 0x38]
push edx
call fcn.00455a70
add esp, 4
cmp eax, 7
jne 0x45424e
call ebx
push 2
push eax
call fcn.00455920
movsx eax, al
add esp, 8
lea ecx, [esp + 0x274]
push eax
push str._c:_
push ecx
call fcn.00467d68
add esp, 0xc
lea edx, [esp + 0x6c]
lea eax, [esp + 0x274]
push edx
push eax
call dword [0x4fa408]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x6c]
push ecx
push edx
push esi
call dword [0x4fa410]
test eax, eax
je 0x4544e2
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x454453
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x170]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], 3
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x170]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x170]
or ecx, 0xffffffff
mov byte [esp + 0x171], 0x3f
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x16f], al
lea ecx, [esp + 0x10]
push ecx
push eax
push eax
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x10]
add ecx, 2
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x45432d
push 0x4e82a0
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x2c]
push 0xac7
push edx
push eax
call fcn.0044fa60
add esp, 0x18
jmp 0x4544c5
mov ecx, dword [esp + 0x10]
xor eax, eax
add ecx, 2
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x170]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push esi
push ecx
push 0
push edx
push eax
call ebp
test eax, eax
je 0x4543ab
lea ecx, [esp + 0x170]
push ecx
push str.HKEY_LOCAL_MACHINESYSTEMMountedDevices
push 0x4e828c
push 0xfff
push 0x4f93e8
call fcn.00466ca7
mov eax, dword [0x4d2de4]
lea edx, [esp + 0x34]
push 0xacf
push edx
push eax
call fcn.0044fa60
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4544c5
mov ecx, dword [0x4d2f84]
push ecx
push esi
call fcn.004694d5
add esp, 8
test eax, eax
mov al, byte [0x4fa4b4]
je 0x45440d
test al, 1
jne 0x454401
call ebx
push 1
push eax
call fcn.00455920
movsx edx, al
add esp, 8
lea eax, [esp + 0x274]
push edx
push str._c:_
push eax
call fcn.00467d68
add esp, 0xc
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x274]
push ecx
push edx
call dword [0x4fa408]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4544c5
test al, 4
jne 0x45444a
call ebx
push 2
push eax
call fcn.00455920
movsx eax, al
add esp, 8
lea ecx, [esp + 0x274]
push eax
push str._c:_
push ecx
call fcn.00467d68
add esp, 0xc
lea edx, [esp + 0x6c]
lea eax, [esp + 0x274]
push edx
push eax
call dword [0x4fa408]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4544c5
cmp eax, 3
jne 0x4544c5
lea ecx, [esp + 0x6c]
push 0x32
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00466df0
mov al, byte [0x4fa4b4]
add esp, 0xc
test al, 4
mov byte [esp + 0x68], 0
jne 0x4544c5
lea eax, [esp + 0x38]
push eax
call fcn.00455a70
add esp, 4
cmp eax, 7
jne 0x4544c5
call ebx
push 2
push eax
call fcn.00455920
movsx ecx, al
add esp, 8
lea edx, [esp + 0x274]
push ecx
push str._c:_
push edx
call fcn.00467d68
add esp, 0xc
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x274]
push eax
push ecx
call dword [0x4fa408]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x6c]
push edx
push eax
push esi
call dword [0x4fa410]
test eax, eax
jne 0x45426b
push esi
call dword [0x4fa414]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x368
ret