Function at 0x414c40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49da4c
mov eax, dword fs:[0]
push eax
mov eax, 0x1240
call fcn.00484720
mov eax, dword [0x4d6720]
xor eax, esp
mov dword [esp + 0x123c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x1254]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov dword [esp + 0x40], eax
mov eax, dword [esi]
xor esi, esi
mov dword [esp + 0x18], 0xffffffff
cmp eax, esi
je 0x41503a
push 0x899a5
push esi
push esi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
mov dword [esp + 0x34], ebp
cmp ebp, esi
je 0x41503a
xor eax, eax
lea ecx, [ebp + 4]
jmp 0x414cd0
mov ebx, dword [esp + 0x1264]
cmp dword [ecx], ebx
je 0x41502f
inc eax
add ecx, 0x891
cmp eax, 0x101
jb 0x414cd0
lea eax, [esp + 0x3c]
xor edi, edi
push eax
mov dword [esp + 0x30], edi
call fcn.00423f40
add esp, 4
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push esi
push edx
push SysReAllocString
mov dword [esp + 0x1270], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x414fea
call fcn.00468b49
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x414d48
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x125c], 1
call fcn.00468b49
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x414d7a
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
push esi
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x2c]
push esi
xor ecx, ecx
lea eax, [esp + 0x38]
push eax
mov word [esp + 0x105c], cx
lea ecx, [esp + 0x105c]
push ecx
push esi
mov ebx, 2
push edx
mov byte [esp + 0x127c], bl
mov dword [esp + 0x48], 0x104
call ebp
xor ecx, ecx
mov word [esp + 0x124e], cx
test eax, eax
jne 0x414f35
lea ecx, [ecx]
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x414e08
cmp eax, ebx
jne 0x414ef3
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x104c]
push eax
call fcn.004282d0
add esp, 8
jmp 0x414e32
lea eax, [esp + 0x1048]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x414e12
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x104c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401760
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
push edx
push 0
push str.WOSB
push eax
call fcn.0041c910
add esp, 0x10
test eax, eax
je 0x414ef3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffc
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x1c]
call fcn.004068e0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x1260], 3
call fcn.00401a50
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x125c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414ea5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x30]
cmp dword [edi - 0xc], 0
jne 0x414eba
mov eax, 1
mov dword [esp + 0x1c], eax
jmp 0x414ede
lea ecx, [esp + 0x1c]
push ecx
push 0x4a9f84
push edi
call fcn.00483f15
add esp, 0xc
cmp eax, 1
jne 0x414fdd
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x414f44
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x400
jae 0x414f44
mov dword [esp + ecx*4 + 0x48], eax
inc ecx
mov dword [esp + 0x2c], ecx
xor edx, edx
push edx
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x38]
push ecx
mov word [esp + 0x105c], dx
lea edx, [esp + 0x105c]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x48], 0x104
call ebp
xor ecx, ecx
mov word [esp + 0x124e], cx
test eax, eax
je 0x414de0
cmp eax, 0x103
je 0x414f4c
mov dword [esp + 0x18], 0xfffffffe
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x125c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414f7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x125c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414fa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], 0
mov ebp, dword [esp + 0x34]
jne 0x415002
mov ebx, dword [esp + 0x1264]
mov edi, dword [esp + 0x2c]
xor esi, esi
xor eax, eax
cmp edi, esi
mov dword [esp + 0x18], 1
jle 0x415002
lea esp, [esp]
cmp dword [esp + eax*4 + 0x48], ebx
je 0x414ffe
inc eax
cmp eax, edi
jl 0x414fd0
jmp 0x415002
mov dword [esp + 0x1c], 0
jmp 0x414f44
cmp eax, 2
je 0x414fbb
cmp eax, 3
je 0x414fbb
mov dword [esp + 0x18], 0xfffffffe
jmp 0x415002
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x125c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415033
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x415033
mov dword [esp + 0x18], esi
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x123c]
xor ecx, esp
call fcn.00482b5f
add esp, 0x124c
ret 4