Function at 0x4070d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418506
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2118
call fcn.0040fb80
push ebx
push esi
push edi
lea eax, [ebp - 0x2128]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ebx
call fcn.00406330
cmp eax, ebx
jl 0x407461
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x2128]
push edx
call fcn.00407510
add esp, 8
test eax, eax
jne 0x407146
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 0xc
mov ecx, esi
call fcn.004062d0
lea eax, [ebp - 0x2128]
push eax
mov ecx, esi
call fcn.00406330
cmp eax, ebx
jl 0x407461
movzx eax, word [ebp - 0x1c]
cmp eax, 0x13
jg 0x40734b
je 0x407301
cmp eax, 8
je 0x4072e5
cmp eax, 0x11
jne 0x40744c
lea ecx, [ebp - 0x2128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test bl, 1
mov dword [ebp - 0x18], ebx
jne 0x407258
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x128], 0
cmp esi, 0x100
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
jbe 0x4071de
push esi
lea ecx, [ebp - 0x128]
call fcn.004075c0
jmp 0x407239
lea edi, [ebp - 0x124]
mov dword [ebp - 0x128], edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor esi, esi
test ebx, ebx
rep stosb byte es:[edi], al
jle 0x4072a0
mov eax, dword [ebp - 0x128]
mov edx, esi
shr edx, 1
add edx, eax
mov ax, word [ebp + esi*2 - 0x2128]
movzx ecx, ax
add ecx, 0xffffffd0
cmp ecx, 0x36
ja case.0x40722c.58
movzx ecx, byte [ecx + 0x407484]
jmp dword [ecx*4 + 0x407474]
mov edi, dword [ebp - 0x128]
test edi, edi
jne 0x4071ea
lea edx, [ebp - 0x124]
test edx, edx
je 0x407258
lea ecx, [ebp - 0x128]
call fcn.00406170
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 0xc
sub al, 0x30
jmp 0x40727e
sub al, 0x37
jmp 0x40727e
sub al, 0x57
jmp 0x40727e
xor al, al
mov ecx, esi
and ecx, 1
shl ecx, 2
mov edi, ecx
mov ecx, 4
sub ecx, edi
shl al, cl
mov cl, byte [edx]
or cl, al
inc esi
cmp esi, ebx
mov byte [edx], cl
jl 0x407206
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x128]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x124]
cmp eax, edx
je 0x407427
lea ecx, [ebp - 0x128]
call fcn.00406170
jmp 0x407427
mov ecx, dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x2128]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401220
mov esi, eax
jmp 0x407427
call dword [0x41d068]
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
lea eax, [ebp - 0x2128]
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
push 4
lea edx, [ebp - 0x14]
push edx
push 4
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00405d30
jmp 0x407427
cmp eax, 0x4008
jne 0x40744c
lea eax, [ebp - 0x2128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x128], ebx
add eax, eax
cmp eax, 0x100
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
jbe 0x4073ce
push eax
lea ecx, [ebp - 0x128]
call fcn.004075c0
mov edi, dword [ebp - 0x128]
xor ebx, ebx
cmp edi, ebx
je 0x40740d
cmp word [ebp - 0x2128], bx
lea esi, [ebp - 0x2128]
je 0x4073eb
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
mov cx, word [esi]
cmp cx, 0x5c
jne 0x4073dc
cmp word [eax], 0x30
jne 0x4073dc
mov word [edi], 0
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x4073e5
lea edi, [ebp - 0x124]
mov dword [ebp - 0x128], edi
jmp 0x407392
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x4073a7
mov edx, dword [ebp + 0xc]
mov word [edi], 0
mov ecx, dword [ebp - 0x128]
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.004074c0
mov edi, dword [ebp - 0x128]
mov esi, eax
jmp 0x407412
mov esi, 0xe
lea eax, [ebp - 0x124]
cmp edi, eax
je 0x407427
lea ecx, [ebp - 0x128]
call fcn.00406170
xor ebx, ebx
cmp esi, ebx
je 0x407449
push esi
call fcn.00406eb0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00406330
xor edx, edx
cmp eax, ebx
setge dl
dec edx
and eax, edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc