Function at 0x4324d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8638
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x51eee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
cmp byte [0x520a34], al
mov ecx, 0x51eab0
sete al
mov dword [ebp - 4], 2
add eax, 0x80000001
mov dword [ebp - 0x18], eax
mov eax, dword [0x51eab0]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [0x520340]
mov ecx, 0x16
lea eax, [ebx + 1]
imul eax, ebx
cdq
idiv ecx
mov byte [ebp - 4], 3
cmp edx, 0xd
jne 0x432597
mov eax, ebx
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
mov esi, 0x9a
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x43258f
mov eax, ebx
mov ebx, dword [ebp - 0x14]
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
xor edx, edx
jmp 0x432570
test edi, edi
jle 0x432581
mov eax, edx
mov ecx, edi
add esi, eax
dec eax
dec ecx
jne 0x432578
mov ecx, dword [ebp - 0x20]
add edx, ecx
dec ebx
jne 0x432570
mov ebx, dword [0x520340]
mov eax, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, esi
jl 0x432556
or edi, 0xffffffff
cmp byte [ebp + 0x14], 0
je 0x432638
cmp byte [0x51a24c], 0
jne 0x43260b
mov eax, dword [0x520b74]
cmp dword [eax - 0xc], 0
jne 0x4325c1
mov dword [ebp - 0x18], VariantInit
jmp 0x43260b
push 0x4d95f8
lea eax, [ebp - 0x20]
push 0x520b74
push eax
mov dword [ebp - 0x18], VariantCopy
call fcn.0040b720
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00402af0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43260b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [0x520340]
call fcn.00432ba0
test al, al
jne 0x432638
xor esi, esi
test ebx, ebx
je 0x432632
mov eax, ebx
mov ecx, ebx
cdq
sub eax, edx
and ecx, 1
mov ebx, eax
add esi, ecx
sar ebx, 1
jne 0x432620
mov dword [0x520340], esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.Software_
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x432692
movzx esi, ax
push 0
push esi
call fcn.00403b80
add esp, 8
test eax, eax
je 0x43269f
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00407650
jmp 0x43269f
push str.Software_
lea ecx, [ebp - 0x14]
call fcn.0040b410
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 7
call fcn.0040b660
push 0x520b78
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 8
call fcn.0040b660
push 0x4d95f8
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 9
call fcn.0040b720
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040b660
add esp, 0x30
lea ecx, [ebp - 0x38]
push 0
push 0
push 0x20006
push 0
push 0
push dword [eax]
push dword [ebp - 0x18]
call fcn.00430470
mov esi, dword [ebp - 0x20]
add esi, 0xfffffff0
mov ebx, eax
lea ecx, [esi + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432727
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x432747
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x432767
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x432787
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4327a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x38]
test ebx, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x432819
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x432810
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x18], ecx
lea ebx, [ebx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4327d0
sub edx, dword [ebp - 0x18]
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 0x432810
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x43280a
push esi
call ebx
xor esi, esi
mov byte [ebp - 0xd], 1
jmp 0x43281d
test esi, esi
je 0x432819
push esi
call ebx
xor esi, esi
mov byte [ebp - 0xd], 0
test esi, esi
je 0x432824
push esi
call ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x432844
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, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x432864
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, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x432884
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], edi
dec edi
test edi, edi
jg 0x4328a5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret