Function at 0x100e78de
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
push edi
mov edi, ecx
test eax, eax
jne 0x100e7919
push 0x1002f6d4
mov edx, 0x354
mov ecx, 0x10009bfc
call fcn.100e970f
xor eax, eax
mov dword [ebp - 8], edi
push 0x208
mov esi, eax
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebp - 0xc], 0x104
call fcn.100b84fe
mov edi, eax
pop ecx
test edi, edi
jne 0x100e795e
push 0x1002f7dc
mov eax, 0x8007000e
push 1
push eax
push 0x4000000
mov esi, eax
call fcn.100ab973
add esp, 0x10
jmp 0x100e7ae9
xor eax, eax
xor edx, edx
mov word [edi], ax
mov ecx, edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
cmp dword [eax + 0xc], edx
jbe 0x100e7a74
push ecx
mov ecx, eax
call fcn.100e0ab3
xor esi, esi
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x100e798a
sub ecx, edx
xor edx, edx
sar ecx, 1
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 1
je 0x100e7a1e
mov eax, dword [ebp - 0xc]
sub eax, ebx
cmp ecx, eax
jb 0x100e7a03
mov eax, dword [ebp - 0xc]
mov esi, edi
add eax, ecx
mov dword [ebp - 0x10], esi
add eax, eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b84fe
mov edi, eax
pop ecx
test edi, edi
je 0x100e7a4c
xor eax, eax
mov word [edi], ax
cmp ebx, dword [ebp - 0xc]
ja 0x100e7a3d
test ebx, ebx
je 0x100e79f3
lea eax, [ebx + ebx]
push eax
push esi
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
test esi, esi
je 0x100e7a03
push esi
call fcn.100b84f9
xor esi, esi
pop ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp - 0xc]
lea ecx, [edi + ebx*2]
push dword [ebp - 0x1c]
sub edx, ebx
call fcn.100ad7c7
mov esi, eax
test esi, esi
js 0x100e7a6a
add ebx, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [eax + 0xc]
jb 0x100e7976
cmp ebx, dword [ebp - 0xc]
jb 0x100e7a74
push 0x1002f898
jmp 0x100e7a42
push 0x1002f838
push 1
mov esi, 0x8000ffff
push esi
jmp 0x100e7a5b
push 0x1002f808
mov eax, 0x8007000e
push 1
mov esi, eax
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100e7ad0
push dword [ebp - 0x1c]
push 0x1002f870
jmp 0x100e7ac0
xor eax, eax
mov word [edi + ebx*2], ax
lea eax, [ebx*2 + 2]
mov ebx, dword [ebp - 0x24]
push eax
push edi
push 7
push edx
push ebx
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test byte [ebp + 8], 1
je 0x100e7aa7
push 2
pop ecx
cmp eax, ecx
jne 0x100e7aa7
mov esi, 0x80070002
jmp 0x100e7ad0
test eax, eax
je 0x100e7ad0
jg 0x100e7ab1
mov esi, eax
jmp 0x100e7aba
movzx esi, ax
or esi, 0x80070000
push ebx
push 0x1002f8f0
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100e7ade
push eax
call fcn.100b84f9
pop ecx
test edi, edi
je 0x100e7ae9
push edi
call fcn.100b84f9
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0xc