Function at 0x103f36a
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x654], eax
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x644], esi
mov dword [ebp - 0x634], edi
call sub.msvcrt.dll_memset
xor eax, eax
push 0x40e
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x650], 0x104
mov dword [ebp - 0x64c], 0x208
mov dword [ebp - 0x640], edi
call fcn.0100cd82
cmp dword [ebp - 0x654], edi
je 0x103f409
cmp ebx, edi
jne 0x103f413
mov esi, 0x80070057
jmp 0x103f68c
cmp esi, edi
je 0x103f438
cmp word [esi], di
je 0x103f438
lea eax, [ebp - 0x640]
push eax
push 0x410
push esi
call fcn.010322f5
mov esi, eax
cmp esi, edi
jl 0x103f68c
xor eax, eax
cmp dword [ebp - 0x640], edi
sete al
mov dword [ebp - 0x658], eax
lea eax, [ebp - 0x634]
push eax
push 0xf003f
push edi
push 0x1023c9c
push ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jle 0x103f470
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x103f68c
mov dword [ebp - 0x63c], edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x63c]
mov dword [ebp - 0x650], 0x104
push dword [ebp - 0x634]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
cmp eax, edi
mov ebx, 0xffff
jle 0x103f4be
and eax, ebx
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x103f5fa
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x61c]
push eax
push edi
push 2
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x634]
mov dword [ebp - 0x64c], 0x208
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
cmp eax, edi
jle 0x103f502
and eax, ebx
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x103f5fa
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x654]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x103f5fa
cmp dword [ebp - 0x658], edi
jne 0x103f5a6
lea eax, [ebp - 0x638]
push eax
push 2
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x634]
mov dword [ebp - 0x638], edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jle 0x103f55d
and eax, ebx
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x103f590
mov eax, dword [ebp - 0x640]
add eax, 2
push eax
push dword [ebp - 0x644]
push 1
push edi
push edi
push dword [ebp - 0x638]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
cmp eax, edi
jle 0x103f58e
and eax, ebx
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 0x638], edi
je 0x103f5fa
push dword [ebp - 0x638]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x103f5fa
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, edi
je 0x103f5c4
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
call fcn.01041f49
mov ebx, eax
jmp 0x103f5c6
xor ebx, ebx
cmp ebx, edi
je 0x103f5d5
mov ecx, ebx
call fcn.01041fa0
mov esi, eax
jmp 0x103f5da
mov esi, 0x8007000e
cmp esi, edi
jl 0x103f5ee
push ebx
lea ecx, [ebp - 0x630]
call fcn.0100d227
mov esi, eax
xor ebx, ebx
cmp ebx, edi
je 0x103f5fa
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
inc dword [ebp - 0x63c]
cmp esi, edi
jge 0x103f480
cmp esi, 0x80070103
jne 0x103f612
xor esi, esi
lea ecx, [ebp - 0x630]
call fcn.01019374
test eax, eax
jne 0x103f680
lea eax, [ebp - 0x62c]
mov ecx, eax
mov dword [ebp - 0x648], eax
call fcn.0100bb35
mov dword [ebp - 0x644], eax
cmp dword [ebp - 0x648], edi
je 0x103f680
mov ecx, dword [ebp - 0x644]
xor eax, eax
cmp ecx, dword [ebp - 0x648]
sete al
cmp eax, edi
jne 0x103f680
mov eax, ecx
add ecx, 0x10
neg eax
push edi
sbb eax, eax
push edi
and eax, ecx
push dword [eax + 4]
push dword [ebp - 0x634]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
lea ecx, [ebp - 0x648]
call fcn.0100cfe2
jmp 0x103f63a
push dword [ebp - 0x634]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea ecx, [ebp - 0x630]
call fcn.0100cdf3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100327d
leave
ret 0xc