Function at 0x4191a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0f58
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x539c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 1
mov eax, dword [0x5396d8]
xor ebx, ebx
cmp byte [0x53ed94], bl
mov ecx, 0x5396d8
sete bl
add ebx, 0x80000001
mov dword [ebp - 0x20], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 6
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 8
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
mov eax, 0x516f6c
test eax, 0xffff0000
jne 0x41926a
movzx esi, ax
mov ecx, esi
call fcn.00401b90
test eax, eax
je 0x419277
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00402860
jmp 0x419277
push 0x516f6c
lea ecx, [ebp - 0x14]
call fcn.00403570
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.0040f0c0
mov byte [ebp - 4], 0xb
push 0x53f000
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.0040f0c0
mov byte [ebp - 4], 0xc
push 0x516f68
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00417c70
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040f0c0
add esp, 0x10
mov byte [ebp - 4], 0xe
mov edx, dword [eax]
mov edi, dword [ebp - 0x18]
lea ecx, [edx - 0x10]
add edi, 0xfffffff0
or esi, 0xffffffff
cmp ecx, edi
je 0x41931f
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x419310
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x419310
call fcn.00402720
mov dword [ebp - 0x24], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x419308
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x41931c
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.004025f0
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41933f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41935f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41937f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41939f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4193bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x14
mov eax, 0x516f7c
test eax, 0xffff0000
jne 0x4193fc
movzx edi, ax
mov ecx, edi
call fcn.00401b90
test eax, eax
je 0x419409
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.00402860
jmp 0x419409
push 0x516f7c
lea ecx, [ebp - 0x14]
call fcn.00403570
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.0040f0c0
mov byte [ebp - 4], 0x16
push 0x53f000
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.0040f0c0
mov byte [ebp - 4], 0x17
push 0x516f78
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00417c70
mov byte [ebp - 4], 0x18
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.0040f0c0
mov byte [ebp - 4], 0x19
add esp, 8
push 0x20006
push 0
push ecx
push dword [eax]
lea ecx, [ebp - 0x44]
push ebx
call fcn.004189f0
test eax, eax
setne bl
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419493
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4194b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4194d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4194f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419513
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x44]
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x419555
mov eax, dword [ebp - 0x38]
push 4
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push 4
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x419608
test edi, edi
je 0x41954e
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419579
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
test edi, edi
je 0x41958b
push edi
call ebx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4195b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4195d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4195f3
mov ecx, dword [edi]
push edi
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
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41961a
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0
mov byte [ebp - 0xd], 1
jmp 0x419559