Function at 0x41be50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d99c
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x540], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x544], edi
mov dword [ebp - 0x544], ebx
cmp dword [eax + 0x10], 0
je 0x41c109
cmp dword [esi + 0x10], 0
je 0x41c109
cmp dword [eax + 0x14], 8
jb 0x41bebb
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x53c]
call fcn.00417810
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41bed6
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x538]
call fcn.00417810
xor esi, esi
mov dword [ebp - 0x550], esi
mov dword [ebp - 0x54c], esi
mov dword [ebp - 0x548], esi
lea eax, [ebp - 0x534]
mov dword [ebp - 0x534], esi
push eax
push 0x20019
push esi
push dword [ebp - 0x53c]
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41bf31
mov esi, dword [ebp - 0x534]
mov dword [ebp - 0x550], esi
mov dword [ebp - 0x54c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41bf90
push ebx
mov ecx, edi
call fcn.00401f70
test esi, esi
je 0x41bf4c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x538]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41bf6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x53c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41c111
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x41c111
push 0x401
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x534], 0x400
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x540]
push eax
push 0
push dword [ebp - 0x538]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x41c015
mov eax, dword [ebp - 0x540]
cmp eax, 1
je 0x41bff1
cmp eax, 2
je 0x41bff1
mov ebx, 0xd
jmp 0x41c015
mov eax, dword [ebp - 0x534]
test eax, eax
je 0x41c00c
cmp byte [ebp + eax - 0x415], 0
je 0x41c013
mov ebx, 0xd
jmp 0x41c015
mov byte [ebp - 0x414], 0
xor ebx, ebx
lea eax, [ebp - 0x52c]
mov dword [ebp - 0x530], eax
lea ecx, [ebp - 0x530]
push 3
lea eax, [ebp - 0x414]
push eax
call fcn.00418bb0
push dword [ebp - 0x530]
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 4
call fcn.00401960
mov eax, dword [ebp - 0x530]
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 6
cmp eax, ecx
je 0x41c068
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test ebx, ebx
lea eax, [ebp - 0x42c]
mov ecx, edi
cmovne eax, dword [ebp - 0x544]
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x41c0c1
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c0b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41c0b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
add esp, 8
test esi, esi
je 0x41c0cc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x538]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c0ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x53c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41c111
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41c111
push ebx
mov ecx, edi
call fcn.00401f70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret