Function at 0x4105f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512491
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
or esi, 0xffffffff
cmp dword [0x578c00], 0
mov dword [ebp - 4], 1
je 0x410798
cmp dword [0x578c04], 0
je 0x410798
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x3f0]
push 0x578c68
push eax
call fcn.00402a80
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004026b0
mov edx, dword [ebp - 0x3f0]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41068a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3e8], eax
mov ecx, dword [0x578c04]
push 0
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.00425fe0
push dword [ebp - 0x3e8]
lea ecx, [ebp + 8]
call fcn.004027b0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x3f0]
push 0x578c68
push eax
call fcn.00402a80
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.004026b0
mov edx, dword [ebp - 0x3f0]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410712
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3ec], eax
mov ecx, dword [0x578c04]
push 0
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 5
call fcn.00425fe0
push dword [ebp - 0x3ec]
lea ecx, [ebp + 0xc]
call fcn.004027b0
mov edx, dword [ebp - 0x3ec]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410775
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3e8]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410798
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5771f0]
xor ebx, ebx
cmp byte [0x578c08], bl
mov ecx, 0x5771f0
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3ec], eax
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 6
je 0x410835
cmp byte [0x57203c], 0
jne 0x410835
mov eax, dword [0x578cd8]
cmp dword [eax - 0xc], 0
jne 0x4107e4
mov ebx, SysReAllocStringLen
jmp 0x410835
push 0x52a1a0
lea eax, [ebp - 0x3f0]
push 0x578cd8
push eax
mov ebx, SysReAllocStringLen
call fcn.00402b40
add esp, 0xc
push eax
lea ecx, [ebp - 0x3ec]
mov byte [ebp - 4], 7
call fcn.004026b0
mov edx, dword [ebp - 0x3f0]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410835
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x404], 0
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
mov byte [ebp - 4], 8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3f0], eax
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
mov byte [ebp - 4], 9
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3e8], eax
mov edi, str.Software_
shr edi, 0x10
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x410], edi
mov eax, str.Software_
test edi, edi
jne 0x410a30
movzx edi, ax
push 0
push edi
call fcn.00403070
add esp, 8
test eax, eax
je 0x4108c5
push edi
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00408b00
mov edi, dword [ebp - 0x410]
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x3f4]
push eax
mov byte [ebp - 4], 0xb
call fcn.00402a80
push 0x578c74
push eax
lea eax, [ebp - 0x3fc]
push eax
mov byte [ebp - 4], 0xc
call fcn.00402a80
push 0x52a1a0
push eax
lea eax, [ebp - 0x400]
push eax
mov byte [ebp - 4], 0xd
call fcn.00402b40
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x3f8]
push eax
mov byte [ebp - 4], 0xe
call fcn.00402a80
add esp, 0x30
push eax
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 0xf
call fcn.004026b0
mov edx, dword [ebp - 0x3f8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410960
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x400]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410983
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3fc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4109a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3f4]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4109c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3e8]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4109ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3e8], eax
mov byte [ebp - 4], 0x10
test edi, edi
jne 0x410a45
mov eax, str.Software_
movzx edi, ax
push 0
push edi
call fcn.00403070
add esp, 8
test eax, eax
je 0x410a55
push edi
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00408b00
jmp 0x410a55
push str.Software_
lea ecx, [ebp - 0x3e8]
call fcn.004027b0
jmp 0x4108cb
push str.Software_
lea ecx, [ebp - 0x3e8]
call fcn.004027b0
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x3f8]
push eax
mov byte [ebp - 4], 0x11
call fcn.00402a80
push 0x578c74
push eax
lea eax, [ebp - 0x400]
push eax
mov byte [ebp - 4], 0x12
call fcn.00402a80
push 0x52a1a0
push eax
lea eax, [ebp - 0x3fc]
push eax
mov byte [ebp - 4], 0x13
call fcn.00402b40
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x3f4]
push eax
mov byte [ebp - 4], 0x14
call fcn.00402a80
add esp, 0x30
lea ecx, [ebp - 0x40c]
push 0
push 0
push 0x20006
push 0
push 0
push dword [eax]
push ebx
call fcn.0040d2c0
mov edx, dword [ebp - 0x3f4]
test eax, eax
setne bl
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410af6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3fc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410b19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x400]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x12
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410b3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3f8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410b5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3e8]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410b82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x410be1
call fcn.004117a0
test al, al
jne 0x410bd2
mov edx, dword [0x578ad4]
xor ecx, ecx
lea ecx, [ecx]
mov eax, dword [ebp + ecx*4 - 0x3d4]
add eax, dword [ebp + ecx*4 - 0x3d8]
add ecx, 4
add eax, dword [ebp + ecx*4 - 0x3ec]
add eax, dword [ebp + ecx*4 - 0x3f0]
imul eax, eax, 0x47
add edx, eax
cmp ecx, 0x3d0
jb 0x410ba0
mov dword [0x578ad4], edx
mov edi, dword [ebp - 0x40c]
mov byte [ebp - 0x3e1], 0
jmp 0x410c53
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x40c]
push 4
mov dword [ebp - 0x3f4], eax
lea eax, [ebp - 0x3f4]
push eax
push 4
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x410c2d
test edi, edi
je 0x410c1a
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x408], 0
mov byte [ebp - 0x3e1], 0
jmp 0x410c53
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x410c42
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x408], 0
mov byte [ebp - 0x3e1], 1
mov edx, dword [ebp - 0x3f0]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410c76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x410c7d
push edi
call ebx
mov edx, dword [ebp - 0x3ec]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410ca0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410cc0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x410ce1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x3e1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret