Function at 0x40613b
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 fcn.004034e0
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 0x4061ba
sub edi, ecx
xor ebx, ebx
mov ecx, dword [ebp - 0x124]
inc ebx
call fcn.00403cc2
test eax, eax
jne 0x4061df
mov esi, 0x8007000e
jmp 0x40633b
mov eax, dword [ebp - 0x124]
cmp dword [eax + 0x1c], 7
jge 0x4061f5
mov esi, 0x8007139f
jmp 0x40633b
test esi, esi
je 0x406336
cmp dword [ebp - 0x11c], 0
je 0x406336
mov eax, dword [eax + 0x24]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x406233
test cx, cx
je 0x40622f
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x406233
add esi, 4
add eax, 4
test cx, cx
jne 0x40620d
xor eax, eax
jmp 0x406237
sbb eax, eax
or eax, ebx
test eax, eax
je 0x406245
mov esi, 0x80070005
jmp 0x40633b
lea ecx, [ebp - 0x118]
call fcn.0040a7f6
mov esi, eax
test esi, esi
jne 0x40633b
lea eax, [ebp - 0x110]
push eax
push 0x2001f
push esi
push 0x402728
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40629c
lea eax, [ebp - 0x110]
push eax
push 0x402728
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x406446
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 0x4062e1
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 0x406446
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push 0x4028ec
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406396
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4063c9
test byte [ebp + 0x18], 1
je 0x4063c9
mov esi, 0x80070057
cmp dword [ebp - 0x10c], 0
je 0x406350
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x110], 0
je 0x406365
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x406376
push dword [ebp - 0x130]
call fcn.004042d0
mov esi, eax
mov ecx, dword [ebp - 0x124]
call fcn.00403cde
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dd40
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
and eax, ebx
jne 0x4063a0
push 0xe
pop edi
test eax, eax
mov eax, dword [ebp - 0x114]
jne 0x4063af
mov eax, 0x402908
push edi
push eax
push ebx
push 0
push 0x4028ec
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x406446
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 0x406407
xor ebx, ebx
jmp 0x40633b
mov edi, dword [ebp - 0x12c]
test edi, edi
jne 0x406416
mov edi, 0x40245c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40641b
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 0x40633b
jg 0x40644f
mov esi, eax
jmp 0x40633b
movzx esi, ax
or esi, 0x80070000
jmp 0x40633b