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

Disassembly:
push 0xffffffffffffffff
push 0x551c76
mov eax, dword fs:[0]
push eax
sub esp, 0xc48
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0xc44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0xc5c]
mov dword fs:[0], eax
mov edx, dword [esp + 0xc78]
mov ecx, dword [esp + 0xc70]
mov eax, dword [esp + 0xc6c]
mov edi, dword [esp + 0xc74]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xc7c]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x14]
push edx
push 9
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], edi
call ebp
test eax, eax
je 0x420452
or eax, 0xffffffff
jmp 0x420636
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov eax, 0x400
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x85c]
push ecx
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
push ecx
push ebx
push edx
mov dword [esp + 0x40], ebx
call esi
test eax, eax
jne 0x4206c2
cmp dword [esp + 0x48], 1
jne 0x420686
cmp dword [esp + 0x18], 0
je 0x420686
lea eax, [esp + 0x58]
push eax
call fcn.0041ed00
add esp, 4
test al, al
jne 0x420686
cmp edi, 1
jne 0x42065e
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x58]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4204f8
test dx, dx
je 0x4204f4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4204f8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4204d2
xor eax, eax
jmp 0x4204fd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x420682
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
call fcn.0049eff0
mov dword [esp + 0x38], vtable.cWCStr.0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x858]
push edx
push eax
lea ecx, [esp + 0x40]
push 0x56be54
push ecx
mov dword [esp + 0xc74], 0
call fcn.00401080
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
push 0
push 0
push 0
push 0
push esi
push edx
push eax
call fcn.00420050
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
push esi
lea ecx, [esp + 0x88]
push ecx
push edx
push eax
call fcn.0041dc90
add esp, 0x3c
mov byte [esp + 0x2c], al
test esi, esi
je 0x4205b5
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004b21b0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push eax
push edx
lea eax, [esp + 0x64]
push eax
push ecx
push str.Value:_Registry_tPath:__s:_s_tText:__s_tStatus:__s
push esi
call fcn.0042f3c0
add esp, 0x1c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0xb
push 0
push eax
push ecx
call ebp
test eax, eax
jne 0x420618
push eax
push eax
push eax
push eax
lea edx, [esp + 0x3c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call edi
test esi, esi
jne 0x420618
cmp dword [esp + 0x2c], 1
ja 0x420618
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push edx
push str._Next
push eax
push ecx
call fcn.0041dc90
add esp, 0x10
lea ecx, [esp + 0x38]
mov dword [esp + 0xc64], 0xffffffff
mov dword [esp + 0x38], vtable.cWCS.0
call fcn.0049ee80
mov eax, ebx
mov ecx, dword [esp + 0xc5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc44]
xor ecx, esp
call fcn.0051916c
add esp, 0xc54
ret
test edi, edi
je 0x420682
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x5c]
push edx
push 0xffffffffffffffff
push 0
push eax
mov ecx, edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
call edi
add esp, 0x1c
inc dword [esp + 0x20]
mov eax, 0x400
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x85c]
push ecx
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
push ecx
inc ebx
push ebx
push edx
call esi
test eax, eax
je 0x420496
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor edi, edi
push edi
push edi
push edi
push edi
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edi
mov ebp, 0x400
push edx
mov dword [esp + 0x38], ebp
call ebx
mov esi, eax
test esi, esi
jne 0x42087f
lea ecx, [ecx]
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420707
sub eax, edx
sar eax, 1
mov esi, 1
cmp eax, esi
jne 0x420855
movzx ecx, word [esp + 0x58]
sub ecx, 0x41
cmp ecx, 0x1a
ja 0x420855
mov edx, dword [esp + 0x4c]
mov eax, esi
shl eax, cl
test edx, eax
jne 0x420855
mov eax, dword [esp + 0x2c]
add dword [esp + 0x20], esi
cmp eax, esi
jne 0x420817
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x58]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420786
test dx, dx
je 0x420782
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420786
add eax, 4
add ecx, 4
test dx, dx
jne 0x420760
xor eax, eax
jmp 0x42078b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x420855
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
call fcn.0049eff0
mov dword [esp + 0x38], vtable.cWCStr.0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x58]
push ecx
push edx
lea eax, [esp + 0x40]
push 0x56be54
push eax
mov dword [esp + 0xc74], esi
call fcn.00401080
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
push 0
push 0
push 0
push 0
push ecx
push edx
push eax
call fcn.00420050
add esp, 0x2c
lea ecx, [esp + 0x38]
mov dword [esp + 0xc64], 0xffffffff
mov dword [esp + 0x38], vtable.cWCS.0
call fcn.0049ee80
mov eax, dword [esp + 0x20]
jmp 0x420636
test eax, eax
je 0x420855
mov edx, dword [0x56f41c]
mov dword [esp + 0x50], edx
mov edx, dword [0x56f420]
mov dword [esp + 0x54], edx
lea edx, [ecx + 0x41]
push 4
mov word [esp + 0x54], dx
lea edx, [esp + 0x54]
push edx
push ecx
mov ecx, dword [esp + 0x28]
push 0
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x6c]
push edx
push ecx
call eax
add esp, 0x1c
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x6c]
push eax
add edi, esi
push edi
push ecx
mov dword [esp + 0x38], ebp
call ebx
mov esi, eax
test esi, esi
je 0x420700
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x42044a
mov eax, dword [esp + 0x20]
jmp 0x420636