Function at 0x10010c4
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Check os version
Create process on windows
Query or enumerate registry value
Set current directory
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
xor ebx, ebx
push esi
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
push 0x10013dc
push esi
mov dword [ebp - 4], esi
call fcn.01001590
pop ecx
test eax, eax
pop ecx
setne byte [ebp - 6]
call fcn.01001479
test al, al
jne 0x10017d1
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x100181a
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jl 0x100181e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0xac], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x1001340
xor esi, esi
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x10018d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1001896
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x1001378
push 0x80000002
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100123d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x10013bc
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x1001231
cmp dword [ebp - 0x2c], 1
jne 0x1001231
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1001231
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x10013bc
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x1001224
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 4]
call fcn.010015eb
test al, al
jne 0x10018e3
push 0x10013d4
mov byte [ebp - 5], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100179c
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xbb8
push edi
call esi
push 0xbb9
push edi
mov dword [ebp - 4], eax
call esi
push 0x10013c4
push edi
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x10012e9
cmp dword [ebp - 0xc], ebx
je 0x10012e9
cmp esi, ebx
je 0x10012f3
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0xc]
test eax, eax
jne 0x10012e9
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test byte [ebp - 0x80], 1
jne 0x1001785
push 0xa
pop eax
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x44]
call dword [ebp - 4]
cmp eax, 0x80070005
mov dword [ebp - 0x40], eax
setne byte [ebp - 5]
cmp esi, ebx
je 0x10012f3
call esi
test eax, eax
jne 0x10012fa
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoFreeUnusedLibraries]
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp byte [ebp - 5], bl
je 0x100179c
cmp dword [ebp - 0x24], ebx
pop edi
jne 0x1001a4a
cmp dword [ebp - 0x20], ebx
jne 0x1001a5c
cmp dword [ebp - 0x14], ebx
je 0x1001330
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
movzx eax, word [ebp - 0x7c]
jmp 0x10012d3
cmp eax, 5
jne 0x10011a4
jmp 0x100130f
cmp byte [ebp - 6], bl
je 0x1001968
jmp 0x100130f
cmp byte [ebp - 6], bl
mov dword [ebp - 0x14], ebx
jne 0x100181a
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0xc0000002
push ebx
push 0x2900
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x100181a
push 0x1001ae4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10
push 0x1001a70
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop ebx
leave
ret
push 0x1001adc
push esi
call fcn.01001590
test eax, eax
pop ecx
pop ecx
je 0x1001155
push esi
call edi
mov esi, eax
lea eax, [esi + esi + 2]
push eax
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x100115e
inc esi
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100188e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100187a
call esi
jmp 0x1001886
call esi
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x100115e
mov eax, dword [ebp - 0x20]
jmp 0x100115b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x1001b10
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_FindWindowA]
test byte [ebp - 0x80], 1
je 0x10018ba
cmp word [ebp - 0x7c], bx
je 0x10018bc
xor esi, esi
cmp eax, ebx
je 0x10018ca
cmp esi, ebx
jne 0x10018ca
push eax
call fcn.01001c23
push esi
push dword [ebp - 0x10]
call fcn.01001b90
jmp 0x100130f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100178e
cmp dword [ebp - 4], ebx
mov esi, 0x1001ac8
je 0x100194e
push dword [ebp - 4]
call edi
push esi
mov dword [ebp - 0xc], eax
call edi
mov ecx, dword [ebp - 0xc]
lea edi, [ecx + eax + 1]
push edi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x100194e
push esi
push edi
push eax
call fcn.01001d36
push dword [ebp - 4]
push edi
push dword [ebp - 0x10]
call fcn.01001d86
push 0xa
push ebx
push dword [ebp - 0x10]
push 0x1001ab8
push 0x1001ad4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100130f
push 0xa
push ebx
push esi
push 0x1001ab8
push 0x1001ad4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x100130f
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [ebp - 4], ebx
mov edi, 0x2900
je 0x10019da
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x30]
shr eax, 0x10
mov dword [ebp - 0x64], eax
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
mov dword [ebp - 0x5c], eax
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x38]
shr eax, 0x10
mov dword [ebp - 0x54], eax
movzx eax, word [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
shr eax, 0x10
mov dword [ebp - 0x4c], eax
movzx eax, word [ebp - 0x34]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xc0000003
push ebx
push edi
call esi
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x10019e3
mov dword [ebp - 0xc], 0x1001ad2
jmp 0x10019e6
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xc0000001
push ebx
push edi
call esi
test eax, eax
je 0x1001a33
push 0x1001ae4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x14
push 0x1001a70
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x1001a33
push 0xa
push ebx
push ebx
push 0x1001a88
push 0x1001ad4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp - 4], ebx
je 0x100130f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100130f
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1001319
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1001322