Function at 0x40afa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5005a1
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x559680]
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 [0x55ab3c], 0
mov dword [ebp - 4], 1
je 0x40b148
cmp dword [0x55ab40], 0
je 0x40b148
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push 0x55abfc
push eax
call fcn.00402920
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004025b0
mov edx, dword [ebp - 0x208]
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 0x40b03a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x200], eax
mov ecx, dword [0x55ab40]
push 0
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.0041d8c0
push dword [ebp - 0x200]
lea ecx, [ebp + 8]
call fcn.004026b0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x208]
push 0x55abfc
push eax
call fcn.00402920
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.004025b0
mov edx, dword [ebp - 0x208]
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 0x40b0c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x204], eax
mov ecx, dword [0x55ab40]
push 0
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 5
call fcn.0041d8c0
push dword [ebp - 0x204]
lea ecx, [ebp + 0xc]
call fcn.004026b0
mov edx, dword [ebp - 0x204]
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 0x40b125
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x200]
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 0x40b148
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5591b8]
xor ebx, ebx
cmp byte [0x55ab44], bl
mov ecx, 0x5591b8
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x204], eax
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 6
je 0x40b1e5
cmp byte [0x55402c], 0
jne 0x40b1e5
mov eax, dword [0x55abf4]
cmp dword [eax - 0xc], 0
jne 0x40b194
mov ebx, SysReAllocStringLen
jmp 0x40b1e5
push 0x50e4b0
lea eax, [ebp - 0x208]
push 0x55abf4
push eax
mov ebx, SysStringLen
call fcn.004029e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x204]
mov byte [ebp - 4], 7
call fcn.004025b0
mov edx, dword [ebp - 0x208]
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 0x40b1e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov edx, dword [0x55aac0]
mov byte [ebp - 4], 8
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 2
jne 0x40b23d
push 0xbe
push 0xbd
push str._d__d_n
call fcn.004e09e9
add esp, 0xc
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x208], eax
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
mov byte [ebp - 4], 9
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x200], eax
mov edi, str.Software_
shr edi, 0x10
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x228], edi
mov eax, str.Software_
test edi, edi
jne 0x40b416
movzx edi, ax
push 0
push edi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x40b2ab
push edi
push eax
lea ecx, [ebp - 0x200]
call fcn.00406a90
mov edi, dword [ebp - 0x228]
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 4], 0xb
call fcn.00402920
push 0x55abf8
push eax
lea eax, [ebp - 0x214]
push eax
mov byte [ebp - 4], 0xc
call fcn.00402920
push 0x50e4b0
push eax
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 0xd
call fcn.004029e0
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 4], 0xe
call fcn.00402920
add esp, 0x30
push eax
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 0xf
call fcn.004025b0
mov edx, dword [ebp - 0x210]
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 0x40b346
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x218]
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 0x40b369
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x214]
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 0x40b38c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20c]
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 0x40b3af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x200]
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 0x40b3d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 0x10
test edi, edi
jne 0x40b42b
mov eax, str.Software_
movzx edi, ax
push 0
push edi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x40b43b
push edi
push eax
lea ecx, [ebp - 0x200]
call fcn.00406a90
jmp 0x40b43b
push str.Software_
lea ecx, [ebp - 0x200]
call fcn.004026b0
jmp 0x40b2b1
push str.Software_
lea ecx, [ebp - 0x200]
call fcn.004026b0
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 4], 0x11
call fcn.00402920
push 0x55abf8
push eax
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 0x12
call fcn.00402920
push 0x50e4b0
push eax
lea eax, [ebp - 0x214]
push eax
mov byte [ebp - 4], 0x13
call fcn.004029e0
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 4], 0x14
call fcn.00402920
add esp, 0x30
lea ecx, [ebp - 0x224]
push 0
push 0
push 0x20006
push 0
push 0
push dword [eax]
push ebx
call fcn.00409b30
mov edx, dword [ebp - 0x20c]
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 0x40b4dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x214]
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 0x40b4ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x218]
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 0x40b522
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x210]
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 0x40b545
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x200]
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 0x40b568
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40b612
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40b6c9
test edi, edi
je 0x40b5b3
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x224], edi
mov edx, dword [0x55aac0]
mov eax, edx
imul eax, edx
mov dword [ebp - 0x220], 0
and eax, 0x80000003
jns 0x40b5d4
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 2
jne 0x40b612
xor ecx, ecx
jmp 0x40b5e0
mov eax, dword [ebp + ecx*4 - 0x1ec]
add eax, dword [ebp + ecx*4 - 0x1f0]
add ecx, 4
add eax, dword [ebp + ecx*4 - 0x204]
add eax, dword [ebp + ecx*4 - 0x208]
imul eax, eax, 0x74
add edx, eax
cmp ecx, 0x1e8
jb 0x40b5e0
mov dword [0x55aac0], edx
mov byte [ebp - 0x1f9], 0
mov edx, dword [ebp - 0x208]
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 0x40b63c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x40b643
push edi
call ebx
mov edx, dword [ebp - 0x204]
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 0x40b666
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 0x40b686
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 0x40b6a7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x1f9]
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.004df4f4
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40b6de
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x1f9], 1
jmp 0x40b619