Function at 0x4133f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x78]
call fcn.00404640
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
or eax, 1
or eax, 0x20006
push eax
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00404370
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4135cb
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
lea ecx, [ebp - 0x48]
call fcn.004046e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00404110
mov byte [ebp - 4], 2
push 0x48386c
lea ecx, [ebp - 0x90]
call fcn.00404640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00413670
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
call fcn.00404510
lea ecx, [ebp - 0x30]
call fcn.00403f50
sub eax, 1
push eax
lea ecx, [ebp - 0x30]
call fcn.00413810
push eax
lea ecx, [ebp - 0x60]
call fcn.004046e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.00404370
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00413790
push 0x483870
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00413790
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x34]
or edx, 1
or edx, 0x20006
push edx
push 0
lea ecx, [ebp - 0x48]
call fcn.00404370
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x413566
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00404510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004040d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00404510
jmp 0x41360e
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x60]
call fcn.00404370
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4135a7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00404510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004040d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00404510
jmp 0x41360e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00404510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004040d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00404510
lea ecx, [ebp - 0x78]
call fcn.00404350
shl eax, 1
push eax
lea ecx, [ebp - 0x78]
call fcn.00404370
push eax
push 1
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.00404370
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4135ff
jmp 0x41360e
mov dword [ebp - 0x24], 1
xor edx, edx
jne 0x413439
cmp dword [ebp - 0x20], 0
je 0x41361e
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x41362e
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], 0
je 0x41363a
mov byte [ebp - 0xd], 1
jmp 0x41363e
mov byte [ebp - 0xd], 0
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0x15], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00404510
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4