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

Disassembly:
push 0x438
mov eax, 0x437554
call fcn.0041f563
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 0x403c2d
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.00402bbc
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 0x403dab
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040277f
mov ecx, edi
call fcn.00418828
mov edi, eax
add esp, 0x18
test edi, edi
je 0x403caf
cmp edi, 2
jne 0x403eb5
xor eax, eax
xor edi, edi
push 0x3fe
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.0041ed30
add esp, 0xc
mov dword [ebp - 0x43c], 0x400
xor esi, esi
inc esi
mov dword [ebp - 0x434], esi
call fcn.0041853d
lea ecx, [ebp - 0x430]
cmp eax, esi
push ecx
lea eax, [ebp + 0xc]
jne 0x403cfc
push 0x2021f
jmp 0x403d01
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 0x403da2
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 0x403d5d
test eax, eax
jne 0x403d5d
push 0x50
pop esi
jmp 0x403d9a
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 0x403eb3
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x403eb3
cmp esi, 0x50
je 0x403eb3
test ebx, ebx
je 0x403eb3
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040277f
xor ecx, ecx
inc ecx
call fcn.00418828
mov edi, eax
add esp, 0x18
test edi, edi
je 0x403ddb
cmp edi, 2
jne 0x403eb5
xor eax, eax
xor ebx, ebx
push 0x3fe
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.0041ed30
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 0x403eae
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 0x403e75
test eax, eax
jne 0x403e75
push 0x50
pop edi
jmp 0x403eae
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 0x403eae
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.00402cb9
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00402cb9
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.00402cb9
mov eax, edi
call fcn.0041f512
ret