Function at 0x406bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c2d6
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x330], edi
lea ecx, [ebp - 0x32c]
call fcn.00406000
push 1
lea ecx, [ebp - 0x324]
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x328], 0
call fcn.00406610
cmp byte [ebp - 0x210], 0
lea eax, [ebp - 0x320]
cmove eax, dword [ebp - 0x324]
xor ecx, ecx
mov word [eax + 4], cx
mov dword [ebp - 4], ecx
mov byte [ebp - 0x338], cl
mov dword [ebp - 0x33c], ecx
lea ecx, [ebp - 0x1fc]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
call fcn.00406000
mov esi, str.MACHINE
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0x80000002
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x406c80
sub esi, ecx
lea ecx, [ebp - 0x1f4]
sar esi, 1
mov dword [ebp - 0x1f8], esi
inc esi
push esi
call fcn.00406610
cmp byte [ebp - 0xe0], 0
lea eax, [esi + esi]
lea ecx, [ebp - 0x1f0]
cmove ecx, dword [ebp - 0x1f4]
push eax
add ecx, 4
push str.MACHINE
push ecx
call fcn.00423a50
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x204]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x406ce2
push eax
call esi
cmp word [0x44eaf4], 0
mov dword [ebp - 0x204], 0
je 0x406e0c
push 0x44a758
lea eax, [ebp - 0x1fc]
push 0x44ead8
push eax
call fcn.00406410
push 0x44eaf4
lea eax, [ebp - 0x1fc]
push 0x44ead8
push eax
call fcn.00406410
add esp, 0x18
lea eax, [ebp - 0x204]
push eax
push 0x20019
push 0
push 0x44eaf4
push dword [ebp - 0x200]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x334], eax
test eax, eax
je 0x406ef9
cmp byte [ebp - 0xe0], 0
lea ebx, [ebp - 0x1f0]
push 0x128
cmove ebx, dword [ebp - 0x1f4]
call fcn.00422267
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x330], esi
call fcn.00406000
push dword [ebp - 0x334]
mov ecx, esi
mov dword [esi + 0x124], 0
mov dword [ebp - 0x33c], esi
call fcn.00407480
lea edi, [esi + 0x124]
mov esi, dword [edi]
test esi, esi
jne 0x406da3
push 0x128
call fcn.00422267
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x330], esi
call fcn.00406000
push 0x450638
push 0x44ead8
mov dword [esi + 0x124], 0
push esi
mov dword [edi], esi
call fcn.00406410
lea eax, [ebx + 4]
push eax
push 0x44ead8
push esi
call fcn.00406410
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x18
mov edi, dword [ebp - 0x33c]
xor bl, bl
jmp 0x407170
push 0
lea eax, [ebp - 0x204]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push 0
push dword [ebp - 0x200]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x334], eax
test eax, eax
je 0x406ef9
cmp byte [ebp - 0xe0], 0
lea ebx, [ebp - 0x1f0]
push 0x128
cmove ebx, dword [ebp - 0x1f4]
call fcn.00422267
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x330], esi
call fcn.00406000
push dword [ebp - 0x334]
mov ecx, esi
mov dword [esi + 0x124], 0
mov dword [ebp - 0x33c], esi
call fcn.00407480
nop dword [eax + eax]
lea edi, [esi + 0x124]
mov esi, dword [edi]
test esi, esi
jne 0x406e90
push 0x128
call fcn.00422267
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x330], esi
call fcn.00406000
push 0x450624
push 0x44ead8
mov dword [esi + 0x124], 0
push esi
mov dword [edi], esi
call fcn.00406410
lea eax, [ebx + 4]
push eax
push 0x44ead8
push esi
call fcn.00406410
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x18
mov edi, dword [ebp - 0x33c]
xor bl, bl
jmp 0x407170
lea ebx, [edi + 8]
mov dword [edi + 0x120], 0x105
push 0x105
mov ecx, ebx
call fcn.00406610
cmp byte [ebx + 0x114], 0
lea eax, [ebx + 4]
jne 0x406f20
mov eax, dword [ebx]
lea ecx, [ebp - 0x344]
mov dword [ebp - 0x334], 0
push ecx
add eax, 4
mov dword [ebp - 0x344], 0x208
push eax
lea eax, [ebp - 0x334]
push eax
push 0
push 0
push dword [ebp - 0x204]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x348], eax
test eax, eax
je 0x407021
cmp byte [ebp - 0xe0], 0
lea eax, [ebp - 0x1f0]
push 0x128
cmove eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x34c], eax
call fcn.00422267
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x340], esi
call fcn.00406000
push dword [ebp - 0x348]
mov ecx, esi
mov dword [esi + 0x124], 0
mov dword [ebp - 0x33c], esi
call fcn.00407480
nop word [eax + eax]
lea edi, [esi + 0x124]
mov esi, dword [edi]
test esi, esi
jne 0x406fc0
push 0x128
call fcn.00422267
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x340], esi
call fcn.00406000
push 0x45064c
push 0x44ead8
mov dword [esi + 0x124], 0
push esi
mov dword [edi], esi
call fcn.00406410
mov eax, dword [ebp - 0x34c]
add eax, 4
push eax
push 0x44ead8
push esi
call fcn.00406410
mov edi, dword [ebp - 0x33c]
jmp 0x407087
cmp dword [ebp - 0x334], 1
je 0x4070e7
cmp byte [ebp - 0xe0], 0
lea esi, [ebp - 0x1f0]
push 0x128
cmove esi, dword [ebp - 0x1f4]
call fcn.00422267
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x340], edi
call fcn.00406000
push 0x45065c
push 0x44ead8
push edi
mov dword [edi + 0x124], 0
call fcn.00406410
lea eax, [esi + 4]
push eax
push 0x44ead8
push edi
call fcn.00406410
mov eax, dword [ebp - 0x330]
add esp, 0x18
cmp dword [eax + 0x120], 0
je 0x4070a3
mov dword [eax + 0x120], 0
push 1
mov ecx, ebx
mov dword [eax + 4], 0
call fcn.00406610
cmp byte [ebx + 0x114], 0
je 0x4070d2
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 4
xor eax, eax
mov word [ebx + 4], ax
xor bl, bl
jmp 0x407170
mov ebx, dword [ebx]
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [ebx + 4], ax
xor bl, bl
jmp 0x407170
mov ecx, edi
call fcn.00406330
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00424340
add esp, 0xc
mov dword [ebp - 0x330], 0xc8
lea eax, [ebp - 0x330]
lea ecx, [ebp - 0x208]
push 1
push str.Version
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.0040c670
test al, al
jne 0x407143
mov edi, dword [ebp - 0x33c]
xor bl, bl
jmp 0x407170
push 0x44a758
push 0x44ead8
push edi
call fcn.00406410
lea eax, [ebp - 0xd8]
push eax
push 0x44ead8
push edi
call fcn.00406410
mov edi, dword [ebp - 0x33c]
add esp, 0x18
mov bl, 1
mov eax, dword [ebp - 0x204]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x407187
push eax
call esi
cmp byte [ebp - 0xe0], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4071bd
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f0]
cmp eax, ecx
je 0x4071bd
push eax
call fcn.00429f67
add esp, 4
test edi, edi
je 0x407201
mov esi, edi
mov edi, dword [esi + 0x124]
test esi, esi
je 0x4071fd
mov dword [esi], vtable.t_str.0
cmp byte [esi + 0x11c], 0
jne 0x4071ef
mov ecx, dword [esi + 8]
lea eax, [esi + 0xc]
cmp ecx, eax
je 0x4071ef
push ecx
call fcn.00429f67
add esp, 4
push 0x128
push esi
call fcn.00422297
add esp, 8
test edi, edi
jne 0x4071c1
cmp byte [ebp - 0x210], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40722d
mov eax, dword [ebp - 0x324]
lea ecx, [ebp - 0x320]
cmp eax, ecx
je 0x40722d
push eax
call fcn.00429f67
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004224f6
mov esp, ebp
pop ebp
ret