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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1008028]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01003af5
xor ebx, ebx
cmp eax, ebx
jne 0x100402a
push esi
call fcn.0100229c
cmp eax, ebx
jne 0x100402a
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [esi + 0x30]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x1004027
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x1004027
lea ecx, [ebp - 0x28]
push ecx
push ebx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1003dcd
push dword [esi + 0x1c]
push dword [esi + 0x34]
push 0x1001700
call fcn.010025f4
test eax, eax
jne 0x1003dcd
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1004029
mov eax, dword [esi + 8]
cmp eax, 2
jbe 0x1003ff0
cmp eax, 3
je 0x1003f36
jbe 0x1004019
cmp eax, 5
jbe 0x1003f03
cmp eax, 7
jne 0x1004019
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [esi + 0x40]
push eax
mov dword [ebp - 0x18], ebx
call edi
push dword [esi + 0x3c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ebx
call edi
mov dword [ebp - 0x28], eax
add eax, 2
push 2
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
mov eax, dword [esi + 0x3c]
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], eax
jne 0x1003e9d
push 8
pop edi
jmp 0x1004027
lea eax, [esi + 0x40]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1003e73
and dword [ebp - 0x14], 0
cmp eax, dword [ebp - 0x24]
je 0x1003ea7
push eax
call edi
cmp eax, dword [ebp - 0x20]
pop ecx
jne 0x1003e6c
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
and word [eax], 0
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.msvcrt.dll_wcscat]
push ebx
call edi
lea ebx, [ebx + eax*2 + 2]
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x1003eae
cmp dword [ebp - 0x14], 0
jne 0x1003eae
mov ecx, dword [ebp - 0x20]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x24], eax
push eax
call edi
test eax, eax
pop ecx
ja 0x1003e3d
jmp 0x1003eae
mov dword [ebp - 0x18], 1
lea eax, [esi + 0x40]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1003ef4
mov ebx, dword [ebp - 0x10]
add ebx, 4
sub ebx, dword [ebp - 0x10]
sar ebx, 1
shl ebx, 1
push ebx
push dword [ebp - 0x10]
push dword [esi + 8]
push 0
push dword [esi + 0x34]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x100401e
inc ebx
inc ebx
cmp dword [ebp - 0x18], 0
je 0x1003ec7
mov edi, 0xc352
jmp 0x1003ee5
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x3c]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.msvcrt.dll_wcstoul]
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x10
test eax, eax
ja 0x1004019
push 4
lea eax, [ebp - 0x20]
push eax
jmp 0x1004005
push dword [esi + 0x3c]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
mov ecx, eax
mov dword [ebp - 0x28], eax
shr ecx, 1
and eax, 1
add ecx, eax
push 1
push ecx
call dword [sym.imp.msvcrt.dll_calloc]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1003e35
mov word [ebp - 8], bx
mov dword [ebp - 0x10], ebx
mov ebx, dword [esi + 0x3c]
jmp 0x1003fc0
mov ax, word [ebx]
inc ebx
inc ebx
push ebx
mov word [ebp - 0xc], ax
call edi
test eax, eax
pop ecx
jbe 0x1003f8c
mov ax, word [ebx]
inc ebx
mov word [ebp - 0xa], ax
inc ebx
jmp 0x1003f92
mov word [ebp - 0xa], 0x30
push 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
call edi
add esp, 0x10
test eax, eax
ja 0x1003fe9
mov edx, dword [ebp - 0x10]
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 0x10]
mov byte [ecx + edx], al
push ebx
call edi
test eax, eax
pop ecx
ja 0x1003f70
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi + 8]
push 0
push dword [esi + 0x34]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [ebp - 0x14]
jmp 0x1003ee8
mov edi, 0xc352
jmp 0x1003fe1
push dword [esi + 0x3c]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esi + 0x3c]
mov dword [ebp - 0x28], eax
push dword [esi + 8]
push ebx
push dword [esi + 0x34]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x100401e
mov edi, 0xc352
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01006c92
leave
ret 0xc