Function at 0x415ff2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x464
mov eax, 0x43c789
call fcn.0043a0dd
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 0x403b54
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x416381
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, 0x403984
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 0x416129
test edx, edx
je 0x416142
movzx esi, word [ebx]
mov dword [ebp - 0x43c], esi
test si, si
push 1
pop esi
push 2
je 0x416144
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 0x4160da
push 2
pop ebx
sub eax, ebx
mov dword [ebp - 0x430], eax
dec ecx
mov dword [ebp - 0x434], ecx
mov ecx, 0x8007007a
jmp 0x41614b
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 0x403b90
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x4161e4
mov eax, dword [ebp - 0x41c]
and eax, 0xfffffffe
cmp eax, 0x402
jae 0x4163b6
xor ecx, ecx
mov word [ebp + eax - 0x418], cx
push 0x403ba0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4161bd
mov ebx, dword [ebp - 0x42c]
mov dword [ebx], esi
jmp 0x4161ea
push 0x403ba4
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 0x4161ea
mov ebx, dword [ebp - 0x42c]
mov dword [ebp - 0x420], edi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x470]
call fcn.00416a63
mov byte [ebp - 4], 3
lea eax, [ebp - 0x41c]
push eax
push edi
push edi
push edi
push 0x403ba8
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x416303
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.004399fc
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
je 0x416303
lea ecx, [ebp - 0x41c]
push ecx
push eax
push edi
push edi
push 0x403ba8
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x416303
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 0x41629c
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 0x4162a5
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.004399fc
pop ecx
mov ecx, eax
mov dword [ebx + 4], ecx
test ecx, ecx
je 0x4163bb
mov edx, dword [ebp - 0x420]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x454]
jne 0x4162e2
sub edx, edi
sar edx, 1
push dword [ebp - 0x420]
inc edx
call fcn.004124db
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 0x403bcc
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x41636a
mov eax, dword [ebp - 0x41c]
and eax, 0xfffffffe
cmp eax, 0x402
jae 0x4163b6
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.004169fd
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 [0x44a344]
call ebx
call fcn.0043a02f
ret
call fcn.00439f1a
mov dword [ebp - 0x450], 0xbbef
push 0x448794
lea eax, [ebp - 0x450]
push eax
call sub.msvcrt.dll__CxxThrowException
int3