Function at 0x11116a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x111ec774]
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 - 0x124], edi
test ebx, ebx
je 0x11116ab0
mov eax, dword [edi]
push eax
call fcn.11163aa5
add esp, 4
cmp dword [ebp + 0xc], 0
mov dword [edi], 0
je 0x11116c55
push 4
push 0xf
call fcn.1116406b
add esp, 8
mov dword [edi], eax
jmp 0x11116ab9
cmp dword [edi], 0
je 0x11116c55
push esi
mov esi, dword [edi]
lea ecx, [ebp - 0x110]
push ecx
xor eax, eax
push 0x2001f
push eax
push 0x111b7bf4
push reloc.wsOcK32.dll_accept
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], eax
call dword [sym.imp.aDvapi32.DLL_RegOpenKeyExA]
xor ecx, ecx
cmp dword [ebp - 0x110], ecx
je 0x11116c2e
xor eax, eax
cmp ebx, ecx
setne al
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x114], ecx
inc eax
mov dword [ebp - 0x138], eax
cmp eax, ecx
jle 0x11116c1e
lea ecx, [ecx]
cmp dword [ebp - 0x114], 0
jle 0x11116b36
cmp dword [ebp - 0x130], 0
je 0x11116c1e
mov eax, 0x111eab08
sub eax, esi
mov dword [ebp - 0x128], 0
mov ebx, esi
mov dword [ebp - 0x134], eax
jmp 0x11116b57
mov eax, dword [ebp - 0x134]
mov edi, dword [eax + ebx]
lea edx, [ebp - 0x12c]
push edx
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
push edi
push edx
mov byte [ebp - 0x10c], 0
mov dword [ebp - 0x12c], 0x105
call fcn.11143bd0
add esp, 0x18
cmp dword [ebp + 8], 0
je 0x11116cda
test eax, eax
jne 0x11116d27
mov eax, dword [ebp - 0x118]
cmp eax, 1
je 0x11116bb8
cmp eax, 2
jne 0x11116d27
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x11116bc1
sub eax, edx
lea eax, [ebp + eax - 0x110]
push 0x111b7bec
push eax
call fcn.11081e70
add esp, 8
neg eax
sbb eax, eax
inc eax
cmp dword [ebp - 0x114], 0
jne 0x11116c67
test eax, eax
je 0x11116d27
mov dword [ebp - 0x130], 1
mov eax, dword [ebp - 0x114]
mov edi, dword [ebp - 0x124]
inc eax
mov dword [ebp - 0x114], eax
cmp eax, dword [ebp - 0x138]
jl 0x11116b20
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.aDvapi32.DLL_RegCloseKey]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x11116c3d
push esi
call fcn.11163aa5
add esp, 4
mov dword [edi], ebx
cmp dword [ebp - 0x11c], 0
pop esi
je 0x11116c55
push 0
push 0
push 0
push 0x57
call dword [sym.imp.uSEr32.dll_SystemParametersInfoA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.11162bb7
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
jne 0x11116c78
test eax, eax
jne 0x11116c81
jmp 0x11116d27
cmp ecx, 2
jne 0x11116d27
test esi, esi
je 0x11116cb0
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.11163a11
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x11116cb0
lea ecx, [ebp - 0x10c]
mov edx, eax
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x11116ca6
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x110]
push 1
push 0x11195264
push ecx
push 0
push edi
push edx
call dword [sym.imp.aDvapi32.DLL_RegSetValueExA]
mov dword [ebp - 0x11c], 1
jmp 0x11116d27
mov esi, dword [ebx]
test esi, esi
je 0x11116d21
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x11116ce5
mov ecx, dword [ebp - 0x110]
sub eax, edx
inc eax
push eax
mov eax, dword [ebp - 0x118]
push esi
push eax
push 0
push edi
push ecx
call dword [sym.imp.aDvapi32.DLL_RegSetValueExA]
push esi
mov dword [ebp - 0x11c], 1
call fcn.11163aa5
add esp, 4
mov dword [ebx], 0
mov esi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x128]
inc eax
add ebx, 4
mov dword [ebp - 0x128], eax
cmp eax, 0xf
jb 0x11116b51
jmp 0x11116bff