Function at 0x421a20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x436c21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
lea eax, [edi + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esp + 0x13c]
mov dword [esp + 0x134], 0
lea eax, [esi - 6]
cmp eax, 6
ja case.default.0x421a78
jmp dword [eax*4 + 0x421e30]
push str.SYSTEMCurrentControlSetServicesmkusb20dParameters
jmp 0x421aae
push str.SYSTEMCurrentControlSetServicesmkusb20sParameters
jmp 0x421aae
push str.SYSTEMCurrentControlSetServicesiwij600dParameters
jmp 0x421aae
push str.SYSTEMCurrentControlSetServicesiwij600sParameters
jmp 0x421aae
push str.SYSTEMCurrentControlSetServicesmkusbParameters
jmp 0x421aae
push str.SYSTEMCurrentControlSetServicesFWPort
jmp 0x421aae
push str.SYSTEMCurrentControlSetServicesPAR1284Parameters
lea ecx, [esp + 0x14]
call fcn.0043185a
xor ebx, ebx
cmp esi, 0xc
ja 0x421ac1
mov ebx, dword [edi + esi*4]
test ebx, ebx
jne 0x421ad9
mov edx, dword [edi + 0x138]
lea ecx, [edi + 0x138]
call dword [edx + 0x1c]
jmp 0x421dff
cmp esi, 6
push ebp
je 0x421af2
cmp esi, 7
je 0x421af2
cmp esi, 8
je 0x421af2
cmp esi, 9
jne 0x421bd1
mov eax, dword [ebx]
mov ebp, ebx
test eax, eax
je 0x421bd1
cmp eax, 7
je 0x421b18
mov eax, dword [ebp + 0x510]
add ebp, 0x510
test eax, eax
jne 0x421afe
jmp 0x421bd1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
mov byte [esp + 0x138], 1
sub eax, 7
je 0x421b4b
dec eax
je 0x421b44
dec eax
je 0x421b3d
push str.c:mkusb20d.log
jmp 0x421b50
push str.c:iwij600s.log
jmp 0x421b50
push str.c:iwij600d.log
jmp 0x421b50
push str.c:mkusb20s.log
lea ecx, [esp + 0x14]
call fcn.0043185a
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x20c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x138], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x140]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421dca
cmp dword [ebx], 0
je 0x421dbf
lea eax, [ebx + 4]
lea ebp, [ebx + 0x108]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
cmp esi, 0xc
mov dword [esp + 0x20], ecx
jne 0x421cd0
mov eax, dword [ebx]
cmp eax, 1
je 0x421c31
cmp eax, 2
je 0x421c31
cmp eax, 3
jne 0x421cd0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebx]
mov byte [esp + 0x138], 2
cmp eax, 1
jne 0x421c50
push str.LPT1
jmp 0x421c66
cmp eax, 2
jne 0x421c5c
push str.LPT2
jmp 0x421c66
cmp eax, 3
jne 0x421c6f
push str.LPT3
lea ecx, [esp + 0x14]
call fcn.0043185a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push 0xf003f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x421cbf
mov ecx, dword [esp + 0x18]
add ebx, 0x510
add ecx, 0x510
add ebp, 0x510
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString
jmp 0x421db6
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x2c]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x44], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x421d89
mov eax, dword [esp + 0x24]
dec eax
je 0x421d58
dec eax
je 0x421d31
sub eax, 2
jne 0x421d89
mov eax, dword [ebx + 0x104]
test eax, eax
jne 0x421d23
mov ecx, dword [esp + 0x30]
mov dword [ebp], ecx
jmp 0x421d89
cmp eax, 1
jne 0x421d89
mov edx, dword [esp + 0x30]
mov dword [ebp], edx
jmp 0x421d89
cmp dword [ebx + 0x104], 2
jne 0x421d89
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x421d7d
cmp dword [ebx + 0x104], 2
jne 0x421d89
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x421d9c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
add ebx, 0x510
add ecx, 0x510
add ebp, 0x510
mov dword [esp + 0x18], ecx
cmp dword [ebx], 0
jne 0x421c0b
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
add ecx, 0x138
mov edx, dword [ecx]
call dword [edx + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop ebp
jmp 0x421e13
mov eax, dword [edi + 0x138]
lea ecx, [edi + 0x138]
call dword [eax + 0x1c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 4