Function at 0x40b500
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42a738
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x437368]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
mov eax, dword [0x437368]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x18], esi
mov ebp, 7
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], si
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push 0x42f96c
mov dword [esp + 0x70], esi
push 0x80000002
mov dword [0x43980c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
je 0x40b5e8
lea ecx, [esp + 0x1c]
call fcn.0040b750
cmp ebx, 2
mov eax, 1
mov byte [esp + 0x60], al
jne 0x40b597
cmp dword [esp + 0x30], 0x24
jne 0x40b597
mov dword [0x43980c], eax
push 0xffffffffffffffff
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], esi
push esi
lea eax, [esp + 0x24]
mov ecx, edi
mov word [edi + 4], si
call fcn.00401600
mov ebx, 8
cmp dword [esp + 0x34], ebx
jb 0x40b5c7
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00414041
add esp, 4
cmp dword [esp + 0x50], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
jb 0x40b721
mov edx, dword [esp + 0x3c]
push edx
jmp 0x40b719
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
push 0x42f9a0
push ecx
call ebp
mov ebx, eax
cmp ebx, esi
je 0x40b682
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
call fcn.0040b750
cmp ebx, 2
mov byte [esp + 0x60], 2
jne 0x40b637
cmp dword [esp + 0x30], 0x24
jne 0x40b637
mov dword [0x43980c], 1
push 0xffffffffffffffff
mov ebp, 7
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], esi
push esi
lea eax, [esp + 0x24]
mov ecx, edi
mov word [edi + 4], si
call fcn.00401600
mov ebx, 8
cmp dword [esp + 0x34], ebx
jb 0x40b66c
mov eax, dword [esp + 0x20]
push eax
call fcn.00414041
add esp, 4
cmp dword [esp + 0x50], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
jmp 0x40b712
mov edx, dword [esp + 0x14]
push edx
call fcn.004134ab
mov edx, dword [esp + 0x14]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push esi
push 0x42f9a0
push edx
call ebp
test eax, eax
jne 0x40b6f2
cmp dword [esp + 0x18], 1
jne 0x40b6f2
cmp dword [esp + 0x14], 0x4a
jne 0x40b6f2
lea eax, [esp + 0x38]
push eax
mov edx, ebx
call fcn.00409880
push ebx
call fcn.00414062
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x38]
push edx
mov esi, edi
call fcn.00405b50
lea esi, [esp + 0x38]
call fcn.004012e0
jmp 0x40b721
push ebx
call fcn.00414062
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call fcn.0040b750
cmp dword [esp + 0x50], 8
jb 0x40b721
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00414041
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00414002
add esp, 0x54
ret