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

Disassembly:
push 0x438
mov eax, 0x434471
call fcn.0041c5c3
mov ebx, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x438], eax
mov dword [ebp - 4], eax
mov esi, 0x3f2
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x42c], ax
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x438]
jne 0x4036df
sub ecx, edx
sar ecx, 1
push edi
lea eax, [ecx + ecx]
mov dword [ebp - 0x440], eax
call fcn.00401140
pop ecx
push eax
push edi
lea ecx, [ebp - 0x42c]
call fcn.004026f1
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
xor edi, edi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x444], edi
cmp ebx, 1
je 0x40385d
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402305
mov ecx, edi
call fcn.004163ba
mov edi, eax
add esp, 0x18
test edi, edi
je 0x403761
cmp edi, 2
jne 0x403967
xor eax, eax
xor edi, edi
push 0x3fe
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.0041bd90
add esp, 0xc
mov dword [ebp - 0x43c], 0x400
xor esi, esi
inc esi
mov dword [ebp - 0x434], esi
call fcn.004160cf
lea ecx, [ebp - 0x430]
cmp eax, esi
push ecx
lea eax, [ebp + 0xc]
jne 0x4037ae
push 0x2021f
jmp 0x4037b3
push 0x2001f
cmp dword [ebp + 0x20], 8
push edi
cmovae eax, dword [ebp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x403854
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x434]
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push edi
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp + 8], 0
jne 0x40380f
test eax, eax
jne 0x40380f
push 0x50
pop esi
jmp 0x40384c
push dword [ebp - 0x440]
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
push dword [ebp - 0x438]
cmovae eax, dword [ebp + 0x24]
push 1
push edi
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x403965
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x403965
cmp esi, 0x50
je 0x403965
test ebx, ebx
je 0x403965
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402305
xor ecx, ecx
inc ecx
call fcn.004163ba
mov edi, eax
add esp, 0x18
test edi, edi
je 0x40388d
cmp edi, 2
jne 0x403967
xor eax, eax
xor ebx, ebx
push 0x3fe
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.0041bd90
add esp, 0xc
mov dword [ebp - 0x434], 0x400
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x430]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x43c], 1
cmovae eax, dword [ebp + 0xc]
push ecx
push 0x2021f
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x403960
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x43c]
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push ebx
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp + 8], bl
jne 0x403927
test eax, eax
jne 0x403927
push 0x50
pop edi
jmp 0x403960
push dword [ebp - 0x440]
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
push dword [ebp - 0x438]
cmovae eax, dword [ebp + 0x24]
push 1
push ebx
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x403960
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
cmovne esi, edi
mov edi, esi
xor ebx, ebx
lea ecx, [ebp - 0x42c]
push ebx
push 1
call fcn.0040276a
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0040276a
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.0040276a
mov eax, edi
call fcn.0041c572
ret