Function at 0x416732
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x464
mov eax, 0x441e99
call fcn.0043f86d
mov dword [ebp - 0x42c], ecx
xor ecx, ecx
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov byte [ebp - 0x464], cl
mov ebx, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], ecx
push 2
pop edx
mov dword [ebp - 0x428], edx
mov eax, edx
mov dword [ebp - 0x428], eax
and eax, 0xfffffffd
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x428], esi
mov byte [ebp - 4], dl
lea eax, [ebp - 0x424]
push eax
push esi
push ecx
push 0x403c24
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x416ac1
mov dword [ebp - 0x41c], 0x400
push 0x402
push eax
lea eax, [ebp - 0x418]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x44c], ecx
mov edx, 0x7ffffffe
mov dword [ebp - 0x448], edx
mov ebx, 0x403a54
mov dword [ebp - 0x440], ebx
mov edi, 0x201
mov dword [ebp - 0x444], edi
lea eax, [ebp - 0x418]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], ecx
test edi, edi
je 0x416869
test edx, edx
je 0x416882
movzx esi, word [ebx]
mov dword [ebp - 0x43c], esi
test si, si
push 1
pop esi
push 2
je 0x416884
mov esi, dword [ebp - 0x43c]
mov word [eax], si
pop esi
add eax, esi
mov dword [ebp - 0x430], eax
add ebx, esi
mov dword [ebp - 0x440], ebx
dec edi
mov dword [ebp - 0x444], edi
dec edx
mov dword [ebp - 0x448], edx
inc ecx
xor esi, esi
inc esi
jmp 0x41681a
push 2
pop ebx
sub eax, ebx
mov dword [ebp - 0x430], eax
dec ecx
mov dword [ebp - 0x434], ecx
mov ecx, 0x8007007a
jmp 0x41688b
push 2
pop ebx
mov ecx, dword [ebp - 0x438]
xor edx, edx
mov word [eax], dx
mov dword [ebp - 0x44c], ecx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
xor edi, edi
push edi
push edi
push 0x403c60
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x416924
mov eax, dword [ebp - 0x41c]
and eax, 0xfffffffe
cmp eax, 0x402
jae 0x416af6
xor ecx, ecx
mov word [ebp + eax - 0x418], cx
push 0x403c70
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4168fd
mov ebx, dword [ebp - 0x42c]
mov dword [ebx], esi
jmp 0x41692a
push 0x403c74
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, ebx
mov ebx, dword [ebp - 0x42c]
mov dword [ebx], eax
jmp 0x41692a
mov ebx, dword [ebp - 0x42c]
mov dword [ebp - 0x420], edi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x470]
call fcn.004171a3
mov byte [ebp - 4], 3
lea eax, [ebp - 0x41c]
push eax
push edi
push edi
push edi
push 0x403c78
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x416a43
mov eax, dword [ebp - 0x41c]
inc eax
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043f15c
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
je 0x416a43
lea ecx, [ebp - 0x41c]
push ecx
push eax
push edi
push edi
push 0x403c78
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x416a43
mov ecx, dword [ebp - 0x41c]
shr ecx, 1
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [eax + ecx*2], dx
cmp dword [ebx + 4], edx
je 0x4169dc
push dword [ebx + 4]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov dword [ebx + 4], edi
mov ecx, dword [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4169e5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043f15c
pop ecx
mov ecx, eax
mov dword [ebx + 4], ecx
test ecx, ecx
je 0x416afb
mov edx, dword [ebp - 0x420]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x454]
jne 0x416a22
sub edx, edi
sar edx, 1
push dword [ebp - 0x420]
inc edx
call fcn.00412c1b
xor edi, edi
mov dword [ebp - 0x41c], 0x400
xor eax, eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
push edi
push edi
push 0x403c9c
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x416aaa
mov eax, dword [ebp - 0x41c]
and eax, 0xfffffffe
cmp eax, 0x402
jae 0x416af6
xor ecx, ecx
mov word [ebp + eax - 0x418], cx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
cdq
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
push 2
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x470]
call fcn.0041713e
mov ebx, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 4], eax
and esi, 0xfffffffe
mov dword [ebp - 0x428], esi
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, ebx
call dword [0x4523e0]
call ebx
call fcn.0043f7bf
ret
call fcn.0043f67a
mov dword [ebp - 0x450], 0xbbef
push 0x44fd84
lea eax, [ebp - 0x450]
push eax
call sub.msvcrt.dll__CxxThrowException
int3