Function at 0x4093a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x583ab4
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], edi
push ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x1a], 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
jne 0x409421
mov dword [esp + 0x1c], eax
jmp 0x409432
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x409432
mov dword [esp + 0x1c], eax
jmp 0x409432
xor edi, edi
dec eax
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x100
lea edx, [esp + 0x40]
push edx
or eax, 0x20019
push eax
mov eax, dword [esp + 0x58]
push edi
call fcn.0040e880
push eax
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409c28
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x40]
push ecx
push edx
lea esi, [esp + 0x5c]
call fcn.004136f0
mov dword [esp + 0x168], edi
xor ecx, ecx
mov eax, 0x3fff
mov dword [esp + 0x20], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fd2d4
mov ebx, eax
add esp, 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], edi
xor esi, esi
jmp 0x4094c8
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x38]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
push ebx
push esi
push eax
mov dword [esp + 0x40], 0x3fff
call edi
inc esi
mov dword [esp + 0x48], esi
test eax, eax
jne 0x409bf1
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x40950d
cmp eax, 7
jne 0x4094c8
mov eax, dword [esp + 0x18]
shr eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x20], 0x3fff
neg ecx
or ecx, eax
push ecx
call fcn.004fd2d4
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x4c]
push 0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x30]
push eax
push ebx
lea ecx, [esi - 1]
push ecx
push edx
call edi
test eax, eax
jne 0x409bf1
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x409571
cmp eax, 7
jne 0x4094c8
mov edx, dword [0x669e38]
lea eax, [esp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x669e38
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x168], 2
mov edx, dword [0x669e38]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ecx
mov ecx, 0x669e38
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x168], 5
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], 1
call fcn.00413760
test eax, eax
jne 0x4095d8
xor ecx, ecx
jmp 0x4095ef
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4095e0
sub ecx, esi
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x2c]
call fcn.004028e0
push 1
push 0x63132c
lea ecx, [esp + 0x30]
push ecx
call fcn.00411d70
mov eax, dword [esp + 0x50]
call fcn.0040e880
test eax, eax
jne 0x40961d
xor ecx, ecx
jmp 0x409631
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409622
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea edx, [esp + 0x30]
push edx
call fcn.00411d70
mov edx, dword [esp + 0x38]
cmp word [edx], 0
jne 0x409653
push str.2BAE191B_03CE_4148_8BBA_28AE87939E58
mov ebx, 0x26
jmp 0x409672
mov eax, edx
lea esi, [eax + 2]
jmp 0x409660
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409660
sub eax, esi
sar eax, 1
push edx
mov ebx, eax
lea eax, [esp + 0x30]
call fcn.004028e0
xor eax, eax
xor ebx, ebx
push 0xffffffffffffffff
mov word [esp + 0x144], ax
mov eax, dword [esp + 0x5c]
mov edi, 7
push ebx
lea ecx, [esp + 0x144]
mov dword [esp + 0x15c], edi
mov dword [esp + 0x158], ebx
call fcn.0040e380
mov byte [esp + 0x168], 6
push 1
mov eax, 0x63132c
lea ecx, [esp + 0x140]
call fcn.0040e2a0
mov eax, dword [esp + 0x18]
shr eax, 1
xor ecx, ecx
push eax
mov eax, dword [esp + 0x40]
lea esi, [esp + 0xec]
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], cx
call fcn.0040e430
mov byte [esp + 0x168], 7
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x144]
call fcn.0040e1e0
mov byte [esp + 0x168], 6
cmp dword [esp + 0x100], 8
jb 0x409734
mov eax, dword [esp + 0xec]
push eax
call fcn.004fdb3f
add esp, 4
xor ecx, ecx
xor edx, edx
push 0xe
mov eax, str.InprocServer32
lea esi, [esp + 0x98]
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], cx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], dx
call fcn.0040e430
mov byte [esp + 0x168], 8
mov ebx, dword [esp + 0x10]
or ebx, 1
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x20]
xor eax, eax
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x38]
push ecx
lea esi, [esp + 0x7c]
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], 0
call fcn.0040e430
mov dword [esp + 0x168], 9
mov edx, esi
or ebx, 2
push edx
lea ecx, [esp + 0x98]
lea edi, [esp + 0x108]
mov dword [esp + 0x14], ebx
call fcn.00408fb0
add esp, 4
mov dword [esp + 0x168], 0xa
mov ecx, dword [esp + 0x34]
push ecx
or ebx, 4
lea ecx, [esp + 0x28]
mov edx, eax
mov dword [esp + 0x14], ebx
call fcn.004089b0
add esp, 4
test al, al
jne 0x4098ef
xor edx, edx
mov edi, 7
push 0xe
mov eax, str.InprocServer32
lea esi, [esp + 0xb4]
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], 0
mov word [esp + 0xb8], dx
call fcn.0040e430
mov dword [esp + 0x168], 0xb
or ebx, 8
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
shr eax, 1
xor ecx, ecx
push eax
mov eax, dword [esp + 0x40]
lea esi, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], 0
mov word [esp + 0x64], cx
call fcn.0040e430
mov dword [esp + 0x168], 0xc
mov edx, esi
or ebx, 0x10
push edx
lea ecx, [esp + 0xb4]
lea edi, [esp + 0x124]
mov dword [esp + 0x14], ebx
call fcn.00408fb0
add esp, 4
mov dword [esp + 0x168], 0xd
mov ecx, dword [esp + 0x34]
push ecx
or ebx, 0x20
lea ecx, [esp + 0x28]
mov edx, eax
mov dword [esp + 0x14], ebx
call fcn.004089b0
add esp, 4
test al, al
jne 0x4098ef
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x140]
call fcn.004089b0
add esp, 4
mov byte [esp + 0x17], 1
test al, al
je 0x4098f4
mov byte [esp + 0x17], 0
mov dword [esp + 0x168], 0xc
test bl, 0x20
je 0x409946
and ebx, 0xffffffdf
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x138], 8
jb 0x409925
mov eax, dword [esp + 0x124]
push eax
call fcn.004fdb3f
add esp, 4
xor esi, esi
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], esi
mov word [esp + 0x124], cx
jmp 0x40994d
mov edi, 7
xor esi, esi
mov dword [esp + 0x168], 0xb
test bl, 0x10
je 0x409987
and ebx, 0xffffffef
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x74], 8
jb 0x409978
mov edx, dword [esp + 0x60]
push edx
call fcn.004fdb3f
add esp, 4
xor eax, eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], esi
mov word [esp + 0x60], ax
mov dword [esp + 0x168], 0xa
test bl, 8
je 0x4099d0
and ebx, 0xfffffff7
mov dword [esp + 0x10], ebx
cmp dword [esp + 0xc8], 8
jb 0x4099b8
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.004fdb3f
add esp, 4
xor edx, edx
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], esi
mov word [esp + 0xb4], dx
mov dword [esp + 0x168], 9
test bl, 4
je 0x409a19
and ebx, 0xfffffffb
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x11c], 8
jb 0x409a01
mov eax, dword [esp + 0x108]
push eax
call fcn.004fdb3f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], esi
mov word [esp + 0x108], cx
mov eax, 8
mov dword [esp + 0x168], eax
test bl, 2
je 0x409a61
and ebx, 0xfffffffd
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x90], eax
jb 0x409a47
mov edx, dword [esp + 0x7c]
push edx
call fcn.004fdb3f
add esp, 4
xor eax, eax
mov word [esp + 0x7c], ax
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], esi
mov eax, 8
mov dword [esp + 0x168], 6
test bl, 1
je 0x409aa9
and ebx, 0xfffffffe
mov dword [esp + 0x10], ebx
cmp dword [esp + 0xac], eax
jb 0x409a91
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004fdb3f
add esp, 4
xor edx, edx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], esi
mov word [esp + 0x98], dx
cmp byte [esp + 0x17], 0
je 0x409b3e
mov eax, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0xe0], esi
xor ecx, ecx
push eax
mov eax, dword [esp + 0x40]
lea esi, [esp + 0xd0]
mov dword [esp + 0xe8], edi
mov word [esp + 0xd4], cx
call fcn.0040e430
mov byte [esp + 0x168], 0xe
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
mov edx, esi
call fcn.004089b0
add esp, 4
mov byte [esp + 0x168], 6
cmp dword [esp + 0xe4], 8
jb 0x409b20
mov eax, dword [esp + 0xd0]
push eax
call fcn.004fdb3f
add esp, 4
xor ecx, ecx
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], 0
mov word [esp + 0xd0], cx
xor esi, esi
mov byte [esp + 0x168], 5
cmp dword [esp + 0x154], 8
jb 0x409b60
mov edx, dword [esp + 0x140]
push edx
call fcn.004fdb3f
add esp, 4
xor eax, eax
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], esi
mov word [esp + 0x140], ax
mov al, 0xf
mov byte [esp + 0x168], al
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ecx
mov byte [esp + 0x168], al
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 0x409bb0
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 + 0x28]
mov dword [esp + 0x44], ecx
mov byte [esp + 0x168], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4094c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4094c0
cmp eax, 0x103
jne 0x409bfd
mov byte [esp + 0x16], 1
push ebx
call fcn.004fe853
add esp, 4
mov dword [esp + 0x168], 0xffffffff
mov esi, dword [esp + 0x54]
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
mov eax, dword [esp + 0x1c]
mov ecx, eax
dec eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x409430
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004fdb4a
mov esp, ebp
pop ebp
ret