Function at 0x407e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1128
lea ebp, [esp - 0x10a8]
call fcn.00413160
mov eax, dword [str._u]
push ebx
push esi
mov esi, dword [ebp + 0x10b4]
mov ebx, ecx
xor eax, ebp
push edi
mov edi, dword [ebp + 0x10b0]
lea ecx, [ebp + 0xa4]
mov dword [ebp + 0x10a4], eax
mov eax, dword [ebp + 0x10b8]
push ecx
mov ecx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], 0
call fcn.00407090
test eax, eax
jl 0x40820d
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp + 0xa4]
push eax
call fcn.00408270
add esp, 8
test eax, eax
jne 0x407f00
mov eax, 0x80020009
jmp 0x40820d
mov ecx, dword [ebx]
xor edx, edx
mov dl, byte [ecx]
mov ecx, ebx
push edx
call fcn.00407040
test eax, eax
je 0x407f2f
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
xor edx, edx
mov dword [ebx], eax
mov dl, byte [ecx]
mov ecx, ebx
push edx
call fcn.00407040
test eax, eax
jne 0x407f12
lea eax, [ebp + 0xa4]
push eax
mov ecx, ebx
call fcn.00407090
test eax, eax
jl 0x40820d
movzx eax, word [ebp - 0x74]
cmp eax, 0x13
jg 0x40813e
je 0x40808a
cmp eax, 8
je 0x408062
cmp eax, 0x11
jne 0x4081f8
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test bl, 1
jne 0x407fb6
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0x100
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], 0
jbe 0x407fc0
push esi
lea ecx, [ebp - 0x60]
call fcn.004083d0
mov edi, dword [ebp - 0x60]
test edi, edi
jne 0x407fc6
lea edx, [ebp - 0x5c]
test edx, edx
je 0x407fb6
lea ecx, [ebp - 0x60]
call fcn.00408390
mov eax, 0x80004005
jmp 0x40820d
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x60], 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
rep stosb byte es:[edi], al
xor edi, edi
test ebx, ebx
jle 0x40801c
mov edi, edi
mov eax, dword [ebp - 0x60]
mov esi, edi
shr esi, 1
add esi, eax
xor eax, eax
mov al, byte [ebp + edi + 0xa4]
push eax
call fcn.00408320
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [esi]
shl al, cl
add esp, 4
or dl, al
inc edi
cmp edi, ebx
mov byte [esi], dl
jl 0x407fe0
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
push esi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x60]
mov esi, eax
lea eax, [ebp - 0x5c]
cmp ecx, eax
je 0x408049
lea ecx, [ebp - 0x60]
call fcn.00408390
mov ebx, dword [ebp - 0x70]
test esi, esi
je 0x4081f8
push esi
call fcn.00407c20
add esp, 4
jmp 0x40820d
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [edi]
lea edx, [ebp + 0xa4]
push edx
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x40804c
call dword [0x421520]
lea ecx, [ebp + 0xa4]
push ecx
mov ebx, eax
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x4080d2
push edi
call fcn.00406560
add esp, 4
test al, al
je 0x4080d2
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00413160
mov eax, esp
jmp 0x4080db
push edi
lea ecx, [ebp - 0x64]
call fcn.004067b0
push ebx
push esi
lea edx, [ebp + 0xa4]
push edx
push eax
call fcn.004065f0
test eax, eax
jne 0x408100
lea ecx, [ebp - 0x64]
call fcn.004066b0
mov eax, 0x8007000e
jmp 0x40820d
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x6c]
push 4
lea eax, [ebp - 0x80]
push eax
push 4
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.004066b0
jmp 0x408049
cmp eax, 0x4008
jne 0x4081f8
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
call fcn.004083a0
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x4081db
mov al, byte [ebp + 0xa4]
test al, al
lea esi, [ebp + 0xa4]
je 0x4081c1
mov edi, edi
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4081a2
cmp byte [eax], 0x30
jne 0x4081a2
mov byte [edi], 0
push eax
inc edi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x4081bc
xor edx, edx
mov byte [edi], cl
mov dl, byte [esi]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4081ba
mov al, byte [esi + 1]
inc edi
inc esi
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x408180
mov edx, dword [ebp - 0x6c]
mov byte [edi], 0
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x68]
push edx
call fcn.00408230
mov edi, dword [ebp - 0x60]
mov esi, eax
jmp 0x4081e0
mov esi, 0xe
lea eax, [ebp - 0x5c]
cmp edi, eax
je 0x40804c
lea ecx, [ebp - 0x60]
call fcn.00408390
jmp 0x40804c
mov ecx, dword [ebp - 0x7c]
push ecx
mov ecx, ebx
call fcn.00407090
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10a4]
xor ecx, ebp
call fcn.0041277f
add ebp, 0x10a8
mov esp, ebp
pop ebp
ret 0xc