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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x430], esi
cmp edi, esi
je 0x103cc18
cmp eax, esi
jne 0x103c8c8
cmp ecx, esi
je 0x103cc18
push ebx
push edi
push 0x1006850
mov ebx, 0x103
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01027f64
add esp, 0x10
test eax, eax
jl 0x103cc17
push edi
push dword [0x103f06c]
lea eax, [ebp - 0x414]
push 0x100c388
push ebx
push eax
call fcn.01027f64
add esp, 0x14
test eax, eax
jl 0x103c9a6
lea eax, [ebp - 0x420]
push eax
xor edi, edi
inc edi
push edi
push esi
lea eax, [ebp - 0x414]
push eax
push dword [0x10416f8]
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103c9a6
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
push 0x100669c
push dword [ebp - 0x420]
mov dword [ebp - 0x41c], 0x208
mov dword [ebp - 0x428], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103c99a
cmp dword [ebp - 0x428], edi
jne 0x103c99a
lea eax, [ebp - 0x414]
push 0x1001e30
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x103c99a
mov dword [ebp - 0x430], edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x103cc17
mov eax, dword [ebp - 0x418]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x420], 1
cmp eax, esi
je 0x103cbd1
push 0x7b
pop ecx
cmp cx, word [eax]
jne 0x103cbd1
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
mov ebx, 0x1001b94
push ebx
push dword [ebp - 0x424]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103cab5
cmp dword [ebp - 0x420], 1
jne 0x103cab5
cmp dword [ebp - 0x430], esi
jne 0x103ca5c
lea eax, [ebp - 0x20c]
push eax
call fcn.0103c65f
test eax, eax
je 0x103cae3
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103c5a8
test eax, eax
jne 0x103caa0
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103ca76
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x100c310
push dword [ebp - 0x424]
call edi
mov eax, dword [ebp - 0x418]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103caa9
jmp 0x103cac8
mov eax, dword [ebp - 0x418]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103cabe
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x418]
push 1
push esi
push ebx
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push 0x100c368
push 0x103
push eax
mov dword [ebp - 0x428], esi
call fcn.01027f64
add esp, 0x10
lea eax, [ebp - 0x428]
push eax
push 1
push esi
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x80000000
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103cbd1
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
push esi
push dword [ebp - 0x428]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103cbc5
cmp dword [ebp - 0x420], 1
jne 0x103cbc5
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x418], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x103cbc5
push 4
lea eax, [ebp - 0x41c]
push eax
push 4
push esi
push 0x100c338
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], 1
call edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x42c], esi
je 0x103cc0b
mov eax, dword [ebp - 0x42c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x103cbe2
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x42c]
push 1
push esi
push 0x100683c
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret 0xc