Function at 0x11179130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x228], edi
test ebx, ebx
je 0x11179182
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp dword [ebp + 0xc], 0
mov dword [edi], 0
je 0x1117932f
push 4
push 0xf
call dword [sym.imp.MSVCR100.dll_calloc]
add esp, 8
mov dword [edi], eax
jmp 0x1117918b
cmp dword [edi], 0
je 0x1117932f
push esi
mov esi, dword [edi]
lea ecx, [ebp - 0x214]
push ecx
xor eax, eax
push 0x2001f
push eax
push str.Control_PanelCursors
push closesocket
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x214], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp dword [ebp - 0x214], ecx
je 0x11179307
xor eax, eax
cmp ebx, ecx
setne al
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x218], ecx
inc eax
mov dword [ebp - 0x23c], eax
cmp eax, ecx
jle 0x111792f7
nop
cmp dword [ebp - 0x218], 0
jle 0x11179206
cmp dword [ebp - 0x234], 0
je 0x111792f7
mov eax, 0x11276eb8
sub eax, esi
mov dword [ebp - 0x22c], 0
mov ebx, esi
mov dword [ebp - 0x238], eax
jmp 0x11179227
mov eax, dword [ebp - 0x238]
mov edi, dword [eax + ebx]
xor edx, edx
lea eax, [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
push ecx
mov word [ebp - 0x210], dx
lea edx, [ebp - 0x21c]
push edx
push 0
push edi
push eax
mov dword [ebp - 0x230], 0x20a
call fcn.111b8970
add esp, 0x18
cmp dword [ebp + 8], 0
je 0x111793ba
test eax, eax
jne 0x11179411
mov eax, dword [ebp - 0x21c]
cmp eax, 1
je 0x1117928a
cmp eax, 2
jne 0x11179411
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11179293
sub eax, edx
sar eax, 1
lea ecx, [ebp + eax*2 - 0x218]
push str..ani
push ecx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
cmp dword [ebp - 0x218], 0
jne 0x11179341
test eax, eax
je 0x11179411
mov dword [ebp - 0x234], 1
mov eax, dword [ebp - 0x218]
mov edi, dword [ebp - 0x228]
inc eax
mov dword [ebp - 0x218], eax
cmp eax, dword [ebp - 0x23c]
jl 0x111791f0
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x11179317
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [edi], ebx
cmp dword [ebp - 0x220], 0
pop esi
je 0x1117932f
push 0
push 0
push 0
push 0x57
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
jne 0x11179352
test eax, eax
jne 0x1117935b
jmp 0x11179411
cmp ecx, 2
jne 0x11179411
test esi, esi
je 0x11179390
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x11179390
lea ecx, [ebp - 0x210]
mov edx, eax
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x11179381
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x214]
push 2
push 0x11247f3c
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x220], 1
jmp 0x11179411
mov esi, dword [ebx]
test esi, esi
je 0x1117940b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x111793c5
mov ecx, dword [ebp - 0x21c]
sub eax, edx
mov edx, dword [ebp - 0x214]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov dword [ebp - 0x220], 1
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [ebx], 0
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x22c]
inc eax
add ebx, 4
mov dword [ebp - 0x22c], eax
cmp eax, 0xf
jb 0x11179221
jmp 0x111792d8