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

Disassembly:
push 0x448
mov eax, 0x439495
call fcn.0041f563
mov ebx, edx
mov dword [ebp - 0x44c], 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
mov edx, ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x440]
call fcn.0040f27b
push eax
lea ecx, [ebp - 0x428]
call fcn.0040a108
push edi
push 1
lea ecx, [ebp - 0x440]
call fcn.00402cb9
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
mov dword [ebp - 0x450], edi
cmovae eax, dword [ebp - 0x428]
push eax
call fcn.0041ccbb
cmp ebx, 1
mov dword [ebp - 0x450], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ecx
je 0x4124ce
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 0x4123db
cmp edi, 2
jne 0x4125d7
xor eax, eax
xor edi, edi
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.0041ed30
add esp, 0xc
mov dword [ebp - 0x454], 0x400
mov dword [ebp - 0x448], 4
call fcn.0041853d
lea ecx, [ebp - 0x444]
cmp eax, 1
push ecx
lea eax, [ebp + 0xc]
jne 0x41242a
push 0x2021f
jmp 0x41242f
push 0x2001f
cmp dword [ebp + 0x20], 8
push edi
cmovae eax, dword [ebp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
test esi, esi
jne 0x4124c5
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x448]
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push edi
push eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp + 8], 0
jne 0x412483
test eax, eax
jne 0x412483
push 0x50
pop esi
jmp 0x4124bd
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x450]
push 4
push ecx
push 4
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push edi
push eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x4125d5
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4125d5
cmp esi, 0x50
je 0x4125d5
cmp dword [ebp - 0x44c], 0
je 0x4125d5
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 0x412503
cmp edi, 2
jne 0x4125d7
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call fcn.0041ed30
add esp, 0xc
mov dword [ebp - 0x44c], 0x400
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x444]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x448], 4
cmovae eax, dword [ebp + 0xc]
push ecx
push 0x2021f
push 0
push eax
push SysReAllocString
call ebx
mov edi, eax
test edi, edi
jne 0x4125d0
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x44c]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x448]
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push edi
push eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp + 8], 0
jne 0x412599
test eax, eax
jne 0x412599
push 0x50
pop edi
jmp 0x4125d0
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x450]
push 4
push ecx
push 4
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x4125d0
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
cmovne esi, edi
mov edi, esi
xor ebx, ebx
lea ecx, [ebp - 0x428]
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