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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x420]
push edi
push eax
push edi
push 3
push edi
push edi
push edi
push 0x4012b8
xor esi, esi
mov dword [ebp - 0x420], edi
push reloc.OLEAUT32.dll_SysReAllocString
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x418df9
push ecx
lea edx, [ebp - 0x210]
call fcn.0041860c
test eax, eax
je 0x418c04
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x208
push eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], esi
push eax
lea eax, [ebp - 0x41c]
mov ebx, 0x401304
push eax
push edi
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418bce
cmp dword [ebp - 0x41c], esi
jne 0x418bce
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x418bce
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x418dfe
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x418bd7
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x420]
mov ebx, 0x2001f
push eax
push ebx
push edi
push 0x401320
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418bc7
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], edi
push eax
push ebx
push edi
push 0x4013c4
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418c6f
mov ecx, dword [ebp - 0x41c]
call fcn.0041871b
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push ebx
push edi
push 0x4013f8
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418ca6
mov ecx, dword [ebp - 0x41c]
call fcn.0041871b
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push ebx
push edi
push 0x40142c
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418cdd
mov ecx, dword [ebp - 0x41c]
call fcn.0041871b
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push ebx
push edi
push 0x401458
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418d14
mov ecx, dword [ebp - 0x41c]
call fcn.0041871b
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push ebx
push edi
push 0x401484
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418d4b
mov ecx, dword [ebp - 0x41c]
call fcn.0041871b
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push ebx
push edi
push 0x4014b4
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418d82
mov ecx, dword [ebp - 0x41c]
call fcn.0041871b
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push ebx
push edi
push 0x4014e8
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418db9
mov ecx, dword [ebp - 0x41c]
call fcn.0041871b
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push ebx
push edi
push 0x401528
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418bbb
mov ecx, dword [ebp - 0x41c]
call fcn.0041871b
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x418bbb
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret