Function at 0x4052e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448785
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
mov dword [ebp - 0x24], 0x200
call fcn.00404f00
mov ecx, str.03000200_0400_0500_0006_000700080009
mov eax, 0x4619a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40533d
test dx, dx
je 0x405339
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40533d
add eax, 4
add ecx, 4
test dx, dx
jne 0x405317
xor eax, eax
jmp 0x405342
sbb eax, eax
or eax, 1
test eax, eax
je 0x40541f
mov ecx, str.12345678_1234_5678_90AB_CDDEEFAABBCC
mov eax, 0x4619a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40537a
test dx, dx
je 0x405376
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40537a
add eax, 4
add ecx, 4
test dx, dx
jne 0x405354
xor eax, eax
jmp 0x40537f
sbb eax, eax
or eax, 1
test eax, eax
je 0x40541f
mov ecx, str.00000000_0000_0000_0000_000000000000
mov eax, 0x4619a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4053b7
test dx, dx
je 0x4053b3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4053b7
add eax, 4
add ecx, 4
test dx, dx
jne 0x405391
xor eax, eax
jmp 0x4053bc
sbb eax, eax
or eax, 1
test eax, eax
je 0x40541f
mov ecx, str.FFFFFFFF_FFFF_FFFF_FFFF_FFFFFFFFFFFF
mov eax, 0x4619a0
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4053f6
test dx, dx
je 0x4053f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4053f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4053d0
xor eax, eax
jmp 0x4053fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40541f
mov ecx, 0x4619a0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405407
sub ecx, edx
sar ecx, 1
cmp ecx, 0x24
je 0x4055bd
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x4055ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.UU1EUlU_UENaS2dhcG1xbWRyWkFwd25ybWVwX25mdw
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00403500
test al, al
jne 0x405460
push 0x2c
push str.UU1EUlU_UENaS2dhcG1xbWRyWkFwd25ybWVwX25mdw
lea ecx, [ebp - 0x14]
call fcn.00403990
mov dword [ebp - 4], 1
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x4055d8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x457d84
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00403500
test al, al
jne 0x4054a5
push 0x10
push 0x457d84
lea ecx, [ebp - 0x18]
call fcn.00403990
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x14]
push eax
push 0x101
push 0
push ecx
add ebx, 0xfffffff0
mov esi, esp
mov ecx, ebx
mov dword [ebp - 0x10], esi
call fcn.004037d0
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.00402190
add esp, 4
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405501
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
push 0
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x10], esi
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004037d0
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.00402190
add esp, 4
push dword [eax]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40555d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x228]
push eax
call fcn.0042c586
add esp, 4
push eax
push str._wsX
push 0x4619a0
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4055a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x4055bd
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013d0
push 0x80004005
call fcn.004013d0
int3