Function at 0x401680
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
sub esp, 0xc4
push ebx
push edi
xor ebx, ebx
push 0x4012cc
mov edi, 4
push ebx
push ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4016c5
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [esp + 0x44]
push esi
lea ecx, [esp + 0xc]
push eax
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x4012b4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x401770
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push 0x401110
push eax
push ebx
push 0x4012b0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40174d
cmp dword [0x401110], 1
jne 0x401765
push ebx
push 0x402fd0
push ebx
push 0x66
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push edi
push 0x401110
mov edx, dword [esp + 0x14]
push edi
push ebx
push 0x4012b0
mov dword [0x401110], ebx
push edx
jmp 0x40175f
mov eax, dword [esp + 0xc]
push edi
push 0x401110
push edi
push ebx
push 0x4012b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push 0x7f00
push ebx
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], 6
call dword [sym.imp.USER32.dll_LoadCursorA]
push 1
push ebx
mov dword [esp + 0x40], eax
call esi
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push eax
call edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 0xd8]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], 0x401910
mov dword [esp + 0x48], 0x4012a8
mov dword [esp + 0x44], ebx
mov dword [esp + 0x24], 3
call dword [sym.imp.USER32.dll_RegisterClassExA]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push ebx
push ebp
mov eax, dword [esp + 0x64]
push ebx
cdq
sub eax, edx
push ebx
sar eax, 1
push 0x113
sub eax, 0x89
push 0x1fa
push eax
mov eax, dword [esp + 0x74]
cdq
sub eax, edx
sar eax, 1
sub eax, 0xfd
push eax
push 0x4a0000
push 0x40127c
push 0x4012a8
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 1
push ebx
mov dword [0x4031a0], eax
mov dword [esp + 0x84], 0x58
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 5
mov dword [esp + 0x90], 7
mov dword [esp + 0x94], 0x401
call esi
push eax
call edi
mov edi, 0x401260
or ecx, 0xffffffff
mov dword [esp + 0x90], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x94]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov edx, dword [0x4031a0]
push ebx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [esp + 0x68]
push ebx
push eax
call esi
test eax, eax
pop ebp
je 0x4018ef
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0x5c]
push ecx
call edi
push ebx
push ebx
lea edx, [esp + 0x64]
push ebx
push edx
call esi
test eax, eax
jne 0x4018da
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]