Function at 0x1004fd2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
call fcn.01004dfe
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 0xf003f
push esi
push 0x1001c78
push esi
push 0x1001898
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100520e
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x100519f
cmp edi, 1
je 0x100517b
jle 0x10051e4
cmp edi, 9
jg 0x10051e4
lea eax, [ebp - 0xc]
push eax
push 0x1001920
push 0x80000002
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x100507c
lea eax, [ebp - 0xc]
push eax
push 0x10018e0
push 0x80000001
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100520c
lea eax, [edi - 2]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
imul eax, eax, 0xc8
lea ecx, [ebp - 8]
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
lea eax, [eax + 0x10134e8]
push esi
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], eax
call edi
cmp eax, esi
mov dword [ebp + 8], eax
je 0x10050b5
mov dword [ebp - 8], 1
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [ebp + 8], esi
pop ecx
mov dword [ebp - 0x14], eax
mov word [eax], si
jne 0x10050de
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edi, eax
call esi
mov ecx, dword [ebp - 0x14]
and dword [ebp + 8], 0
lea eax, [ecx + eax*2]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0xf
jne 0x1005115
mov edi, dword [ebp - 0x18]
push edi
call esi
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0
push dword [ebp - 4]
call ebx
jmp 0x100515c
push 0x2c
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x1005128
and word [eax], 0
push edi
call esi
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebp + 8]
push edi
push 1
push 0
push dword [eax*4 + 0x100e080]
push dword [ebp - 4]
call ebx
push edi
call esi
lea eax, [edi + eax*2 + 2]
cmp dword [ebp - 0x1c], eax
jae 0x1005155
mov edi, dword [ebp - 0x1c]
jmp 0x100515c
push edi
call esi
lea edi, [edi + eax*2 + 2]
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x10
jb 0x10050f6
push dword [ebp - 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x10051e4
mov dword [ebp - 0x10], esi
xor edi, edi
push 2
push 0x1001c76
push 1
push esi
push dword [edi + 0x100e080]
push dword [ebp - 4]
call ebx
add edi, 4
cmp edi, 0x40
jb 0x1005180
jmp 0x10051e4
mov eax, dword [0x1015bac]
mov dword [ebp - 0x10], eax
mov edi, 0x100e080
mov dword [ebp + 8], 0x1013b28
mov dword [ebp - 0x1c], 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push esi
push dword [edi]
push dword [ebp - 4]
call ebx
add dword [ebp + 8], 0x208
add edi, 4
dec dword [ebp - 0x1c]
jne 0x10051ba
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10018c4
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
push esi
push esi
push 0x57
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
pop edi
pop ebx
pop esi
leave
ret 4