Function at 0x408fe0
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5dbc01
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x174]
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x60], eax
mov byte [esp + 0x1e], 0
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x409067
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x40906b
mov dword [esp + 0x1c], eax
dec eax
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x100
lea edx, [esp + 0x44]
push edx
or eax, 0x20019
push eax
mov eax, dword [esp + 0x5c]
push edi
call fcn.0040d930
push eax
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40985a
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x44]
push ecx
push edx
lea esi, [esp + 0x60]
call fcn.00414070
mov dword [esp + 0x168], edi
xor ecx, ecx
mov eax, 0x3fff
mov dword [esp + 0x24], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005928f7
mov ebp, eax
add esp, 4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], edi
xor esi, esi
jmp 0x409108
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x48]
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
lea edx, [esp + 0x34]
push edx
push ebp
push esi
mov ebx, 0x3fff
push eax
mov dword [esp + 0x44], ebx
call edi
inc esi
mov dword [esp + 0x4c], esi
test eax, eax
jne 0x409821
mov eax, dword [esp + 0x34]
cmp eax, 1
je 0x40914e
cmp eax, 7
jne 0x409108
mov eax, dword [esp + 0x20]
shr eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x24], ebx
neg ecx
or ecx, eax
push ecx
call fcn.005928f7
add esp, 4
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x50]
push 0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x34]
push eax
push ebp
lea ecx, [esi - 1]
push ecx
push edx
call edi
test eax, eax
jne 0x409821
mov eax, dword [esp + 0x34]
cmp eax, 1
je 0x4091ae
cmp eax, 7
jne 0x409108
mov edx, dword [0x6e9718]
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x6e9718
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x168], 2
mov edx, dword [0x6e9718]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ecx
mov ecx, 0x6e9718
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x168], 5
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 4
mov dword [esp + 0x28], ecx
call fcn.004140e0
test eax, eax
jne 0x409220
xor ecx, ecx
jmp 0x409234
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409225
sub ecx, esi
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x30]
call fcn.0040f6d0
push 1
push 0x692fe8
lea edx, [esp + 0x34]
push edx
call fcn.00412100
mov eax, dword [esp + 0x54]
call fcn.0040d930
test eax, eax
jne 0x409262
xor ecx, ecx
jmp 0x409276
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409267
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00412100
cmp word [ebp], 0
jne 0x409295
push str.2BAE191B_03CE_4148_8BBA_28AE87939E58
mov ebx, 0x26
jmp 0x4092b2
mov eax, ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4092a0
sub eax, edx
sar eax, 1
push ebp
mov ebx, eax
lea eax, [esp + 0x34]
call fcn.0040f6d0
mov eax, dword [esp + 0x5c]
xor ecx, ecx
xor edi, edi
push 0xffffffffffffffff
mov word [esp + 0x148], cx
mov ebp, 7
push edi
lea ecx, [esp + 0x148]
mov dword [esp + 0x160], ebp
mov dword [esp + 0x15c], edi
call fcn.0040d430
mov byte [esp + 0x168], 6
push 1
mov eax, 0x692fe8
lea ecx, [esp + 0x144]
call fcn.0040d350
mov eax, dword [esp + 0x20]
shr eax, 1
xor edx, edx
push eax
mov eax, dword [esp + 0x44]
lea esi, [esp + 0xf0]
mov dword [esp + 0x108], ebp
mov dword [esp + 0x104], edi
mov word [esp + 0xf4], dx
call fcn.0040d4e0
mov byte [esp + 0x168], 7
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0x148]
call fcn.0040d290
mov byte [esp + 0x168], 6
cmp dword [esp + 0x104], 8
jb 0x409374
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.0059392f
add esp, 4
xor eax, eax
xor edx, edx
mov word [esp + 0x9c], ax
push 0xe
mov eax, str.InprocServer32
lea esi, [esp + 0x9c]
mov dword [esp + 0x108], ebp
mov dword [esp + 0x104], edi
mov word [esp + 0xf4], dx
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], edi
call fcn.0040d4e0
mov byte [esp + 0x168], 8
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
or ebx, 1
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x24]
xor ecx, ecx
push edx
lea esi, [esp + 0x80]
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], edi
mov word [esp + 0x84], cx
call fcn.0040d4e0
mov dword [esp + 0x168], 9
mov eax, esi
or ebx, 2
push eax
lea ecx, [esp + 0x9c]
lea edi, [esp + 0x10c]
mov dword [esp + 0x18], ebx
call fcn.00408bf0
add esp, 4
mov dword [esp + 0x168], 0xa
mov ecx, dword [esp + 0x38]
push ecx
or ebx, 4
push eax
xor edx, edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ebx
call fcn.00408650
add esp, 8
test al, al
jne 0x40952b
xor edx, edx
xor edi, edi
push 0xe
mov eax, str.InprocServer32
lea esi, [esp + 0xb8]
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xcc], edi
mov word [esp + 0xbc], dx
call fcn.0040d4e0
mov dword [esp + 0x168], 0xb
or ebx, 8
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
shr eax, 1
xor ecx, ecx
push eax
mov eax, dword [esp + 0x44]
lea esi, [esp + 0x64]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], edi
mov word [esp + 0x68], cx
call fcn.0040d4e0
mov dword [esp + 0x168], 0xc
mov edx, esi
or ebx, 0x10
push edx
lea ecx, [esp + 0xb8]
lea edi, [esp + 0x128]
mov dword [esp + 0x18], ebx
call fcn.00408bf0
add esp, 4
mov dword [esp + 0x168], 0xd
mov ecx, dword [esp + 0x38]
push ecx
or ebx, 0x20
push eax
xor edx, edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ebx
call fcn.00408650
add esp, 8
test al, al
jne 0x40952b
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x144]
push eax
xor edx, edx
lea ecx, [esp + 0x30]
call fcn.00408650
add esp, 8
mov byte [esp + 0x1b], 1
test al, al
je 0x409530
mov byte [esp + 0x1b], 0
mov dword [esp + 0x168], 0xc
mov esi, 8
test bl, 0x20
je 0x409581
and ebx, 0xffffffdf
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x13c], esi
jb 0x409565
mov ecx, dword [esp + 0x128]
push ecx
call fcn.0059392f
add esp, 4
xor edi, edi
xor edx, edx
mov dword [esp + 0x13c], ebp
mov dword [esp + 0x138], edi
mov word [esp + 0x128], dx
jmp 0x409583
xor edi, edi
mov dword [esp + 0x168], 0xb
test bl, 0x10
je 0x4095bc
and ebx, 0xffffffef
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x78], esi
jb 0x4095ad
mov eax, dword [esp + 0x64]
push eax
call fcn.0059392f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], edi
mov word [esp + 0x64], cx
mov dword [esp + 0x168], 0xa
test bl, 8
je 0x409604
and ebx, 0xfffffff7
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xcc], esi
jb 0x4095ec
mov edx, dword [esp + 0xb8]
push edx
call fcn.0059392f
add esp, 4
xor eax, eax
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], edi
mov word [esp + 0xb8], ax
mov dword [esp + 0x168], 9
test bl, 4
je 0x40964c
and ebx, 0xfffffffb
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x120], esi
jb 0x409634
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.0059392f
add esp, 4
xor edx, edx
mov dword [esp + 0x120], ebp
mov dword [esp + 0x11c], edi
mov word [esp + 0x10c], dx
mov dword [esp + 0x168], esi
test bl, 2
je 0x409690
and ebx, 0xfffffffd
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x94], esi
jb 0x409678
mov eax, dword [esp + 0x80]
push eax
call fcn.0059392f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], edi
mov word [esp + 0x80], cx
mov dword [esp + 0x168], 6
test bl, 1
je 0x4096d8
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xb0], esi
jb 0x4096c0
mov edx, dword [esp + 0x9c]
push edx
call fcn.0059392f
add esp, 4
xor eax, eax
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], edi
mov word [esp + 0x9c], ax
cmp byte [esp + 0x1b], 0
je 0x40976f
mov eax, dword [esp + 0x20]
shr eax, 1
xor ecx, ecx
push eax
mov eax, dword [esp + 0x44]
lea esi, [esp + 0xd4]
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], edi
mov word [esp + 0xd8], cx
call fcn.0040d4e0
mov byte [esp + 0x168], 0xe
mov edx, dword [esp + 0x38]
push edx
mov eax, esi
push eax
xor edx, edx
lea ecx, [esp + 0x30]
call fcn.00408650
add esp, 8
mov byte [esp + 0x168], 6
cmp dword [esp + 0xe8], 8
jb 0x409752
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.0059392f
add esp, 4
xor edx, edx
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], edi
mov word [esp + 0xd4], dx
mov esi, 8
mov byte [esp + 0x168], 5
cmp dword [esp + 0x158], esi
jb 0x409790
mov eax, dword [esp + 0x144]
push eax
call fcn.0059392f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x158], ebp
mov dword [esp + 0x154], edi
mov word [esp + 0x144], cx
mov al, 0xf
mov byte [esp + 0x168], al
lea edx, [esp + 0x30]
mov dword [esp + 0x48], edx
mov byte [esp + 0x168], al
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x168], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], ecx
mov byte [esp + 0x168], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409100
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x409100
cmp eax, 0x103
jne 0x40982d
mov byte [esp + 0x1a], 1
push ebp
call fcn.0059478b
add esp, 4
mov dword [esp + 0x168], 0xffffffff
mov esi, dword [esp + 0x58]
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
xor edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, eax
dec eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x40906b
mov al, byte [esp + 0x1a]
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0059393a
add esp, 0x158
ret