Function at 0x409960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6375
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x504e20]
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 [0x5049f8]
xor ebx, ebx
cmp byte [0x5062f8], bl
mov ecx, 0x5049f8
sete bl
mov dword [ebp - 4], 1
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x274], eax
or edi, 0xffffffff
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 2
je 0x409a35
cmp byte [0x50002c], 0
jne 0x409a35
mov eax, dword [0x506398]
cmp dword [eax - 0xc], 0
jne 0x4099e4
mov ebx, SysReAllocStringLen
jmp 0x409a35
push 0x4c2064
lea eax, [ebp - 0x270]
push 0x506398
push eax
mov ebx, VariantInit
call fcn.00402930
add esp, 0xc
push eax
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 3
call fcn.00402500
mov edx, dword [ebp - 0x270]
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 0x409a35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
mov byte [ebp - 4], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x270], eax
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov esi, 0x4c20cc
shr esi, 0x10
mov byte [ebp - 4], 6
mov dword [ebp - 0x290], esi
mov eax, 0x4c20cc
test esi, esi
jne 0x409c4b
movzx esi, ax
push 0
push esi
call fcn.00402da0
add esp, 8
test eax, eax
je 0x409ac5
push esi
push eax
lea ecx, [ebp - 0x268]
call fcn.00406900
mov esi, dword [ebp - 0x290]
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 7
call fcn.00402870
push 0x50639c
push eax
lea eax, [ebp - 0x27c]
push eax
mov byte [ebp - 4], 8
call fcn.00402870
push 0x4c2064
push eax
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 9
call fcn.00402930
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x278]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402870
add esp, 0x30
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0xb
call fcn.00402500
mov edx, dword [ebp - 0x278]
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 0x409b60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x280]
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 0x409b83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x27c]
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 0x409ba6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x26c]
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 0x409bc9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x268]
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 0x409bec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040a2b0
test al, al
jne 0x409c07
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 0xc
test esi, esi
jne 0x409c60
mov eax, 0x4c20cc
movzx esi, ax
push 0
push esi
call fcn.00402da0
add esp, 8
test eax, eax
je 0x409c70
push esi
push eax
lea ecx, [ebp - 0x268]
call fcn.00406900
jmp 0x409c70
push 0x4c20cc
lea ecx, [ebp - 0x268]
call fcn.00402600
jmp 0x409acb
push 0x4c20cc
lea ecx, [ebp - 0x268]
call fcn.00402600
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x278]
push eax
mov byte [ebp - 4], 0xd
call fcn.00402870
push 0x50639c
push eax
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 0xe
call fcn.00402870
push 0x4c2064
push eax
lea eax, [ebp - 0x27c]
push eax
mov byte [ebp - 4], 0xf
call fcn.00402930
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 0x10
call fcn.00402870
add esp, 0x30
lea ecx, [ebp - 0x28c]
push 0
push 0
push 0x20006
push 0
push 0
push dword [eax]
push ebx
call fcn.00408650
mov edx, dword [ebp - 0x26c]
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 0x409d11
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x27c]
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 0x409d34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x280]
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 0x409d57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x278]
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 0x409d7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x268]
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 0x409d9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x409df1
mov edx, dword [0x506280]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 7
jne 0x409de7
mov edi, dword [0x506280]
xor esi, esi
mov ebx, edi
lea ebx, [ebx]
inc esi
dec ebx
cmp esi, 0x95
jb 0x409dd0
mov esi, dword [ebp - 0x28c]
or edi, 0xffffffff
xor bl, bl
jmp 0x409e5b
mov esi, dword [ebp - 0x28c]
xor bl, bl
jmp 0x409e5b
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x28c]
push 4
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x26c]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x409e3c
test esi, esi
je 0x409e2e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x288], 0
xor bl, bl
jmp 0x409e5b
test esi, esi
je 0x409e4f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x288], 0
mov bl, 1
mov edx, dword [ebp - 0x270]
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 0x409e7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x409e89
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x274]
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 0x409eac
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 0x409ecc
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 0x409eed
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.00496d64
mov esp, ebp
pop ebp
ret