Function at 0x10179cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xf023f
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push edi
push ebx
call fcn.1010aeb0
mov ecx, eax
call fcn.1010b760
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10179d2e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2f
call fcn.10003680
add esp, 4
test eax, eax
je 0x10179d46
lea ecx, [ebp - 4]
push ecx
push edi
push ebx
call eax
jmp 0x10179d52
lea eax, [ebp - 4]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 8], eax
test esi, esi
je 0x10179d60
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0x24]
test eax, eax
je 0x10179e19
cmp eax, 2
jne 0x10179dd4
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.10176d20
test eax, eax
je 0x10179e19
cmp eax, 5
jne 0x10179f6a
call fcn.10003180
cmp dword [eax + 0x12c], 0
jne 0x10179f6a
call fcn.100de050
test eax, eax
jne 0x10179f6a
push edi
push ebx
call fcn.100dc6e0
add esp, 8
test eax, eax
je 0x10179dcb
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.10176d20
test eax, eax
je 0x10179e19
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x10179f6a
call fcn.10003180
cmp dword [eax + 0x12c], 0
jne 0x10179f6a
call fcn.100de050
test eax, eax
jne 0x10179f6a
push edi
push ebx
call fcn.100dc890
add esp, 8
test eax, eax
je 0x10179dcb
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.100e5610
test eax, eax
jne 0x10179dcb
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x10179e38
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
push esi
push ecx
push 0x200
push 0x10202940
push dword [ebp - 4]
push edx
call dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10179e54
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x43
call fcn.10003680
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
test eax, eax
je 0x10179e7a
call eax
jmp 0x10179e80
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x10179e8e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10179eaa
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push dword [ebp - 8]
test eax, eax
je 0x10179ebf
call eax
jmp 0x10179ec5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10179ed0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x10179eff
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 8]
push 0x284b
mov dword [ebp - 0xc], eax
call fcn.10002490
mov ecx, dword [ebp + 0x10]
push ecx
jmp 0x10179fbe
cmp eax, 5
jne 0x10179f67
call fcn.10003180
cmp dword [eax + 0x12c], 0
jne 0x10179f67
call fcn.100de050
test eax, eax
jne 0x10179f67
push edi
push ebx
call fcn.100dc890
add esp, 8
test eax, eax
je 0x10179dcb
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.100e5610
test eax, eax
jne 0x10179dcb
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10123c20
push dword [ebp - 4]
mov esi, eax
call fcn.10034ac0
test esi, esi
je 0x1017a002
mov esi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x10179f85
mov eax, dword [ecx]
push esi
mov esi, dword [ebp + 0x10]
push esi
push 0x200
push edi
push ebx
push ecx
call dword [eax + 0x14]
jmp 0x10179f88
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x1017a00e
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 8]
push 0x2803
mov dword [ebp - 0xc], eax
call fcn.10002490
push esi
push edi
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.10002cb0
mov edx, dword [ebp - 8]
or esi, 0xffffffff
mov eax, esi
add edx, 0xfffffff0
add esp, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10179fea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1017a002
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x10179dcb
call fcn.10003180
cmp dword [eax + 0x12c], 0
jne 0x10179dcb
call fcn.100de050
test eax, eax
jne 0x10179dcb
push edi
push ebx
call fcn.100dc890
add esp, 8
test eax, eax
je 0x10179dcb
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x10179dcb
lea ecx, [ebp - 0xc]
call fcn.1001b890
push 0x2736
lea ecx, [ebp - 8]
call fcn.10002490
push esi
push edi
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.10002cb0
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.10007e10
lea ecx, [ebp - 0xc]
call fcn.10007e10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret