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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x11c], eax
mov esi, edx
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x130], eax
mov edi, 0x104
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x12c], eax
xor eax, eax
push edi
push eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x114], ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 0x120], edi
add esp, 0xc
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4061fd
sub edi, ecx
xor ebx, ebx
mov ecx, dword [ebp - 0x124]
inc ebx
call fcn.00403d45
test eax, eax
jne 0x406222
mov esi, 0x8007000e
jmp 0x40637e
mov eax, dword [ebp - 0x124]
cmp dword [eax + 0x1c], 7
jge 0x406238
mov esi, 0x8007139f
jmp 0x40637e
test esi, esi
je 0x406379
cmp dword [ebp - 0x11c], 0
je 0x406379
mov eax, dword [eax + 0x24]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x406276
test cx, cx
je 0x406272
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x406276
add esi, 4
add eax, 4
test cx, cx
jne 0x406250
xor eax, eax
jmp 0x40627a
sbb eax, eax
or eax, ebx
test eax, eax
je 0x406288
mov esi, 0x80070005
jmp 0x40637e
lea ecx, [ebp - 0x118]
call fcn.0040a924
mov esi, eax
test esi, esi
jne 0x40637e
lea eax, [ebp - 0x110]
push eax
push 0x2001f
push esi
push 0x402738
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4062df
lea eax, [ebp - 0x110]
push eax
push 0x402738
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x406487
lea eax, [ebp - 0x10c]
push eax
push 0x2001f
push 0
push dword [ebp - 0x11c]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406324
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x11c]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x406487
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push 0x4028fc
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4063d7
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40640a
test byte [ebp + 0x18], 1
je 0x40640a
mov esi, 0x80070057
cmp dword [ebp - 0x10c], 0
je 0x406393
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x110], 0
je 0x4063a8
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4063b9
push dword [ebp - 0x130]
call fcn.00404339
mov esi, eax
mov ecx, dword [ebp - 0x124]
call fcn.00403d59
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040de60
leave
ret 0x14
mov eax, dword [ebp + 0x18]
and eax, ebx
jne 0x4063e1
push 0xe
pop edi
test eax, eax
mov eax, dword [ebp - 0x114]
jne 0x4063f0
mov eax, 0x402918
push edi
push eax
push ebx
push 0
push 0x4028fc
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x406487
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push dword [ebp - 0x114]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406448
xor ebx, ebx
jmp 0x40637e
mov edi, dword [ebp - 0x12c]
test edi, edi
jne 0x406457
mov edi, 0x40246c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40645c
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
push ebx
push 0
push dword [ebp - 0x114]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40637e
jg 0x406490
mov esi, eax
jmp 0x40637e
movzx esi, ax
or esi, 0x80070000
jmp 0x40637e