Function at 0x402770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41542e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2114
call fcn.0040dcb0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x2124]
mov esi, dword [ebp + 8]
mov edi, esi
call fcn.004025c0
test eax, eax
js 0x402b72
lea eax, [ebp - 0x14]
push eax
lea ebx, [ebp - 0x2124]
call fcn.00402450
add esp, 4
test eax, eax
jne 0x4027e6
mov eax, 0x80020009
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402570
lea eax, [ebp - 0x2124]
mov edi, esi
call fcn.004025c0
xor esi, esi
cmp eax, esi
jl 0x402b72
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x402a2f
je 0x4029dd
cmp eax, 8
je 0x4029aa
cmp eax, 0x11
jne 0x402b5d
lea ecx, [ebp - 0x2124]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test bl, 1
jne 0x4028df
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x124], esi
mov esi, 4
mov dword [ebp - 4], esi
mov byte [ebp - 4], 5
mov eax, edi
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
ja 0x40286f
cmp eax, 0xffffffff
jbe 0x402879
push 0x80070216
call fcn.00401080
cmp eax, 0x100
jbe 0x402891
lea edx, [ebp - 0x124]
push edx
call fcn.00406820
mov dword [ebp - 4], esi
jmp 0x4028b5
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], esi
jmp 0x4028b5
mov eax, dword [ebp - 0x124]
test eax, eax
jne 0x4028f7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
cmp dword [ebp - 0x124], ecx
je 0x4028df
lea eax, [ebp - 0x124]
call fcn.00406410
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
push 0
push eax
call fcn.00409ae0
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x402963
lea esp, [esp]
mov edx, esi
shr edx, 1
add edx, dword [ebp - 0x124]
movzx eax, word [ebp + esi*2 - 0x2124]
lea ecx, [eax - 0x30]
cmp ecx, 0x36
ja case.0x402931.58
movzx ecx, byte [ecx + 0x402b98]
jmp dword [ecx*4 + 0x402b88]
sub al, 0x30
jmp 0x402946
sub al, 0x37
jmp 0x402946
sub al, 0x57
jmp 0x402946
xor al, al
mov ecx, esi
and ecx, 1
add ecx, ecx
lea edi, [ecx + ecx]
mov ecx, 4
sub ecx, edi
shl al, cl
or byte [edx], al
inc esi
cmp esi, ebx
jl 0x402910
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push edi
mov ecx, dword [ebp - 0x124]
push ecx
push 3
push 0
mov edx, dword [ebp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x402b3d
lea eax, [ebp - 0x124]
call fcn.00406410
jmp 0x402b3d
lea ecx, [ebp - 0x2124]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2124]
push eax
push 1
push esi
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x402b3d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x18]
push ecx
push esi
push esi
lea edx, [ebp - 0x2124]
push edx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push esi
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.00405b50
jmp 0x402b3d
cmp eax, 0x4008
jne 0x402b5d
lea edx, [ebp - 0x2124]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
xor ecx, ecx
shld ecx, eax, 1
mov dword [ebp - 0x1c], ecx
add eax, eax
mov dword [ebp - 0x20], eax
cmp ecx, esi
ja 0x402a6e
cmp eax, 0xffffffff
jbe 0x402a78
push 0x80070216
call fcn.00401080
cmp eax, 0x100
jbe 0x402a8d
lea ecx, [ebp - 0x124]
push ecx
call fcn.00406820
jmp 0x402a99
lea edx, [ebp - 0x120]
mov dword [ebp - 0x124], edx
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x124]
test esi, esi
je 0x402b18
lea ebx, [ebp - 0x2124]
cmp word [ebp - 0x2124], 0
je 0x402afc
mov edi, dword [sym.imp.USER32.dll_CharNextW]
lea esp, [esp]
push ebx
call edi
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x402aed
cmp word [eax], 0x30
jne 0x402aed
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call edi
mov ebx, eax
jmp 0x402af6
mov word [esi], cx
add esi, 2
add ebx, 2
cmp word [ebx], 0
jne 0x402ac0
xor edx, edx
mov dword [esi], edx
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401b10
mov ebx, eax
jmp 0x402b1d
mov ebx, 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
cmp dword [ebp - 0x124], ecx
je 0x402b3d
lea eax, [ebp - 0x124]
call fcn.00406410
xor esi, esi
cmp ebx, esi
je 0x402b5d
mov eax, ebx
call fcn.00401500
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
call fcn.004025c0
xor edx, edx
cmp eax, esi
setge dl
dec edx
and eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10