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

Disassembly:
push 0xffffffffffffffff
push 0x48d8d2
mov eax, dword fs:[0]
push eax
mov eax, 0x4264
call fcn.00465cc0
mov eax, dword [0x4b1d00]
xor eax, esp
mov dword [esp + 0x425c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4b1d00]
xor eax, esp
push eax
lea eax, [esp + 0x4274]
mov dword fs:[0], eax
mov ecx, dword [ecx]
mov eax, dword [esp + 0x4284]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x20]
push edx
push 0x20019
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c6a
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x1b]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040b5d0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x4290], ebx
mov ecx, dword [esp + 0x34]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [esp + 0x78]
push eax
push ebx
push ecx
mov dword [esp + 0x50], 0x104
mov dword [esp + 0x38], 0x3ffe
xor esi, esi
call ebp
test eax, eax
jne 0x407b67
jmp 0x407990
mov eax, dword [esp + 0x34]
cmp eax, 1
jne 0x407abf
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x64]
shr edx, 1
xor eax, eax
push 0x104
push ecx
mov word [esp + edx*2 + 0x274], ax
call fcn.00466549
add esp, 4
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x49a808
call fcn.00404be0
push ecx
mov byte [esp + 0x4284], 1
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00404be0
mov byte [esp + 0x4284], bl
call fcn.00406ed0
add esp, 8
cmp eax, ebx
jne 0x407b29
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x49a80c
call fcn.00404be0
push ecx
mov byte [esp + 0x4284], 2
lea eax, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00404be0
mov byte [esp + 0x4284], bl
call fcn.00406ed0
add esp, 8
cmp eax, ebx
jne 0x407b29
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x14]
call fcn.00404be0
lea ecx, [esp + 0x10]
mov byte [esp + 0x427c], 3
call fcn.0040a4c0
lea edx, [esp + 0x26c]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.0040a840
mov ecx, eax
call fcn.00404c90
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00404bc0
call fcn.00406bb0
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x407ab9
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0040aa50
mov ecx, eax
call fcn.00404c90
lea ecx, [esp + 0x10]
jmp 0x407b1d
cmp eax, 2
jne 0x407b29
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x64]
shr edx, 1
xor eax, eax
push 0x104
push ecx
mov word [esp + edx*2 + 0x274], ax
call fcn.00466549
add esp, 8
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x28]
call fcn.00404be0
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4284], 4
call fcn.0040a840
mov ecx, eax
call fcn.00404c90
lea ecx, [esp + 0x24]
mov byte [esp + 0x427c], bl
call fcn.00401b10
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x78]
push eax
inc esi
push esi
push ecx
mov dword [esp + 0x50], 0x104
mov dword [esp + 0x38], 0x3ffe
call ebp
test eax, eax
je 0x407990
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov bl, 5
jmp 0x407b90
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
call fcn.0040b130
test al, al
je 0x407c56
lea ecx, [esp + 0x10]
call fcn.004017d0
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x4280], bl
call fcn.0040b100
mov ecx, eax
add ecx, 4
lea edx, [esp + 0x14]
call fcn.00407040
add esp, 4
lea ecx, [esp + 0x24]
call fcn.0040b100
push eax
mov ecx, edi
call fcn.0040a840
lea edx, [esp + 0x10]
push edx
mov ecx, eax
call fcn.00404e20
lea ecx, [esp + 0x24]
call fcn.0040b100
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00404bc0
call fcn.00406bb0
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x407c3f
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
call fcn.0040aa50
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00404e20
lea ecx, [esp + 0x10]
call fcn.00401b10
lea ecx, [esp + 0x24]
call fcn.0040da80
jmp 0x407b90
lea ecx, [esp + 0x44]
mov dword [esp + 0x427c], 0xffffffff
call fcn.004063f0
mov eax, 1
mov ecx, dword [esp + 0x4274]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x425c]
xor ecx, esp
call fcn.00464fe1
add esp, 0x4270
ret