Function at 0x402d7b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2110
call fcn.00421060
push esi
push edi
lea eax, [ebp - 0x2110]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
call fcn.0040219c
cmp eax, edi
jl 0x403001
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2110]
push eax
call fcn.0040202d
pop ecx
pop ecx
test eax, eax
jne 0x402dc8
mov eax, 0x80020009
jmp 0x403001
mov ecx, esi
call fcn.0040217a
lea eax, [ebp - 0x2110]
push eax
mov ecx, esi
call fcn.0040219c
cmp eax, edi
jl 0x403001
movzx eax, word [ebp - 4]
sub eax, 8
push ebx
je 0x402fcc
sub eax, 9
je 0x402ef5
dec eax
dec eax
je 0x402ec2
sub eax, 0x3ff5
jne 0x402fef
lea eax, [ebp - 0x2110]
push eax
call dword [sym.imp.p_lstrlenW]
inc eax
inc eax
push eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x110], edi
call fcn.00402bc9
mov esi, dword [ebp - 0x110]
cmp esi, edi
je 0x402e9d
cmp word [ebp - 0x2110], 0
lea edi, [ebp - 0x2110]
je 0x402e7d
mov ebx, dword [0x42e4a0]
push edi
call ebx
movzx ecx, word [edi]
cmp cx, 0x5c
jne 0x402e70
cmp word [eax], 0x30
jne 0x402e70
xor ecx, ecx
mov word [esi], cx
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x402e77
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x402e50
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [esi], ax
mov word [esi + 2], ax
push dword [ebp - 0x110]
push dword [ebp + 0xc]
call fcn.00401eee
mov esi, eax
xor edi, edi
jmp 0x402ea0
push 0xe
pop esi
lea eax, [ebp - 0x10c]
cmp dword [ebp - 0x110], eax
je 0x402fe2
lea ecx, [ebp - 0x110]
call fcn.00402434
jmp 0x402fe2
lea eax, [ebp - 4]
push eax
push edi
push edi
lea eax, [ebp - 0x2110]
push eax
mov dword [ebp - 0xc], edi
call dword [0x42e32c]
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00401e9b
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.004015d5
jmp 0x402fe2
lea eax, [ebp - 0x2110]
push eax
call dword [sym.imp.p_lstrlenW]
mov dword [ebp - 4], eax
test al, 1
jne 0x402f3f
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x110], edi
call fcn.00402be8
cmp dword [ebp - 0x110], edi
jne 0x402f49
lea eax, [ebp - 0x10c]
test eax, eax
je 0x402f3f
lea ecx, [ebp - 0x110]
call fcn.00402434
mov eax, 0x80004005
jmp 0x403000
push ebx
push edi
push dword [ebp - 0x110]
call fcn.00420470
add esp, 0xc
cmp dword [ebp - 4], edi
jle 0x402f96
mov ecx, dword [ebp - 0x110]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, word [ebp + edi*2 - 0x2110]
push eax
call fcn.004020c3
pop ecx
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 4]
jl 0x402f5e
xor edi, edi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x110]
push 3
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.base_constructor_iterator_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x10c]
cmp dword [ebp - 0x110], eax
je 0x402fe2
lea ecx, [ebp - 0x110]
call fcn.00402434
jmp 0x402fe2
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x2110]
push eax
push dword [ebp + 0xc]
call fcn.00401eb7
mov esi, eax
cmp esi, edi
je 0x402fef
push esi
call fcn.00401cbd
pop ecx
jmp 0x403000
push dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
call fcn.0040219c
cmp eax, edi
jl 0x403000
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc