Function at 0x410d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512572
mov eax, dword fs:[0]
push eax
mov eax, 0x30f0
call fcn.004f2220
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 ebx, 0xffffffff
cmp dword [0x578c00], 0
mov dword [ebp - 4], 2
je 0x410f67
cmp dword [0x578c04], 0
je 0x410f67
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x30e0]
push 0x578c68
push eax
call fcn.00402a80
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004026b0
mov edx, dword [ebp - 0x30e0]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410dae
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 - 0x30e8], eax
mov ecx, dword [0x578c04]
push 0
lea eax, [ebp - 0x30e8]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 4
call fcn.00425fe0
push dword [ebp - 0x30e8]
lea ecx, [ebp + 8]
call fcn.004027b0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x30e0]
push 0x578c68
push eax
call fcn.00402a80
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.004026b0
mov edx, dword [ebp - 0x30e0]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410e36
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 - 0x30e4], eax
mov ecx, dword [0x578c04]
push 0
lea eax, [ebp - 0x30e4]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 6
call fcn.00425fe0
push dword [ebp - 0x30e4]
lea ecx, [ebp + 0xc]
call fcn.004027b0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x30e0]
push 0x578c68
push eax
call fcn.00402a80
add esp, 0xc
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 7
call fcn.004026b0
mov edx, dword [ebp - 0x30e0]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410ebe
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 - 0x30dc], eax
mov ecx, dword [0x578c04]
push 0
lea eax, [ebp - 0x30dc]
push eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 8
call fcn.00425fe0
push dword [ebp - 0x30dc]
lea ecx, [ebp + 0x10]
call fcn.004027b0
mov edx, dword [ebp - 0x30dc]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410f21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30e4]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410f44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30e8]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410f67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp byte [0x578c08], al
sete al
add eax, 0x80000001
mov dword [ebp - 0x30e4], eax
call fcn.004117d0
test al, al
jne 0x410ff3
xor eax, eax
push 0x30c0
push eax
mov word [ebp - 0x30d4], ax
lea eax, [ebp - 0x30d2]
push eax
call fcn.004f2250
add esp, 0xc
xor edi, edi
xor esi, esi
xor eax, eax
lea ebx, [ebx]
test edi, edi
je 0x410fd8
test eax, eax
je 0x410fd8
lea ecx, [esi + eax]
lea edx, [ebp - 0x30d4]
lea edx, [edx + ecx*2]
lea ecx, [esi + eax]
mov cx, word [ebp + ecx*2 - 0x3172]
inc cx
add cx, word [edx - 2]
mov word [edx], cx
inc eax
cmp eax, 0x4f
jl 0x410fb0
add esi, 0x4f
inc edi
cmp esi, 0x1861
jl 0x410fa8
movsx eax, word [ebp - 0x14]
mov dword [0x578ad4], eax
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30e8], eax
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 9
je 0x4110fc
call fcn.00411720
test al, al
jne 0x41108e
mov esi, dword [0x578ad4]
test esi, esi
je 0x41108e
lea ebx, [ebx]
mov ecx, esi
and ecx, 0x80000001
jns 0x41103f
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x41104c
mov eax, esi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x411053
lea esi, [esi*2 + 1]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*2]
sub ecx, eax
mov dword [0x578ad4], esi
sub ecx, 0
je 0x41107d
sub ecx, 2
je 0x411080
dec ecx
je 0x411081
jmp 0x41108a
add esi, 2
inc esi
add esi, 2
mov dword [0x578ad4], esi
test esi, esi
jne 0x411030
cmp byte [0x57203c], 0
jne 0x4110fc
mov eax, dword [0x578cd8]
cmp dword [eax - 0xc], 0
jne 0x4110a9
mov edi, SysReAllocStringLen
jmp 0x411102
push 0x52a1a0
lea eax, [ebp - 0x30e0]
push 0x578cd8
push eax
mov edi, SysReAllocStringLen
call fcn.00402b40
add esp, 0xc
push eax
lea ecx, [ebp - 0x30e8]
mov byte [ebp - 4], 0xa
call fcn.004026b0
mov edx, dword [ebp - 0x30e0]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411102
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x411102
mov edi, dword [ebp - 0x30e4]
mov dword [ebp - 0x30f8], 0
mov dword [ebp - 0x30f4], 0
mov dword [ebp - 0x30f0], 0
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
mov byte [ebp - 4], 0xb
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30dc], eax
mov eax, str.Software_
mov byte [ebp - 4], 0xc
test eax, 0xffff0000
jne 0x41116b
movzx esi, ax
push 0
push esi
call fcn.00403070
add esp, 8
test eax, eax
je 0x41117b
push esi
push eax
lea ecx, [ebp - 0x30dc]
call fcn.00408b00
jmp 0x41117b
push str.Software_
lea ecx, [ebp - 0x30dc]
call fcn.004027b0
lea eax, [ebp - 0x30dc]
push eax
lea eax, [ebp - 0x30e8]
push eax
lea eax, [ebp - 0x30ec]
push eax
mov byte [ebp - 4], 0xd
call fcn.00402a80
push 0x578c74
push eax
lea eax, [ebp - 0x30fc]
push eax
mov byte [ebp - 4], 0xe
call fcn.00402a80
push 0x52a1a0
push eax
lea eax, [ebp - 0x30e4]
push eax
mov byte [ebp - 4], 0xf
call fcn.00402b40
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x30e0]
push eax
mov byte [ebp - 4], 0x10
call fcn.00402a80
add esp, 0x30
lea ecx, [ebp - 0x30f8]
push 0
push 0
push 0x20006
push 0
push 0
push dword [eax]
push edi
call fcn.0040d2c0
mov esi, dword [ebp - 0x30e0]
add esi, 0xfffffff0
mov edi, eax
lea ecx, [esi + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411219
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30e4]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41123c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30fc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41125f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30ec]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411282
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30dc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4112a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x30f8]
test edi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x411378
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41136f
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x30dc], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4112d6
sub edx, dword [ebp - 0x30dc]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41136f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x411313
push esi
call edi
xor esi, esi
mov ecx, dword [0x578ad4]
mov eax, ecx
imul eax, ecx
and eax, 0x8000000f
jns 0x41132a
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xe
jne 0x411366
mov eax, ecx
sub eax, 0
je 0x41135c
dec eax
je 0x411349
inc ecx
mov dword [0x578ad4], ecx
mov byte [ebp - 0x30d5], 1
jmp 0x41137f
mov dword [0x578ad4], 0
mov byte [ebp - 0x30d5], 1
jmp 0x41137f
mov dword [0x578ad4], 2
mov byte [ebp - 0x30d5], 1
jmp 0x41137f
test esi, esi
je 0x411378
push esi
call edi
xor esi, esi
mov byte [ebp - 0x30d5], 0
test esi, esi
je 0x411386
push esi
call edi
mov edx, dword [ebp - 0x30e8]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4113a9
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], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4113c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4113e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41140a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x30d5]
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