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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
je 0x1003b51
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003d4f
test dword [eax + 0x1c], 0x800
je 0x1003d4f
push dword [ebp + 0x10]
push edi
push 0x10012a8
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003219
jmp 0x1003d4f
mov eax, dword [section..data]
mov esi, section..data
push ebx
mov ebx, 0x10012a8
cmp eax, esi
je 0x1003b7f
test dword [eax + 0x1c], 0x800
je 0x1003b7f
push dword [ebp + 0x10]
push ebx
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010030e5
xor eax, eax
push eax
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push eax
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyTransactedW]
mov edi, eax
test edi, edi
je 0x1003bd6
mov eax, dword [section..data]
cmp eax, esi
je 0x1003d4e
test dword [eax + 0x1c], 0x800
je 0x1003d4e
push dword [ebp + 0x10]
push edi
push ebx
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003219
jmp 0x1003d4e
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 4]
call fcn.01004588
mov edi, eax
cmp edi, 0x103
je 0x1003c53
test edi, edi
jne 0x1003c1e
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.010036e0
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.msvcrt.dll_free]
inc esi
pop ecx
test edi, edi
je 0x1003bd8
jmp 0x1003d4e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003d4e
test dword [eax + 0x1c], 0x800
je 0x1003d4e
push esi
push dword [ebp + 0x10]
push edi
push ebx
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003359
jmp 0x1003d4e
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov esi, 0x10013d8
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 4
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x1003cb1
cmp edi, 2
je 0x1003cbd
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003d4e
test dword [eax + 0x1c], 0x800
je 0x1003d4e
push esi
push dword [ebp + 0x10]
push edi
push ebx
push 0x1c
jmp 0x1003d43
cmp dword [ebp - 0x18], 4
jne 0x1003cbd
cmp dword [ebp - 0x14], 4
je 0x1003cc4
mov dword [ebp + 8], 1
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x1003cfd
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003d4e
test dword [eax + 0x1c], 0x800
je 0x1003d4e
push esi
push dword [ebp + 0x10]
push edi
push ebx
push 0x1d
jmp 0x1003d43
cmp dword [ebp + 8], 0
jne 0x1003d07
or dword [ebp - 0xc], 0x19
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
mov esi, 0x10013b4
push esi
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x1003d4e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003d4e
test dword [eax + 0x1c], 0x800
je 0x1003d4e
push esi
push dword [ebp + 0x10]
push edi
push ebx
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100328c
pop ebx
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
je 0x1003d60
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], 0
je 0x1003d6b
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret 0x14