Function at 0x37f803ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1120
call fcn.37fad71e
mov eax, dword [0x37f7d24c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1004]
xor edi, edi
push eax
mov dword [ebp - 0x111c], ecx
mov dword [ebp - 0x1114], esi
mov dword [ebp - 0x1118], ebx
mov dword [ebp - 0x110c], edi
call fcn.37f7e85c
cmp eax, edi
jl 0x37f80752
lea eax, [ebp - 0x110c]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.37f7e6e9
test eax, eax
jne 0x37f80464
mov eax, 0x80020009
jmp 0x37f80752
mov ecx, dword [ebp - 0x111c]
call fcn.37f7e83a
mov ecx, dword [ebp - 0x111c]
lea eax, [ebp - 0x1004]
push eax
call fcn.37f7e85c
cmp eax, edi
jl 0x37f80752
movzx eax, word [ebp - 0x110c]
sub eax, 8
je 0x37f8071c
sub eax, 9
je 0x37f80635
dec eax
dec eax
je 0x37f80579
sub eax, 0x3ff5
jne 0x37f8073b
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
push eax
lea ecx, [ebp - 0x1108]
mov dword [ebp - 0x1108], edi
call fcn.37f80101
mov esi, dword [ebp - 0x1108]
cmp esi, edi
je 0x37f80554
cmp byte [ebp - 0x1004], 0
lea edi, [ebp - 0x1004]
je 0x37f80530
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x37f8050f
cmp byte [eax], 0x30
jne 0x37f8050f
mov byte [esi], 0
push eax
inc esi
call ebx
mov edi, eax
jmp 0x37f8052b
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x37f80529
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x37f80530
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x37f804f5
mov ecx, dword [ebp - 0x1114]
mov byte [esi], 0
mov byte [esi + 1], 0
push dword [ebp - 0x1108]
push dword [ebp - 0x1118]
call fcn.37f7e59e
mov esi, eax
xor edi, edi
jmp 0x37f80557
push 0xe
pop esi
lea eax, [ebp - 0x1104]
cmp dword [ebp - 0x1108], eax
je 0x37f8072f
lea ecx, [ebp - 0x1108]
call fcn.37f7ebc8
jmp 0x37f8072f
lea eax, [ebp - 0x1004]
push eax
mov dword [ebp - 0x110c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x1110], eax
lea eax, [ebp - 0x1110]
push eax
call fcn.37f7e0c6
test eax, eax
jl 0x37f805eb
mov ebx, dword [ebp - 0x1110]
cmp ebx, 0x400
jg 0x37f805c9
push ebx
call fcn.37f7ec8c
test al, al
je 0x37f805c9
mov eax, ebx
call fcn.37fad7a0
mov eax, esp
jmp 0x37f805d5
push ebx
lea ecx, [ebp - 0x110c]
call fcn.37f7f062
push 3
shr ebx, 1
push ebx
lea ecx, [ebp - 0x1004]
push ecx
push eax
call fcn.37f7e176
cmp eax, edi
jne 0x37f80600
lea ecx, [ebp - 0x110c]
call fcn.37f7eae3
mov eax, 0x8007000e
jmp 0x37f80752
lea ecx, [ebp - 0x1114]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x1114]
mov ecx, esi
push dword [ebp - 0x1118]
call fcn.37f7e54e
lea ecx, [ebp - 0x110c]
mov esi, eax
call fcn.37f7eae3
jmp 0x37f8072f
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1110], eax
test al, 1
je 0x37f80656
mov eax, 0x80004005
jmp 0x37f80752
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0x1108]
mov dword [ebp - 0x1108], edi
call fcn.37f80101
cmp dword [ebp - 0x1108], edi
jne 0x37f8068e
lea eax, [ebp - 0x1104]
test eax, eax
je 0x37f8064c
lea ecx, [ebp - 0x1108]
call fcn.37f7ebc8
jmp 0x37f8064c
push ebx
push edi
push dword [ebp - 0x1108]
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [ebp - 0x1110], edi
jle 0x37f806e6
mov ecx, dword [ebp - 0x1108]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [ebp + edi - 0x1004]
push eax
call fcn.37f7e781
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 - 0x1110]
jl 0x37f806a6
mov esi, dword [ebp - 0x1114]
xor edi, edi
mov eax, dword [esi]
push ebx
push dword [ebp - 0x1108]
push 3
push edi
push dword [ebp - 0x1118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x1104]
cmp dword [ebp - 0x1108], eax
je 0x37f8072f
lea ecx, [ebp - 0x1108]
call fcn.37f7ebc8
jmp 0x37f8072f
push 1
lea eax, [ebp - 0x1004]
push eax
push ebx
mov ecx, esi
call fcn.37f7e56a
mov esi, eax
cmp esi, edi
je 0x37f8073b
push esi
call fcn.37f7e37f
jmp 0x37f80752
push dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
call fcn.37f7e85c
cmp eax, edi
jl 0x37f80752
xor eax, eax
lea esp, [ebp - 0x112c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.37facac9
leave
ret 0xc