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

Disassembly:
push 0xffffffffffffffff
push 0x610961
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
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 0x409027
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x40902b
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.0040dc40
push eax
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40981a
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x44]
push ecx
push edx
lea esi, [esp + 0x60]
call fcn.00414060
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.005c2957
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 0x4090c8
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 0x4097e1
mov eax, dword [esp + 0x34]
cmp eax, 1
je 0x40910e
cmp eax, 7
jne 0x4090c8
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.005c2957
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 0x4097e1
mov eax, dword [esp + 0x34]
cmp eax, 1
je 0x40916e
cmp eax, 7
jne 0x4090c8
mov edx, dword [0x728f58]
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x728f58
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x168], 2
mov edx, dword [0x728f58]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ecx
mov ecx, 0x728f58
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.004140d0
test eax, eax
jne 0x4091e0
xor ecx, ecx
jmp 0x4091f4
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4091e5
sub ecx, esi
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x30]
call fcn.0040fac0
push 1
push 0x6ca140
lea edx, [esp + 0x34]
push edx
call fcn.004122f0
mov eax, dword [esp + 0x54]
call fcn.0040dc40
test eax, eax
jne 0x409222
xor ecx, ecx
jmp 0x409236
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409227
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004122f0
cmp word [ebp], 0
jne 0x409255
push str.2BAE191B_03CE_4148_8BBA_28AE87939E58
mov ebx, 0x26
jmp 0x409272
mov eax, ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409260
sub eax, edx
sar eax, 1
push ebp
mov ebx, eax
lea eax, [esp + 0x34]
call fcn.0040fac0
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.0040d740
mov byte [esp + 0x168], 6
push 1
mov eax, 0x6ca140
lea ecx, [esp + 0x144]
call fcn.0040d660
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.0040d7f0
mov byte [esp + 0x168], 7
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0x148]
call fcn.0040d5a0
mov byte [esp + 0x168], 6
cmp dword [esp + 0x104], 8
jb 0x409334
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.005c396f
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.0040d7f0
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.0040d7f0
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.00408ba0
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.00408600
add esp, 8
test al, al
jne 0x4094eb
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.0040d7f0
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.0040d7f0
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.00408ba0
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.00408600
add esp, 8
test al, al
jne 0x4094eb
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x144]
push eax
xor edx, edx
lea ecx, [esp + 0x30]
call fcn.00408600
add esp, 8
mov byte [esp + 0x1b], 1
test al, al
je 0x4094f0
mov byte [esp + 0x1b], 0
mov dword [esp + 0x168], 0xc
mov esi, 8
test bl, 0x20
je 0x409541
and ebx, 0xffffffdf
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x13c], esi
jb 0x409525
mov ecx, dword [esp + 0x128]
push ecx
call fcn.005c396f
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 0x409543
xor edi, edi
mov dword [esp + 0x168], 0xb
test bl, 0x10
je 0x40957c
and ebx, 0xffffffef
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x78], esi
jb 0x40956d
mov eax, dword [esp + 0x64]
push eax
call fcn.005c396f
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 0x4095c4
and ebx, 0xfffffff7
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xcc], esi
jb 0x4095ac
mov edx, dword [esp + 0xb8]
push edx
call fcn.005c396f
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 0x40960c
and ebx, 0xfffffffb
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x120], esi
jb 0x4095f4
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.005c396f
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 0x409650
and ebx, 0xfffffffd
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x94], esi
jb 0x409638
mov eax, dword [esp + 0x80]
push eax
call fcn.005c396f
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 0x409698
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xb0], esi
jb 0x409680
mov edx, dword [esp + 0x9c]
push edx
call fcn.005c396f
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 0x40972f
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.0040d7f0
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.00408600
add esp, 8
mov byte [esp + 0x168], 6
cmp dword [esp + 0xe8], 8
jb 0x409712
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.005c396f
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 0x409750
mov eax, dword [esp + 0x144]
push eax
call fcn.005c396f
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 0x4097a0
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 0x4090c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4090c0
cmp eax, 0x103
jne 0x4097ed
mov byte [esp + 0x1a], 1
push ebp
call fcn.005c47cb
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 0x40902b
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.005c397a
add esp, 0x158
ret