Function at 0x227953d2
Capabilities:
Set registry value

Disassembly:
mov eax, 0x2279abdd
call fcn.2279a2e0
push ecx
mov eax, 0x1120
call fcn.2279a4c0
mov eax, dword [0x227a16b0]
and dword [ebp - 0x111c], 0
xor eax, ebp
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x10], esp
mov edi, ecx
push eax
mov dword [ebp - 0x112c], edi
mov dword [ebp - 0x1120], ebx
mov dword [ebp - 0x1128], esi
call fcn.22793c72
test eax, eax
jl 0x22795762
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.22793b23
test eax, eax
pop ecx
pop ecx
jne 0x22795458
mov eax, 0x80020009
jmp 0x22795762
mov ecx, edi
call fcn.22793c51
lea eax, [ebp - 0x1014]
push eax
mov ecx, edi
call fcn.22793c72
test eax, eax
jl 0x22795762
movzx eax, word [ebp - 0x111c]
sub eax, 8
je 0x2279572b
sub eax, 9
je 0x22795624
dec eax
dec eax
je 0x22795568
sub eax, 0x3ff5
jne 0x2279574b
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x1118], 0
inc eax
and dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], 1
call fcn.22794311
mov edi, dword [ebp - 0x1118]
test edi, edi
je 0x22795543
cmp byte [ebp - 0x1014], 0
lea esi, [ebp - 0x1014]
je 0x22795525
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x22795509
cmp byte [eax], 0x30
jne 0x22795509
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x22795520
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x2279551e
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x227954e9
mov ecx, dword [ebp - 0x1120]
mov byte [edi], 0
push dword [ebp - 0x1118]
push dword [ebp - 0x1128]
call fcn.22793a0a
mov esi, eax
jmp 0x22795546
push 0xe
pop esi
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x2279573e
lea ecx, [ebp - 0x1118]
call fcn.22793f95
jmp 0x2279573e
call dword [str.__y_]
and dword [ebp - 0x111c], 0
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x227955b4
push edi
call fcn.227937b9
test al, al
pop ecx
je 0x227955b4
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.2279a4c0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x227955c0
push edi
lea ecx, [ebp - 0x111c]
call fcn.2279426c
push dword [ebp - 0x1120]
lea ecx, [ebp - 0x1014]
push esi
push ecx
push eax
call fcn.22793812
test eax, eax
jne 0x227955ed
lea ecx, [ebp - 0x111c]
call fcn.22793ec9
mov eax, 0x8007000e
jmp 0x22795762
lea ecx, [ebp - 0x1124]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x1124]
mov ecx, ebx
push dword [ebp - 0x1128]
call fcn.227939c7
lea ecx, [ebp - 0x111c]
mov esi, eax
call fcn.22793ec9
jmp 0x2279573e
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x111c], eax
jne 0x22795693
and dword [ebp - 0x1118], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x1124], ebx
mov dword [ebp - 4], 3
push ebx
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], 4
call fcn.22794311
jmp 0x22795674
xor edi, edi
cmp dword [ebp - 0x1118], edi
jne 0x2279569d
lea eax, [ebp - 0x1114]
test eax, eax
je 0x22795693
lea ecx, [ebp - 0x1118]
call fcn.22793f95
mov eax, 0x80004005
jmp 0x22795762
push ebx
push edi
push dword [ebp - 0x1118]
call sub.MSVCR71.dll_memset
add esp, 0xc
cmp dword [ebp - 0x111c], 0
jle 0x227956ee
mov ecx, dword [ebp - 0x1118]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.22793bb5
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 - 0x111c]
jl 0x227956b6
mov eax, dword [ebp - 0x1120]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x1118]
push 3
push 0
push dword [ebp - 0x1128]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x2279573e
lea ecx, [ebp - 0x1118]
call fcn.22793f95
jmp 0x2279573e
push 1
lea eax, [ebp - 0x1014]
push eax
push esi
mov ecx, ebx
call fcn.227939e1
mov esi, eax
test esi, esi
je 0x2279574b
push esi
call fcn.227938eb
pop ecx
jmp 0x22795762
push dword [ebp - 0x1130]
mov ecx, dword [ebp - 0x112c]
call fcn.22793c72
test eax, eax
jl 0x22795762
xor eax, eax
lea esp, [ebp - 0x113c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.2279a349
leave
ret 0xc