Function at 0x4212d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2094]
mov eax, 0x2094
call fcn.0042d980
push 0xffffffffffffffff
push 0x4454a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4629b4]
xor eax, ebp
mov dword [ebp + 0x2090], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x209c]
xorps xmm0, xmm0
push 0x55
mov ecx, 0x46b8a4
movlpd qword [ebp + 4], xmm0
movlpd qword [ebp + 0xc], xmm0
movlpd qword [ebp + 0x14], xmm0
movlpd qword [ebp + 0x1c], xmm0
movlpd qword [ebp + 0x24], xmm0
mov dword [ebp], 6
call fcn.0040df90
mov ecx, eax
call fcn.00409580
mov edi, dword [ebp + 0x20a0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0xc], eax
imul eax, edi, 0x37
mov dword [ebp + 8], eax
lea eax, [ebp]
push eax
push 0
push 0x1061
push ebx
call esi
push 0x56
mov ecx, 0x46b8a4
call fcn.0040df90
mov ecx, eax
call fcn.00409580
mov dword [ebp + 0xc], eax
lea eax, [edi*8]
sub eax, edi
add eax, eax
mov dword [ebp + 8], eax
lea eax, [ebp]
push eax
push 1
push 0x1061
push ebx
call esi
push 0x57
mov ecx, 0x46b8a4
call fcn.0040df90
mov ecx, eax
call fcn.00409580
mov dword [ebp + 0xc], eax
imul eax, edi, 0x23
mov dword [ebp + 8], eax
lea eax, [ebp]
push eax
push 2
push 0x1061
push ebx
call esi
lea eax, [ebp + 0x2c]
mov dword [ebp + 0x2c], 0
push eax
push 0x20019
push 0
push 0x55
mov ecx, 0x469a38
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0
call fcn.0040df90
mov ecx, eax
call fcn.00409580
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4214a4
push 0x4d
mov ecx, 0x469a38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0x4c]
push ecx
push 0
lea ecx, [ebp + 0x48]
push ecx
push 0
push eax
push dword [ebp + 0x2c]
call edi
mov esi, dword [ebp + 0x4c]
add esi, 2
push esi
call fcn.0042daff
mov ebx, eax
mov dword [ebp - 0x14], eax
add esp, 4
test ebx, ebx
je 0x421460
push esi
push 0
push ebx
call fcn.0042f620
add esp, 0xc
jmp 0x421465
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push 0x4d
mov ecx, 0x469a38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp + 0x4c]
push ecx
push ebx
push 0
push 0
push eax
push dword [ebp + 0x2c]
call edi
mov ecx, dword [ebp + 0x2c]
mov esi, eax
test ecx, ecx
je 0x421497
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4214ab
push ebx
call fcn.0042db08
add esp, 4
xor eax, eax
jmp 0x4217bf
push 0x40
lea eax, [ebp + 0x2050]
push 0
push eax
call fcn.0042f620
push 8
call fcn.0042d9ad
push 0x14
mov dword [0x46c778], eax
call fcn.0042d9ad
add esp, 0x14
test eax, eax
je 0x4214e0
mov ecx, eax
call fcn.0040dd90
mov ecx, eax
jmp 0x4214e2
xor ecx, ecx
mov edx, dword [0x46c778]
mov dword [edx], ecx
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx]
cmp dword [eax + 4], 0
je 0x4214a4
push 0xdb48
call fcn.0042daff
mov esi, eax
add esp, 4
test esi, esi
je 0x421535
push 0xdb48
push 0
push esi
call fcn.0042f620
add esp, 0xc
push 0x40ddc0
push 0x923
push 0x18
push esi
call fcn.0040e0b0
jmp 0x421537
xor esi, esi
mov ecx, dword [0x46c778]
mov dword [ecx + 4], esi
lea esi, [ebx + 0x14]
mov ecx, dword [ecx]
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov ecx, 0x46b858
call fcn.0042b3e0
mov ecx, 0x46b898
call fcn.0042b3e0
push dword [ebp + 0x4c]
mov ecx, 0x46b858
call fcn.0040c190
push dword [ebp + 0x4c]
mov ecx, 0x46b898
call fcn.0040c190
push 0x2000
lea eax, [ebp + 0x50]
push 0
push eax
call fcn.0042f620
xor edi, edi
add esp, 0xc
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4217b4
mov edx, dword [0x46c778]
xor ebx, ebx
mov ecx, dword [edx + 4]
movzx eax, word [esi]
mov dword [ebp - 0x18], esi
mov word [ebx + ecx], ax
mov ecx, dword [edx + 4]
movzx eax, word [ecx + ebx]
add eax, esi
mov dword [ebp - 0x1c], eax
movzx eax, word [esi + 2]
mov word [ecx + ebx + 2], ax
mov ecx, dword [edx + 4]
cmp word [ecx + ebx + 2], 0
je 0x4217b1
movzx eax, word [esi + 4]
mov word [ecx + ebx + 4], ax
mov ecx, dword [edx + 4]
movzx eax, word [esi + 6]
mov word [ebx + ecx + 6], ax
mov ecx, dword [edx + 4]
mov eax, dword [esi + 8]
add esi, 0x10
mov dword [ebx + ecx + 8], eax
mov eax, dword [edx + 4]
movzx eax, word [ebx + eax + 2]
shr eax, 1
push eax
lea eax, [ebp + 0x50]
push esi
push eax
call fcn.0040d860
add esp, 0xc
lea eax, [ebp + 0x50]
mov ecx, 0x46b898
push eax
call fcn.0040d6c0
mov eax, dword [0x46c778]
mov ecx, dword [eax + 4]
movzx eax, word [ecx + ebx + 2]
add esi, eax
movzx eax, word [ecx + ebx + 4]
sub eax, 1
je 0x421767
sub eax, 2
je 0x4216a0
sub eax, 1
je 0x421655
push 0x4464a0
mov ecx, 0x46b858
call fcn.0040d6c0
jmp 0x42178a
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi]
shl ecx, 8
add ecx, eax
lea eax, [ebp + 0x2050]
push ecx
push 0x455e70
push 0xffffffffffffffff
push eax
call fcn.0040d4f0
add esp, 0x10
lea eax, [ebp + 0x2050]
mov ecx, 0x46b858
push eax
call fcn.0040d6c0
jmp 0x42178a
push 0x40
lea eax, [ebp + 0x2050]
push 0
push eax
call fcn.0042f620
add esp, 0xc
lea ecx, [ebp + 0x30]
push 0x4464a0
call fcn.00405090
mov eax, dword [0x46c778]
xor edi, edi
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
movzx eax, word [eax + ebx + 6]
sub eax, 1
js 0x421745
nop dword [eax + eax]
lea eax, [ebp + 0x2050]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4216f0
sub eax, edx
sar eax, 1
movzx eax, byte [edi + esi]
push eax
lea eax, [ebp + 0x2050]
je 0x421713
push str.__02X
jmp 0x421718
push str._02X
push 0xffffffffffffffff
push eax
call fcn.0040d4f0
add esp, 0x10
lea eax, [ebp + 0x2050]
lea ecx, [ebp + 0x30]
push eax
call fcn.00405200
mov eax, dword [0x46c778]
inc edi
mov eax, dword [eax + 4]
movzx eax, word [eax + ebx + 6]
dec eax
cmp edi, eax
jle 0x4216e0
lea eax, [ebp + 0x30]
mov ecx, 0x46b858
push eax
call fcn.0040d680
lea ecx, [ebp + 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.004050d0
mov edi, dword [ebp - 0x10]
jmp 0x42178a
movzx eax, word [ecx + ebx + 6]
shr eax, 1
push eax
lea eax, [ebp + 0x50]
push esi
push eax
call fcn.0040d860
add esp, 0xc
lea eax, [ebp + 0x50]
mov ecx, 0x46b858
push eax
call fcn.0040d6c0
mov edx, dword [0x46c778]
inc edi
mov dword [ebp - 0x10], edi
mov eax, dword [edx + 4]
movzx esi, word [eax + ebx]
add ebx, 0x18
mov eax, dword [ebp - 0x1c]
add esi, dword [ebp - 0x18]
cmp dword [eax], 0x45
je 0x4217b1
test esi, esi
jne 0x4215a1
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0042db08
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2090]
xor ecx, ebp
call fcn.0042d960
lea esp, [ebp + 0x2094]
pop ebp
ret