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

Disassembly:
push 0x454
mov eax, 0x4343fa
call fcn.0041c5c3
mov byte [ebp - 0x429], dl
mov ebx, ecx
mov dword [ebp - 0x438], ebx
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x414], 7
mov esi, 0x3f2
mov dword [ebp - 0x418], edi
mov word [ebp - 0x428], ax
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x460]
call fcn.00402305
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x428]
mov eax, dword [ebp - 0x450]
add eax, eax
push 0xffffffffffffffff
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x460]
push edi
push eax
call fcn.0040265e
push edi
push 1
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 3
call fcn.0040276a
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
mov dword [ebp - 0x448], edi
cmovae eax, dword [ebp - 0x428]
cmp ebx, 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x440], eax
je 0x403481
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00402305
mov ecx, edi
call fcn.004163ba
mov edi, eax
add esp, 0x18
test edi, edi
je 0x403386
cmp edi, 2
jne 0x403590
xor eax, eax
xor edi, edi
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.0041bd90
add esp, 0xc
mov dword [ebp - 0x444], 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 + 8]
jne 0x4033d3
push 0x2021f
jmp 0x4033d8
push 0x2001f
cmp dword [ebp + 0x1c], 8
push edi
cmovae eax, dword [ebp + 8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
test esi, esi
jne 0x403478
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x444]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x434]
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push edi
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp - 0x429], 0
jne 0x403433
test eax, eax
jne 0x403433
push 0x50
pop esi
jmp 0x403470
push dword [ebp - 0x43c]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push dword [ebp - 0x440]
cmovae eax, dword [ebp + 0x20]
push 1
push edi
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x40358e
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40358e
cmp esi, 0x50
je 0x40358e
cmp dword [ebp - 0x438], 0
je 0x40358e
sub esp, 0x18
lea eax, [ebp + 8]
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 0x4034b6
cmp edi, 2
jne 0x403590
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call fcn.0041bd90
add esp, 0xc
mov dword [ebp - 0x438], 0x400
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x430]
lea eax, [ebp + 8]
mov dword [ebp - 0x434], 1
cmovae eax, dword [ebp + 8]
push ecx
push 0x2021f
push 0
push eax
push SysReAllocString
call ebx
mov edi, eax
test edi, edi
jne 0x403589
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x438]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x434]
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push edi
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp - 0x429], 0
jne 0x40354f
test eax, eax
jne 0x40354f
push 0x50
pop edi
jmp 0x403589
push dword [ebp - 0x43c]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push dword [ebp - 0x440]
cmovae eax, dword [ebp + 0x20]
push 1
push 0
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x403589
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 - 0x428]
xor esi, esi
push ebx
inc esi
push esi
call fcn.0040276a
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.0040276a
push ebx
push esi
lea ecx, [ebp + 0x20]
call fcn.0040276a
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.0040276a
mov eax, edi
call fcn.0041c572
ret