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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1046190]
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]
cmp edi, esi
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
je 0x10433bb
cmp eax, esi
jne 0x104306d
cmp ecx, esi
je 0x10433bb
push ebx
push edi
push 0x100a564
mov ebx, 0x103
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01028b64
add esp, 0x10
test eax, eax
jl 0x10433ba
push edi
push dword [0x10472a0]
lea eax, [ebp - 0x414]
push 0x100d130
push ebx
push eax
call fcn.01028b64
add esp, 0x14
test eax, eax
jl 0x104314b
lea eax, [ebp - 0x420]
push eax
xor edi, edi
inc edi
push edi
push esi
lea eax, [ebp - 0x414]
push eax
push dword [0x104941c]
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104314b
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
push 0x10078b4
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 0x104313f
cmp dword [ebp - 0x428], edi
jne 0x104313f
lea eax, [ebp - 0x414]
push 0x10024b0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104313f
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 0x10433ba
mov eax, dword [ebp - 0x418]
cmp eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x420], 1
je 0x1043374
cmp word [eax], 0x7b
jne 0x1043374
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
mov ebx, 0x10021cc
push ebx
push dword [ebp - 0x424]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1043258
cmp dword [ebp - 0x420], 1
jne 0x1043258
cmp dword [ebp - 0x430], esi
jne 0x10431ff
lea eax, [ebp - 0x20c]
push eax
call fcn.0104272b
test eax, eax
je 0x1043286
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01042674
test eax, eax
jne 0x1043243
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1043219
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x100d0e8
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 0x104324c
jmp 0x104326b
mov eax, dword [ebp - 0x418]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1043261
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 0x100d110
push 0x103
push eax
mov dword [ebp - 0x428], esi
call fcn.01028b64
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 0x1043374
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 0x1043368
cmp dword [ebp - 0x420], 1
jne 0x1043368
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 0x1043368
push 4
lea eax, [ebp - 0x41c]
push eax
push 4
push esi
push 0x100ad50
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 0x10433ae
mov eax, dword [ebp - 0x42c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1043385
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x42c]
push 1
push esi
push 0x100a550
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.01031a01
leave
ret 0xc