Function at 0x40f697
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1124
lea ebp, [esp - 0x10a4]
call fcn.0041c570
mov eax, dword [0x4377f4]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 0x10ac]
mov dword [ebp + 0x10a0], eax
mov eax, dword [ebp + 0x10b4]
push esi
mov esi, dword [ebp + 0x10b0]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0xa0]
xor edi, edi
push eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x78], edi
call fcn.0040eb61
cmp eax, edi
jl 0x40f9c1
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.0040fa18
test eax, eax
pop ecx
pop ecx
jne 0x40f710
mov eax, 0x80020009
jmp 0x40f9c1
mov ecx, dword [ebp - 0x74]
call fcn.0040eb39
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0xa0]
push eax
call fcn.0040eb61
cmp eax, edi
jl 0x40f9c1
movzx eax, word [ebp - 0x78]
sub eax, 8
je 0x40f98a
sub eax, 9
je 0x40f8b5
dec eax
dec eax
je 0x40f809
sub eax, 0x3ff5
jne 0x40f9b0
lea eax, [ebp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x100
mov dword [ebp - 0x64], edi
jbe 0x40f77b
push eax
lea ecx, [ebp - 0x64]
call fcn.0040e9cd
jmp 0x40f781
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], edi
je 0x40f7ed
cmp byte [ebp + 0xa0], 0
mov edi, dword [ebp - 0x64]
lea esi, [ebp + 0xa0]
je 0x40f7d6
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40f7b8
cmp byte [eax], 0x30
jne 0x40f7b8
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x40f7d1
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40f7cf
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x40f79e
mov ecx, dword [ebp - 0x68]
mov byte [edi], 0
push dword [ebp - 0x64]
push dword [ebp - 0x70]
call fcn.0040f9e1
mov esi, eax
xor edi, edi
jmp 0x40f7f0
push 0xe
pop esi
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x40f97d
lea ecx, [ebp - 0x64]
call fcn.0040fad5
jmp 0x40f97d
call dword [0x434090]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0xa0]
push eax
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
cmp eax, 0x400
ja 0x40f84c
push eax
call fcn.00401d62
test al, al
pop ecx
je 0x40f84c
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0041c570
mov eax, esp
jmp 0x40f858
lea eax, [esi + esi]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401fc6
push dword [ebp - 0x68]
lea ecx, [ebp + 0xa0]
push esi
push ecx
push eax
call fcn.00401dbb
cmp eax, edi
jne 0x40f87f
lea ecx, [ebp - 0x6c]
call fcn.00401462
mov eax, 0x8007000e
jmp 0x40f9c1
lea ecx, [ebp - 0x7c]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x7c]
push 4
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
push 4
push edi
push dword [ebp - 0x70]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.00401462
jmp 0x40f97d
lea eax, [ebp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x6c], eax
jne 0x40f900
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, 0x100
mov dword [ebp - 0x64], edi
jbe 0x40f8e6
push ebx
lea ecx, [ebp - 0x64]
call fcn.0040e9cd
jmp 0x40f8ec
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], edi
jne 0x40f90a
lea eax, [ebp - 0x60]
test eax, eax
je 0x40f900
lea ecx, [ebp - 0x64]
call fcn.0040fad5
mov eax, 0x80004005
jmp 0x40f9c1
push ebx
push edi
push dword [ebp - 0x64]
call fcn.0041c310
add esp, 0xc
cmp dword [ebp - 0x6c], 0
jle 0x40f952
mov eax, edi
cdq
sub eax, edx
mov esi, eax
xor eax, eax
mov al, byte [ebp + edi + 0xa0]
sar esi, 1
add esi, dword [ebp - 0x64]
push eax
call fcn.0040faaa
pop ecx
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x6c]
jl 0x40f91d
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x64]
push 3
push 0
push dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x40f97b
lea ecx, [ebp - 0x64]
call fcn.0040fad5
xor edi, edi
cmp esi, edi
je 0x40f9b0
push esi
call fcn.0040f4ef
pop ecx
jmp 0x40f9c1
lea eax, [ebp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp + 0xa0]
push eax
push 1
push edi
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x40f97d
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x74]
call fcn.0040eb61
cmp eax, edi
jl 0x40f9c1
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10a0]
xor ecx, ebp
call fcn.0041c2f6
add ebp, 0x10a4
leave
ret 0xc