Function at 0x4109b1
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
push eax
push ebx
push 0x1fffff
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThread]
mov dword [0x4365e0], eax
call fcn.0040e2af
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
push 0x20019
push ebx
push 0x402528
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x41e9c5
lea eax, [ebp - 0x19]
mov byte [0x42e57c], 1
mov edx, 0x43a7e0
mov dword [0x42e574], eax
call fcn.00411f5b
dec eax
neg eax
sbb al, al
and byte [0x42e57c], al
call fcn.00411f1a
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004087ca
cmp dword [ebp - 0x20], 1
je 0x41e9f5
mov edi, 0xff
test eax, eax
je 0x41ea58
push ebx
push 0x440a30
call sub.msvcrt.dll__setjmp3
pop ecx
pop ecx
mov ecx, dword [0x436758]
test eax, eax
jne 0x41ea1c
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x410ac5
mov esi, ebx
mov edx, dword [ebp + esi*4 - 0x14]
test edx, edx
jne 0x410ae0
inc esi
cmp esi, 3
jl 0x410a90
call fcn.0040e310
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x43c9f0
push eax
mov dword [0x4325a0], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetCPInfo]
call fcn.0040e2af
mov ecx, dword [0x436758]
test ecx, ecx
je 0x41ea52
push ebx
call fcn.00411e70
test eax, eax
je 0x410acd
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_exit]
push dword [0x436778]
xor ecx, ecx
inc ecx
call fcn.0040c570
cmp eax, 1
je 0x41ea41
cmp eax, 0xffffffff
je 0x41ea32
mov edx, eax
xor ecx, ecx
call fcn.0040e470
test eax, eax
je 0x410a98
mov dword [ebp - 0x18], eax
jmp 0x410a98
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push 0x403e54
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x410a18
push ebx
push 0x40002729
call fcn.004063bd
pop ecx
pop ecx
push ebx
call fcn.00424840
push ebx
call fcn.00411e70
test eax, eax
je 0x41ea08
push 0xff
jmp 0x410ada
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x410a8a
mov dword [ebp - 0x18], edi
jmp 0x410a8a
push ebx
call fcn.00411e70
test eax, eax
je 0x41ea32
jmp 0x41eb7f
push ebx
call fcn.00411e70
test eax, eax
je 0x41ea41
push 1
jmp 0x410ada
mov dword [0x44904c], ebx
push ebx
push 0x440a30
call sub.msvcrt.dll__setjmp3
mov dword [ebp - 0x18], eax
pop ecx
pop ecx
push 2
pop esi
test eax, eax
je 0x41ea82
cmp eax, esi
jne 0x41ea82
push ebx
call fcn.00411e70
test eax, eax
je 0x41ea73
jmp 0x41eb7f
cmp dword [ebp - 0x20], esi
jne 0x41eaaa
push ebx
push 0x40002729
call fcn.004063bd
pop ecx
pop ecx
push ebx
call fcn.00424840
push ebx
call fcn.00411e70
test eax, eax
je 0x41ea9a
push edi
jmp 0x410ada
xor ecx, ecx
call fcn.0040dd98
test eax, eax
jne 0x41eac6
push 3
pop esi
push 0x8000
push ebx
call dword [sym.imp.msvcrt.dll__setmode]
pop ecx
pop ecx
push ebx
call fcn.004162c0
push dword [0x4325a4]
mov byte [0x436744], bl
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
push dword [0x4325a4]
mov dword [0x43259c], ebx
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
push ebx
xor edx, edx
mov ecx, esi
call fcn.0040c570
mov edi, eax
cmp edi, 1
je 0x41eacc
cmp edi, 0xffffffff
je 0x41eb75
push dword [0x4325a4]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
push dword [0x4325a4]
mov dword [0x43259c], ebx
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x43c9f0
push eax
mov dword [0x4325a0], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetCPInfo]
call fcn.0040e2af
mov edx, edi
xor ecx, ecx
call fcn.0040e470
mov byte [0x43675c], bl
call fcn.0040e310
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0x43c9f0
push eax
mov dword [0x4325a0], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetCPInfo]
call fcn.0040e2af
jmp 0x41eacc
push ebx
call fcn.00411e70
test eax, eax
je 0x41eb75
push ebx
jmp 0x410ada