Function at 0x4050a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41096d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
xorps xmm0, xmm0
mov dword [ebp - 0x38], edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwareSAMP
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405267
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push str.gta_sa_exe
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40525e
cmp dword [ebp - 0x30], 1
jne 0x40525e
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
cmp edx, esi
ja 0x405162
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + edx], 0
jmp 0x4051a4
mov eax, dword [ebp - 0x14]
mov ecx, edx
sub ecx, esi
sub eax, esi
mov dword [ebp - 0x38], ecx
push ecx
cmp ecx, eax
ja 0x405197
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
add esi, eax
mov dword [ebp - 0x18], edx
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4051a4
push ecx
push dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040c480
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
push str.gta_sa_exe
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40525e
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
cmp edx, esi
ja 0x4051ec
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + edx], 0
jmp 0x40522e
mov eax, dword [ebp - 0x14]
mov ecx, edx
sub ecx, esi
sub eax, esi
mov dword [ebp - 0x38], ecx
push ecx
cmp ecx, eax
ja 0x405221
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
add esi, eax
mov dword [ebp - 0x18], edx
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x40522e
push ecx
push dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040c480
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
jmp 0x4052bf
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x412baf
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0040bfe0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4052bf
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4052b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4052b5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret