Function at 0x40af20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd9b5
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x515e20]
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
mov eax, dword [0x517280]
xor ebx, ebx
cmp byte [0x517420], bl
mov ecx, 0xd
sete bl
imul eax, eax
cdq
idiv ecx
add ebx, 0x80000001
mov dword [ebp - 4], 1
cmp edx, 2
jne 0x40af91
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x517280], edx
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c0], eax
or edi, 0xffffffff
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 2
je 0x40b020
cmp byte [0x51102c], 0
jne 0x40b020
mov eax, dword [0x517570]
cmp dword [eax - 0xc], 0
jne 0x40afcf
mov ebx, SysReAllocStringLen
jmp 0x40b020
push 0x4d3314
lea eax, [ebp - 0x1c4]
push 0x517570
push eax
mov ebx, VariantInit
call fcn.00402ae0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 3
call fcn.00402610
mov edx, dword [ebp - 0x1c4]
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 0x40b020
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d0], 0
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov byte [ebp - 4], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c4], eax
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1ac], eax
mov esi, 0x4d337c
shr esi, 0x10
mov byte [ebp - 4], 6
mov dword [ebp - 0x1b8], esi
mov eax, 0x4d337c
test esi, esi
jne 0x40b21b
movzx esi, ax
push 0
push esi
call fcn.00403010
add esp, 8
test eax, eax
je 0x40b0b0
push esi
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00406b10
mov esi, dword [ebp - 0x1b8]
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x1c0]
push eax
lea eax, [ebp - 0x1b0]
push eax
mov byte [ebp - 4], 7
call fcn.00402a20
push 0x517574
push eax
lea eax, [ebp - 0x1bc]
push eax
mov byte [ebp - 4], 8
call fcn.00402a20
push 0x4d3314
push eax
lea eax, [ebp - 0x1cc]
push eax
mov byte [ebp - 4], 9
call fcn.00402ae0
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x1c8]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402a20
add esp, 0x30
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 0xb
call fcn.00402610
mov edx, dword [ebp - 0x1c8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b14b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1cc]
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 0x40b16e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1bc]
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 0x40b191
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1b0]
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 0x40b1b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1ac]
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 0x40b1d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 0xc
test esi, esi
jne 0x40b230
mov eax, 0x4d337c
movzx esi, ax
push 0
push esi
call fcn.00403010
add esp, 8
test eax, eax
je 0x40b240
push esi
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00406b10
jmp 0x40b240
push 0x4d337c
lea ecx, [ebp - 0x1ac]
call fcn.00402750
jmp 0x40b0b6
push 0x4d337c
lea ecx, [ebp - 0x1ac]
call fcn.00402750
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x1c0]
push eax
lea eax, [ebp - 0x1c8]
push eax
mov byte [ebp - 4], 0xd
call fcn.00402a20
push 0x517574
push eax
lea eax, [ebp - 0x1cc]
push eax
mov byte [ebp - 4], 0xe
call fcn.00402a20
push 0x4d3314
push eax
lea eax, [ebp - 0x1bc]
push eax
mov byte [ebp - 4], 0xf
call fcn.00402ae0
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x1b0]
push eax
mov byte [ebp - 4], 0x10
call fcn.00402a20
add esp, 0x30
lea ecx, [ebp - 0x1d8]
push 0
push 0
push 0x20006
push 0
push 0
push dword [eax]
push ebx
call fcn.004099d0
mov edx, dword [ebp - 0x1b0]
test eax, eax
setne bl
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b2e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1bc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b304
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1cc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b327
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b34a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1ac]
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 0x40b36d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40b3f7
mov ebx, dword [0x517280]
mov eax, ebx
imul eax, ebx
imul eax, ebx
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 9
jne 0x40b3ed
xor ecx, ecx
mov dword [ebp - 0x1b8], ecx
lea edi, [ebp - 0x1a8]
mov edi, edi
xor esi, esi
mov eax, ebx
inc esi
cdq
xor ecx, ecx
idiv esi
mov dword [ebp - 0x1bc], esi
mov dword [ebp - 0x1b0], edx
lea esi, [ecx + 1]
mov ecx, esi
cmp ecx, 0xf
jl 0x40b3b6
mov esi, dword [ebp - 0x1bc]
add edi, 0xf
cmp esi, 3
jl 0x40b3a2
mov ecx, dword [ebp - 0x1b8]
inc ecx
mov dword [ebp - 0x1b8], ecx
cmp ecx, 9
jl 0x40b3a0
mov esi, dword [ebp - 0x1d8]
or edi, 0xffffffff
xor bl, bl
jmp 0x40b461
mov esi, dword [ebp - 0x1d8]
xor bl, bl
jmp 0x40b461
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x1d8]
push 4
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x1b0]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40b442
test esi, esi
je 0x40b434
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x1d8], esi
mov dword [ebp - 0x1d4], 0
xor bl, bl
jmp 0x40b461
test esi, esi
je 0x40b455
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x1d8], esi
mov dword [ebp - 0x1d4], 0
mov bl, 1
mov edx, dword [ebp - 0x1c4]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b484
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40b48f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c0]
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 0x40b4b2
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, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b4d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40b4f3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0049e294
mov esp, ebp
pop ebp
ret