Function at 0x5494f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x647420
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x699fe8]
xor eax, esp
mov dword [esp + 0x84], eax
push ebp
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb0]
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x90]
test eax, eax
je 0x5497bd
cmp byte [ebp + 0x511], 0
je 0x549588
cmp byte [ebp + 0x512], 0
jne 0x549887
mov edi, ebp
call fcn.0054ecf0
push 0
push 1
lea esi, [ebp + 0x54c]
mov byte [ebp + 0x57c], 1
call fcn.005d66e0
neg eax
sbb eax, eax
neg eax
jmp 0x549889
lea ecx, [ebp + 0x7c]
push ecx
mov edi, str.SOFTWARE_
lea esi, [esp + 0x28]
call fcn.00445160
add esp, 4
mov edi, eax
lea eax, [esp + 0x78]
mov dword [esp + 0xa0], 0
call fcn.005b09f0
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jb 0x5495cb
mov edx, dword [esp + 0x28]
push edx
call fcn.0061c19a
add esp, 4
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
lea eax, [esp + 0x14]
mov byte [esp + 0xa0], 3
push eax
mov edi, ebx
mov byte [esp + 0x18], 0x5c
call fcn.0045bbf0
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x5497c4
push eax
xor ecx, ecx
lea esi, [esp + 0x44]
mov edx, ebx
call fcn.0042fb60
push eax
mov edi, 0x66f784
lea esi, [esp + 0x28]
mov byte [esp + 0xa4], 4
call fcn.00445160
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0xac], 5
call fcn.0041dc70
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jb 0x54965f
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0061c19a
add esp, 4
mov byte [esp + 0xa0], 3
cmp dword [esp + 0x58], edi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jb 0x54968f
mov edx, dword [esp + 0x44]
push edx
call fcn.0061c19a
add esp, 4
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
add ecx, 1
lea esi, [esp + 0x44]
mov edx, ebx
call fcn.0042fb60
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xac], 6
call fcn.00403e20
mov byte [esp + 0xa0], 3
cmp dword [esp + 0x58], edi
jb 0x5496d4
mov eax, dword [esp + 0x44]
push eax
call fcn.0061c19a
add esp, 4
mov esi, 0x10
cmp dword [esp + 0x90], esi
mov eax, dword [esp + 0x7c]
jae 0x5496ea
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x18]
push ecx
push 0x20006
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5497d7
cmp dword [esp + 0x90], esi
mov eax, dword [esp + 0x7c]
jae 0x54971b
lea eax, [esp + 0x7c]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0x670c4c
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x5497d7
cmp byte [ebp + 0x510], 0
je 0x54977f
mov edi, ebp
call fcn.0054ec60
push 1
lea esi, [ebp + 0x54c]
push 0
call fcn.005d62e0
push 5
push 0xc
call fcn.005d62e0
push 1
push 0
call fcn.005d62e0
mov esi, 0x10
cmp dword [esp + 0x74], esi
jb 0x549792
mov edx, dword [esp + 0x60]
push edx
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x90], esi
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jb 0x5497bd
mov eax, dword [esp + 0x7c]
push eax
call fcn.0061c19a
add esp, 4
xor al, al
jmp 0x549889
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0x68]
call fcn.00403e20
jmp 0x5496d9
cmp dword [esp + 0x74], esi
mov eax, dword [esp + 0x60]
jae 0x5497e5
lea eax, [esp + 0x60]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0x20]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp + 0x510], 0
je 0x549849
mov edi, ebp
call fcn.0054ec60
push 1
lea esi, [ebp + 0x54c]
push 0
call fcn.005d62e0
push 5
push 0xc
call fcn.005d62e0
push 1
push 1
call fcn.005d62e0
mov esi, 0x10
cmp dword [esp + 0x74], esi
jb 0x54985c
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x90], esi
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jb 0x549887
mov edx, dword [esp + 0x7c]
push edx
call fcn.0061c19a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0061efd1
add esp, 0x94
ret 0x10