Function at 0x422340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fccb
mov eax, dword fs:[0]
push eax
sub esp, 0x720
mov eax, dword [0x462700]
xor eax, esp
mov dword [esp + 0x718], eax
push ebx
push esi
push edi
mov eax, dword [0x462700]
xor eax, esp
push eax
lea eax, [esp + 0x730]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
jb 0x422397
mov ecx, dword [esi]
jmp 0x422399
mov ecx, esi
mov eax, dword [eax]
lea ebx, [esp + 0x18]
push ebx
or eax, 0x20019
push eax
xor ebx, ebx
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x42252d
xor eax, eax
push 0x1fe
mov word [esp + 0x118], ax
lea eax, [esp + 0x11a]
push ebx
push eax
call fcn.004317b0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4223e5
mov esi, dword [esi]
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x11c]
push str.get_reg_RegOpenKeyExW_failed_lasterror:_d_and_the_subkey:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x24]
push eax
call fcn.00409a8c
mov dword [esp + 0x738], ebx
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040c8ef
pop ecx
pop ecx
push 0xf
pop esi
push 0x15
push str.path_manager::get_reg
lea ecx, [esp + 0xe4]
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
call fcn.00407efb
mov byte [esp + 0x738], 1
push 0x10
push str.path_manager.cpp
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
call fcn.00407efb
mov byte [esp + 0x738], 2
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00409b50
mov byte [esp + 0x738], 3
push eax
lea eax, [esp + 0xe0]
push eax
push 0x2b6
lea eax, [esp + 0xcc]
push eax
xor esi, esi
inc esi
push esi
push ecx
call fcn.004109b9
pop ecx
push eax
call fcn.00410d00
mov byte [esp + 0x738], 2
push ebx
push esi
lea ecx, [esp + 0x100]
call fcn.0040229e
mov byte [esp + 0x738], 1
push ebx
push esi
lea ecx, [esp + 0xc8]
call fcn.00407e53
mov byte [esp + 0x738], bl
lea ecx, [esp + 0xdc]
push ebx
push esi
call fcn.00407e53
or dword [esp + 0x738], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.00409b0d
lea ecx, [esp + 0x74]
call fcn.0040ee28
mov eax, dword [esp + 0x14]
jmp 0x4226fa
xor eax, eax
push 0x40e
mov word [esp + 0x318], ax
lea eax, [esp + 0x31a]
push ebx
push eax
call fcn.004317b0
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [esp + 0x1c], 0x410
jb 0x42255f
mov eax, dword [edi]
jmp 0x422561
mov eax, edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x318]
push ecx
push ebx
push ebx
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4226e1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 0x1fe
mov word [esp + 0x118], ax
lea eax, [esp + 0x11a]
push ebx
push eax
call fcn.004317b0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4225b9
mov edi, dword [edi]
push edi
push dword [esp + 0x18]
lea eax, [esp + 0x11c]
push str.get_reg_RegQueryValueExW_failed_lasterror:_d_and_the_subkey:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x24]
push eax
call fcn.00409a8c
mov dword [esp + 0x738], 4
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040c8ef
pop ecx
pop ecx
push 0xf
pop esi
push 0x15
push str.path_manager::get_reg
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
call fcn.00407efb
mov byte [esp + 0x738], 5
push 0x10
push str.path_manager.cpp
lea ecx, [esp + 0xe4]
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
call fcn.00407efb
mov byte [esp + 0x738], 6
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00409b50
mov byte [esp + 0x738], 7
push eax
lea eax, [esp + 0xc4]
push eax
push 0x2c2
lea eax, [esp + 0xe8]
push eax
xor esi, esi
inc esi
push esi
push ecx
call fcn.004109b9
pop ecx
push eax
call fcn.00410d00
mov byte [esp + 0x738], 6
push ebx
push esi
lea ecx, [esp + 0x100]
call fcn.0040229e
mov byte [esp + 0x738], 5
push ebx
push esi
lea ecx, [esp + 0xe4]
call fcn.00407e53
mov byte [esp + 0x738], 4
lea ecx, [esp + 0xc0]
jmp 0x422503
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x314]
push eax
call fcn.00401e93
xor eax, eax
mov ecx, dword [esp + 0x730]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x718]
xor ecx, esp
call fcn.004313d1
mov esp, ebp
pop ebp
ret 0xc