Function at 0x1016c39
Capabilities:
Check mutex on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edi, dword [ebp + 8]
push edi
call fcn.0101e31f
call sub.SHLWAPI.dll_Ordinal_241
xor esi, esi
push esi
push edi
push 0x1047588
mov ecx, 0x1046f10
mov dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], edi
call fcn.0101e193
test eax, eax
jl 0x102354f
call fcn.0101df77
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
jne 0x1016cbe
cmp dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
jne 0x1016cbe
push esi
push esi
push esi
push esi
push esi
push esi
push 0x1016f7c
push 0x1016f20
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x102345a
push ebx
push 0x1046088
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1047390
push 0x1017090
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
call fcn.0101dfc3
cmp eax, esi
je 0x1023475
push 0x1016ef0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0xc], ebx
je 0x1016d0b
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0101dfc3
cmp eax, esi
je 0x102346a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor ebx, ebx
inc ebx
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.SHELL32.dll_Ordinal_188]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call fcn.0101d935
push esi
push 0x12
push 0x12
push esi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
call fcn.0101e0bb
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.SHELL32.dll_Ordinal_660]
call fcn.0101d5b4
mov dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
call fcn.0101d63d
mov dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
call fcn.0101d1c9
call fcn.0101d32c
call fcn.0101d43c
cmp dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
je 0x1016d8f
call fcn.0101d4a9
call fcn.0101d3fb
cmp dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
jne 0x1023486
call fcn.0101d2ab
cmp dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
jne 0x1016dc8
push 0x1016eb4
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
call sub.SHDOCVW.dll_Ordinal_125
cmp ebx, esi
je 0x1016dc8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
push 3
pop ebx
je 0x101d102
push esi
call fcn.0101be20
call dword [sym.imp.SHDOCVW.dll_Ordinal_110]
mov dword [ebp - 8], esi
mov dword [ebp + 8], esi
mov dword [ebp - 4], esi
call fcn.01017051
test eax, eax
jne 0x1016e21
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateThreadRef]
test eax, eax
jl 0x1016e10
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetThreadRef]
call fcn.01016faf
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
call fcn.01003fed
cmp dword [ebp - 0xc], esi
je 0x1016e2f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 4], esi
je 0x1023526
push esi
push 1
push 0x590
push dword [0x1046078]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0101722e
call fcn.0101738a
call fcn.010170fb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.010171ed
cmp dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
jne 0x10234c7
push 0x15
push 0x1016e9c
call fcn.01011b47
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 4]
call sub.SHELL32.dll_Ordinal_201
jmp 0x1023514
call fcn.0101d0b9
inc eax
push eax
call fcn.0101d15a
call fcn.0101d125
test eax, eax
jne 0x1023490
jmp 0x1016dd7
push 0x10235b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1016cbe
cmp ebx, esi
je 0x1023475
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0102b45b
jmp 0x1023544
call fcn.0102b4cf
jmp 0x1016d9b
lea eax, [ebp - 4]
push eax
push 0x10235cc
push ebx
push esi
push 0x1020de0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1016dd7
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1016dd7
call edi
push dword [ebp - 0x10]
mov edi, eax
push ebx
push 1
push 0x1023588
push esi
call sub.SHLWAPI.dll_Ordinal_244
push edi
push ebx
push ebx
push 0x1023560
push esi
call sub.SHLWAPI.dll_Ordinal_244
jmp 0x1016e72
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1023514
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 8], esi
jne 0x10234ef
push 1
call fcn.0101be20
push esi
call fcn.0101d15a
call dword [sym.imp.SHDOCVW.dll_Ordinal_111]
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 0x14], esi
jl 0x102353d
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.SHELL32.dll_Ordinal_188]
push 0x1046f10
call fcn.0102b0d6
pop ebx
call fcn.0103be8f
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 0x10