Function at 0x4099e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentThreadId]
push eax
push ebx
push 0x1fffff
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_OpenThread]
mov dword [0x4260f4], eax
call fcn.00409b63
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapSetInformation]
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
push 0x20019
push ebx
push 0x409b08
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x41e91d
lea eax, [ebp - 1]
mov byte [0x426008], 1
mov edx, 0x441820
mov dword [0x426148], eax
call fcn.00409d01
dec eax
neg eax
sbb al, al
and byte [0x426008], al
call fcn.00409ca1
xor eax, eax
mov dword [ebp - 8], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040a2de
cmp dword [ebp - 0xc], 1
je 0x41e94d
mov edi, 0xff
test eax, eax
je 0x41e980
push ebx
push 0x4265e0
call sub.msvcrt.dll__setjmp3
pop ecx
pop ecx
mov ecx, dword [0x42606c]
test eax, eax
jne 0x41e96a
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x409af6
mov esi, ebx
mov edx, dword [ebp + esi*4 - 0x2c]
test edx, edx
jne 0x409bde
inc esi
cmp esi, 3
jl 0x409abd
call fcn.004023e3
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x4261c0
push eax
mov dword [0x426120], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetCPInfo]
call fcn.00409b63
mov ecx, dword [0x42606c]
test ecx, ecx
je 0x416b78
mov ecx, dword [ebp - 8]
call fcn.00409959
int3
push dword [0x42607c]
xor ecx, ecx
inc ecx
call fcn.004045c1
xor ecx, ecx
cmp eax, 1
je 0x409c13
cmp eax, 0xffffffff
je 0x409b01
mov edx, eax
call fcn.004012e5
test eax, eax
je 0x409ac9
mov dword [ebp - 8], eax
jmp 0x409ac9
inc ecx
jmp 0x409b01
mov dword [0x426070], ebx
jmp 0x41e980
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x41ea90
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x409a45
push ebx
push 0x40002729
call fcn.0040bd74
pop ecx
pop ecx
push ebx
call fcn.0041fb00
mov ecx, 0xff
jmp 0x409b01
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x409ab7
mov dword [ebp - 8], edi
jmp 0x409ab7
push ebx
push 0x4265e0
call sub.msvcrt.dll__setjmp3
mov dword [ebp - 8], eax
pop ecx
pop ecx
push 2
pop esi
test eax, eax
je 0x41e9a2
cmp eax, esi
jne 0x41e9a2
xor ecx, ecx
jmp 0x409b01
cmp dword [ebp - 0xc], esi
jne 0x41e9c1
push ebx
push 0x40002729
call fcn.0040bd74
pop ecx
pop ecx
push ebx
call fcn.0041fb00
mov ecx, edi
jmp 0x409b01
xor ecx, ecx
call fcn.004048d4
test eax, eax
jne 0x41e9dd
push 3
pop esi
push 0x8000
push ebx
call dword [sym.imp.msvcrt.dll__setmode]
pop ecx
pop ecx
push ebx
call fcn.0040e7f0
push dword [0x42611c]
mov byte [0x426002], bl
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
push dword [0x42611c]
mov dword [0x426124], ebx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
push ebx
xor edx, edx
mov ecx, esi
call fcn.004045c1
mov edi, eax
cmp edi, 1
je 0x41e9e3
cmp edi, 0xffffffff
je 0x41e99b
push dword [0x42611c]
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
push dword [0x42611c]
mov dword [0x426124], ebx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x4261c0
push eax
mov dword [0x426120], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetCPInfo]
call fcn.00409b63
mov edx, edi
xor ecx, ecx
call fcn.004012e5
mov byte [0x426005], bl
call fcn.004023e3
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x4261c0
push eax
mov dword [0x426120], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetCPInfo]
call fcn.00409b63
jmp 0x41e9e3