Function at 0x4124f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x234
mov eax, dword [esp + 0x238]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x30], ecx
mov ecx, dword [0x4350b8]
lea edi, [eax + 4]
test edi, edi
mov dword [esp + 0x14], ecx
je 0x412564
mov ecx, edi
shr ecx, 0x10
jne 0x41252f
and edi, 0xffff
lea ecx, [esp + 0x14]
push edi
call fcn.00409820
jmp 0x412560
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x412560
push esi
lea ecx, [esp + 0x18]
call fcn.00401dd0
test eax, eax
je 0x412560
mov ecx, esi
mov esi, edi
mov edi, dword [esp + 0x14]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jge 0x412570
or esi, 0xffffffff
jmp 0x412593
push 0x4351b8
push ecx
call fcn.00427aec
add esp, 8
test eax, eax
jne 0x41258b
mov ecx, dword [esp + 0x14]
or esi, 0xffffffff
jmp 0x412593
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov esi, eax
mov edx, dword [0x4350b8]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edx
test esi, esi
mov ebp, SysReAllocString
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jle 0x412749
mov ecx, dword [ecx - 8]
mov eax, esi
cmp esi, ecx
jle 0x4125c7
mov eax, ecx
push 0
push 0
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], edx
call fcn.004115c0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401cf0
lea ecx, [esp + 0x1c]
call fcn.00401f10
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x412647
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x412615
mov edx, dword [0x4350bc]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41261c
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41262c
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00401f40
jmp 0x412643
lea ecx, [esp + 0x20]
call fcn.00401e30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41266e
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x41266e
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
mov edx, dword [esp + 0x14]
lea ecx, [esi + 1]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
test ecx, ecx
jge 0x412681
xor ecx, ecx
test eax, eax
jge 0x412687
xor eax, eax
mov edx, dword [edx - 8]
lea esi, [ecx + eax]
cmp esi, edx
jle 0x412695
mov eax, edx
sub eax, ecx
cmp ecx, edx
jle 0x41269b
xor eax, eax
mov edx, dword [0x4350b8]
push 0
push ecx
push eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x2c], edx
call fcn.004115c0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401cf0
lea ecx, [esp + 0x1c]
call fcn.00401f10
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x412720
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4126ee
mov edx, dword [0x4350bc]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4126f5
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x412705
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x2c]
call fcn.00401f40
jmp 0x41271c
lea ecx, [esp + 0x24]
call fcn.00401e30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41278f
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x41278f
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
jmp 0x41278f
cmp eax, ecx
je 0x41278f
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x412761
mov edx, dword [0x4350bc]
add eax, 0xfffffff4
cmp eax, edx
jne 0x412768
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x412778
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f40
jmp 0x41278f
lea ecx, [esp + 0x24]
call fcn.00401e30
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call edi
mov ecx, dword [esp + 0x20]
push str.HKEY_CLASSES_ROOT
push ecx
call fcn.00426d16
add esp, 8
test eax, eax
jne 0x4127ac
mov ebp, SysReAllocString
jmp 0x41281e
mov edx, dword [esp + 0x20]
push str.HKEY_CURRENT_USER
push edx
call fcn.00426d16
add esp, 8
test eax, eax
jne 0x4127c9
mov ebp, SysReAllocString
jmp 0x41281e
mov eax, dword [esp + 0x20]
push str.HKEY_LOCAL_MACHINE
push eax
call fcn.00426d16
add esp, 8
test eax, eax
jne 0x4127e6
mov ebp, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x41281e
mov ecx, dword [esp + 0x20]
push str.HKEY_USERS
push ecx
call fcn.00426d16
add esp, 8
test eax, eax
jne 0x412803
mov ebp, SysStringLen
jmp 0x41281e
mov edx, dword [esp + 0x20]
push str.HKEY_CURRENT_CONFIG
push edx
call fcn.00426d16
add esp, 8
test eax, eax
jne 0x41281e
mov ebp, SysStringLen
mov eax, dword [esp + 0x248]
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
lea edx, [esp + 0x2c]
mov ecx, dword [eax + 0x20c]
xor eax, eax
mov dword [esp + 0x38], ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
push edx
mov ebx, 0x104
push eax
push ebp
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x412c58
lea ecx, [esp + 0x34]
lea edx, [esp + 0x3c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push edx
mov edx, dword [esp + 0x250]
lea ecx, [esp + 0x40]
add edx, 0x108
push ecx
push 0
push edx
push eax
call esi
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
mov ebp, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4128e8
mov eax, dword [esp + 0x248]
or ecx, 0xffffffff
lea edx, [eax + 0x210]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4128e8
lea ecx, [esp + 0x3c]
push edx
push ecx
call fcn.00427aec
add esp, 8
test eax, eax
je 0x4128e8
mov dword [esp + 0x10], ebp
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x412913
mov edx, dword [esp + 0x248]
or ecx, 0xffffffff
lea edi, [edx + 0x210]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x412913
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x248]
lea edi, [eax + 4]
push edi
call fcn.00427b62
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x412949
push str.RISING
push edi
call fcn.00427aec
add esp, 8
test eax, eax
je 0x412949
mov edi, dword [esp + 0x30]
mov dword [edi + 0x24], ebp
jmp 0x41294d
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x24]
test eax, eax
je 0x412975
mov ecx, dword [0x439c38]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x412975
mov dword [esp + 0x10], eax
jmp 0x412c4d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x412c4d
mov eax, dword [edi + 0x24]
test eax, eax
je 0x412998
mov eax, dword [esp + 0x2c]
mov ecx, edi
push eax
call fcn.00412c90
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x412c4d
mov ecx, dword [0x4350b8]
xor eax, eax
mov dword [esp + 0x18], ecx
mov ecx, 0x40
lea edi, [esp + 0x141]
mov byte [esp + 0x140], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x30]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx + 0x24]
test eax, eax
je 0x4129fc
lea eax, [esp + 0x34]
lea ecx, [esp + 0x140]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push str.name
push eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
call esi
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x412a74
mov edx, dword [esp + 0x248]
lea ecx, [esp + 0x140]
push ecx
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00422b30
mov edx, dword [eax]
add esp, 0xc
lea eax, [esp + 0x1c]
push edx
push str._s___s_
push eax
call fcn.00401ff0
mov eax, dword [esp + 0x38]
mov edx, dword [0x4350bc]
add esp, 0x10
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412b0c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412b0c
mov edx, dword [esp + 0x28]
jmp 0x412b00
mov eax, dword [esp + 0x248]
push 0
lea edx, [esp + 0x2c]
mov ecx, dword [eax]
push ecx
push edx
call fcn.00422b30
mov ecx, dword [esp + 0x24]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x412add
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x412aad
mov edx, dword [0x4350bc]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x412ab4
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x412ac4
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x20]
call fcn.00401f40
jmp 0x412add
lea ecx, [esp + 0x18]
call fcn.00401e30
mov esi, dword [esi]
mov dword [esp + 0x18], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x28]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412b0c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412b0c
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
mov eax, dword [0x4350b8]
mov ecx, 0x435ef4
test ecx, ecx
mov dword [esp + 0x28], eax
jne 0x412b22
xor eax, eax
jmp 0x412b2d
push 0x435ef4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
push ecx
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x2c]
push edx
push 0x435ef4
push eax
call fcn.0040f800
lea eax, [esp + 0x28]
lea ecx, [esp + 0x1c]
push eax
call fcn.00401cf0
lea ecx, [esp + 0x28]
call fcn.00401f10
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x412bb2
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x412b7c
mov edx, dword [0x4350bc]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x412b83
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x412b93
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401f40
jmp 0x412bae
lea ecx, [esp + 0x18]
call fcn.00401e30
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4350bc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x412bdd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412bdd
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00426ac0
add esp, 4
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push ecx
push 0
lea esi, [edi + 0x30]
mov ecx, esi
call fcn.00412da0
cmp eax, 0xffffffff
jne 0x412c44
mov eax, dword [edi + 0x24]
test eax, eax
je 0x412c36
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x18b
push edx
call edi
test eax, eax
je 0x412c36
mov eax, dword [esi]
push 0
push 0
push 0x182
push eax
call edi
mov ecx, dword [esi]
push 0
push 0
push 0x18b
push ecx
call edi
test eax, eax
jne 0x412c16
mov edx, dword [esp + 0x18]
mov ecx, esi
push edx
push 0
call fcn.00412d80
lea ecx, [esp + 0x18]
call fcn.00401f10
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
call fcn.00401f10
lea ecx, [esp + 0x20]
call fcn.00401f10
lea ecx, [esp + 0x14]
call fcn.00401f10
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 4