Function at 0x4020b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x60]
push ebx
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 0x30], 0x6bdd1fc6
mov word [esp + 0x34], 0x810f
mov word [esp + 0x36], 0x11d0
mov byte [esp + 0x38], 0xbe
mov byte [esp + 0x39], 0xc7
mov byte [esp + 0x3a], 8
mov byte [esp + 0x3b], 0
mov byte [esp + 0x3c], 0x2b
mov byte [esp + 0x3d], 0xe2
mov byte [esp + 0x3e], 9
mov byte [esp + 0x3f], 0x2f
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], 1
je 0x402110
mov byte [eax], 0
mov eax, dword [esp + 0x70]
cmp eax, esi
je 0x40211b
mov byte [eax], 0
push 0x1000
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
add esp, 4
cmp ebx, esi
mov dword [esp + 0x10], ebx
jne 0x40213b
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret
push esi
push esi
lea eax, [esp + 0x38]
push esi
push eax
call dword [0x4030c4]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x4024a6
push ebp
mov ebp, dword [esp + 0x68]
push edi
mov dword [esp + 0x24], esi
jmp 0x402168
mov eax, dword [esp + 0x34]
xor esi, esi
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
mov dword [esp + 0x54], 0x1c
call dword [0x4030c0]
test eax, eax
je 0x402276
mov ecx, 0x400
xor eax, eax
mov edi, ebx
push esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x14]
push eax
push ebx
push esi
push 2
push ecx
mov dword [esp + 0x28], 0x1000
call dword [0x403028]
test eax, eax
jne 0x40225e
mov cl, byte [ebx]
mov dword [esp + 0x14], esi
test cl, cl
mov eax, ebx
je 0x40225e
push 0x404324
push eax
call dword [sym.imp.msvcrt.dll_strtok]
add esp, 8
xor esi, esi
test ebp, ebp
mov ebx, eax
jbe 0x4021fd
mov edi, dword [esp + 0x68]
mov edx, dword [edi]
push edx
push ebx
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
test eax, eax
je 0x402217
inc esi
add edi, 4
cmp esi, ebp
jb 0x4021e4
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebx + ecx + 1]
mov cl, byte [ebx + ecx + 1]
test cl, cl
je 0x40225a
jmp 0x4021c9
mov eax, dword [esp + 0x5c]
push 0
mov dword [esp + 0x24], eax
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x40], 0
call dword [0x40302c]
test eax, eax
jne 0x40225a
mov edx, dword [esp + 0x28]
and edx, 2
cmp dl, 2
jne 0x40225a
mov dword [esp + 0x1c], 1
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
inc ecx
cmp eax, 1
mov dword [esp + 0x24], ecx
jne 0x402162
xor esi, esi
cmp dword [esp + 0x30], esi
je 0x402423
mov eax, dword [esp + 0x68]
or ecx, 0xffffffff
push 0x404320
push ebx
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.msvcrt.dll_strtok]
add esp, 8
mov esi, eax
lea eax, [esp + 0x10]
push 1
push esi
push eax
call dword [0x403030]
test eax, eax
jne 0x402423
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402423
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x30], edi
je 0x402423
mov ecx, dword [esp + 0x10]
push 1
push ecx
push edi
push esi
call dword [0x403034]
test eax, eax
jne 0x402419
mov dword [esp + 0x6c], edi
mov edx, dword [esp + 0x6c]
push 1
lea eax, [esp + 0x24]
push edx
push eax
call dword [0x403038]
test eax, eax
jne 0x4023b0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebx
push eax
push 2
push edx
mov dword [esp + 0x28], 0x104
call dword [0x403028]
test eax, eax
jne 0x4023b0
mov cl, byte [ebx]
mov dword [esp + 0x14], eax
test cl, cl
mov eax, ebx
je 0x4023ed
push 0x404324
push eax
call dword [sym.imp.msvcrt.dll_strtok]
add esp, 8
xor esi, esi
test ebp, ebp
mov ebx, eax
jbe 0x402388
mov edi, dword [esp + 0x68]
mov eax, dword [edi]
push eax
push ebx
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
test eax, eax
je 0x4023a2
inc esi
add edi, 4
cmp esi, ebp
jb 0x40236f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebx + ecx + 1]
mov cl, byte [ebx + ecx + 1]
test cl, cl
je 0x4023e9
jmp 0x402354
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], 1
jmp 0x4023b8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4023ed
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call dword [0x40302c]
test eax, eax
jne 0x4023ed
mov ecx, dword [esp + 0x28]
and ecx, 2
cmp cl, 2
jne 0x4023ed
mov dword [esp + 0x1c], 1
jmp 0x4023ed
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
mov dword [esp + 0x6c], eax
cmp byte [eax], 0
je 0x402415
cmp dword [esp + 0x1c], 1
jne 0x402309
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
test eax, eax
pop ebp
je 0x40249b
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push 1
push edx
push 1
push 2
push 0x20019
push eax
call dword [0x40303c]
test eax, eax
jne 0x40249b
mov eax, dword [esp + 0x68]
mov esi, dword [0x40300c]
test eax, eax
je 0x402472
lea ecx, [esp + 0x6c]
mov edx, eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push 0
push 0
push str.CtProductName
push eax
call esi
mov eax, dword [esp + 0x70]
test eax, eax
je 0x402490
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x74]
push ecx
push eax
push 0
push 0
push str.DriverDesc
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call dword [0x403008]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x4030ac]
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [esp + 0x10]
add esp, 4
pop esi
pop ebx
add esp, 0x54
ret