Function at 0x1040979
Capabilities:
Accept command line arguments
Check mutex on windows
Create process on windows
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xa34], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.ole32.dll_CoInitialize]
xor edi, edi
push edi
mov ebx, eax
call esi
push edi
mov dword [ebp - 0xa2c], eax
mov dword [ebp - 0xa30], edi
call esi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor eax, eax
lea edi, [ebp - 0xa40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, 0x1074c44
mov dword [ebp - 0xa40], 8
mov dword [ebp - 0xa3c], 0x20ff
call fcn.0103318a
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebx
push 0x10044e0
push 4
call fcn.01055c8a
add esp, 0xc
cmp dword [ebp - 0xa2c], 0
jge 0x1040a20
mov eax, dword [ebp - 0xa2c]
jmp 0x10413b2
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x100
lea eax, [ebp - 0x618]
push eax
push 0x64
push dword [ebp - 0xa34]
call edi
test eax, eax
jne 0x1040a4f
xor esi, esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x10413b2
push 0x10044a0
call dword [sym.imp.SHELL32.dll_SetCurrentProcessExplicitAppUserModelID]
push 0x100447c
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
mov dword [ebp - 0xa28], eax
test eax, eax
je 0x1040a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1040aae
test ebx, ebx
je 0x1041328
push 0x1004468
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1040aae
push 0x1004454
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x10412fe
xor edi, edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
test eax, eax
jge 0x1040ac8
push 0x1004410
push 2
call fcn.01055c50
mov eax, dword [ebp - 0xa34]
mov dword [0x1073960], eax
cmp ebx, edi
je 0x1040b05
push 0x1001ff8
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x1040af1
call fcn.01034304
mov esi, eax
jmp 0x1040a42
push 0x10043f0
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x1040b05
mov dword [0x1072b8c], edi
call fcn.01034085
push edi
mov dword [0x1072134], 1
call fcn.01033dc4
cmp ebx, edi
je 0x1040cf8
push 0x1001df0
push ebx
call esi
neg eax
sbb eax, eax
neg eax
push 0x10043dc
push ebx
mov dword [0x107399c], eax
call esi
add esp, 0x10
test eax, eax
je 0x1040b58
xor edi, edi
mov dword [0x1073a18], 1
mov dword [0x107226c], edi
jmp 0x1040b5f
call fcn.01034102
xor edi, edi
cmp dword [0x107399c], edi
je 0x1040b6d
mov dword [0x107226c], edi
push 0x105
lea eax, [ebp - 0xa24]
push eax
push 0xdb
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1040c16
lea eax, [ebp - 0xa24]
push 0x10043d8
push eax
mov dword [ebp - 0xa38], 1
mov dword [ebp - 0xa2c], edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1040bc2
mov dword [ebp - 0xa38], edi
jmp 0x1040bc8
mov dword [0x107226c], edi
push edi
lea eax, [ebp - 0xa2c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002038
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1040c16
push 4
lea eax, [ebp - 0xa38]
push eax
push 4
push edi
push 0x10043c0
push dword [ebp - 0xa2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xa2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1002088
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x1040c2a
push ebx
call fcn.01034434
mov edi, 0x1001e30
push edi
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1040c67
push 0x100439c
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x1040c67
push ebx
call fcn.010344d9
call fcn.0103696b
test eax, eax
je 0x1040c67
push 0x1004374
push 2
call fcn.01055c50
jmp 0x1040a40
push 0x1004368
push ebx
call esi
neg eax
sbb eax, eax
neg eax
push edi
push ebx
mov dword [0x10739a0], eax
call esi
add esp, 0x10
test eax, eax
je 0x1040cd5
xor eax, eax
mov dword [ebp - 0xa38], eax
mov dword [ebp - 0xa30], eax
mov dword [0x107399c], eax
call fcn.01042f76
call fcn.01035712
push 0x105
lea eax, [ebp - 0x418]
push eax
call fcn.01058ef1
test eax, eax
je 0x1040cd1
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.010569c6
push 3
jmp 0x1040ce9
push 0x1004344
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x1040d70
push 4
call fcn.01033dc4
mov dword [0x1072134], 5
xor edi, edi
cmp dword [0x107399c], edi
je 0x1040d05
mov dword [ebp + 0x14], edi
push 0x1073a20
push 0x1073a28
push 0x10332d1
push 0x1001aac
call fcn.01033328
lea eax, [ebp - 0x618]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0xa34]
call fcn.010408ac
mov dword [ebp - 0xa30], eax
cmp eax, edi
jne 0x104118c
cmp dword [ebp - 0xa28], edi
je 0x1040d61
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1073a20
call fcn.01033354
jmp 0x1040a40
push 0x1004334
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x1040dc5
push 0x200
lea eax, [ebp - 0x204]
push eax
push ebx
call fcn.01036f85
test eax, eax
jl 0x1040a40
push 0x100430c
push ebx
xor edi, edi
call esi
pop ecx
pop ecx
test eax, eax
je 0x1040da9
inc edi
push edi
push 1
lea eax, [ebp - 0x204]
push eax
call fcn.010375b0
test eax, eax
jge 0x1040a40
jmp 0x1040aea
mov edi, 0x1003540
push edi
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10410c0
push 0x1003524
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10410c0
push 0x1004468
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1041004
push 0x10042f4
push ebx
call esi
pop ecx
pop ecx
mov edi, 0x10042d8
test eax, eax
jne 0x1040e1d
push edi
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x1040cf8
push 0x10042b8
push 4
call fcn.01055c50
xor eax, eax
push eax
push eax
push eax
push 6
call fcn.01058973
test eax, eax
jne 0x1040a40
push edi
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
pop ecx
pop ecx
test eax, eax
je 0x1040e6e
push 0x100
lea eax, [ebp - 0x618]
push eax
push 0x81
push dword [ebp - 0xa34]
call edi
test eax, eax
je 0x1040a40
call fcn.01035712
test eax, eax
je 0x1040ec4
push 0x105
lea eax, [ebp - 0x418]
push eax
push 0x127
push dword [ebp - 0xa34]
call edi
test eax, eax
je 0x1040ec4
movzx eax, byte [0x1074c46]
neg eax
sbb eax, eax
and eax, 0x180000
or eax, 0x30
push eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x418]
push eax
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1040a42
call fcn.0103400a
test eax, eax
jne 0x1040ed6
call fcn.01033feb
test eax, eax
je 0x1040ef3
push 0x105
lea eax, [ebp - 0x418]
push eax
push 0x128
push dword [ebp - 0xa34]
call edi
test eax, eax
jne 0x1040e94
push 0x10042d8
push ebx
call esi
pop ecx
pop ecx
test eax, eax
push 0x105
lea eax, [ebp - 0x418]
push eax
je 0x1040f1e
mov dword [0x10739ac], 1
push 0x117
jmp 0x1040f23
push 0x110
push dword [0x1073960]
call edi
xor esi, esi
cmp eax, esi
jle 0x1040a42
movzx eax, byte [0x1074c46]
neg eax
sbb eax, eax
and eax, 0x180000
or eax, 0x131
push eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x1040a42
push 2
call fcn.01033dc4
lea eax, [ebp - 0x618]
push eax
push dword [ebp + 0x14]
mov dword [0x1072134], 3
push dword [ebp - 0xa34]
call fcn.010408ac
mov ebx, eax
cmp ebx, esi
jne 0x1040fbe
cmp dword [ebp - 0xa28], esi
je 0x1040a42
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1040a42
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1040ff2
lea eax, [ebp - 0xa5c]
push eax
push ebx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1040ff2
lea eax, [ebp - 0xa5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xa5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0xa5c]
push eax
call edi
test eax, eax
jne 0x1040fc6
jmp 0x1040f95
call fcn.0105c7a1
test eax, eax
jne 0x10410aa
xor ebx, ebx
cmp dword [0x107399c], ebx
jne 0x1041081
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, 0x100
push edi
lea eax, [ebp - 0x818]
push eax
push 0xba
push dword [0x1073960]
call esi
test eax, eax
je 0x1041081
push edi
lea eax, [ebp - 0x204]
push eax
push 0xad
push dword [0x1073960]
call esi
test eax, eax
je 0x1041081
movzx eax, byte [0x1074c46]
neg eax
sbb eax, eax
and eax, 0x180000
or eax, 0x10
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x818]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0xa28], ebx
je 0x1040a40
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1040a40
push 1
call fcn.01033dc4
mov dword [0x1072134], 2
jmp 0x1040cf8
and dword [ebp - 0xa38], 0
push edi
push ebx
mov dword [ebp - 0xa2c], 1
call esi
pop ecx
pop ecx
test eax, eax
je 0x10410e2
and dword [ebp - 0xa2c], 0
push 0x100430c
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x10410fa
mov dword [ebp - 0xa38], 1
push 0x200
lea eax, [ebp - 0x818]
push eax
push ebx
call fcn.01036f85
test eax, eax
jl 0x1041150
push dword [ebp - 0xa38]
lea eax, [ebp - 0x818]
push dword [ebp - 0xa2c]
push eax
call fcn.010375b0
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x818]
push 0x100173c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1041150
push 0x1001794
call fcn.0105c8e5
mov esi, dword [ebp - 0xa30]
jmp 0x1040a42
lea eax, [ebp - 0xa5c]
push eax
push dword [ebp - 0xa30]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x104118c
lea eax, [ebp - 0xa5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xa5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [ebp - 0xa5c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x104115b
push edi
call fcn.01034029
cmp ebx, edi
je 0x10411d4
push 0x1001e30
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x10411c1
push edi
push edi
call fcn.01044af5
jmp 0x10411d4
push 0x100401c
push ebx
call esi
pop ecx
pop ecx
test eax, eax
je 0x10411d4
call fcn.010369e6
push 0x1073a20
call fcn.01033354
mov ecx, dword [0x10739c8]
cmp ecx, edi
je 0x10411f5
push 1
call fcn.010340dc
mov dword [0x10739c8], edi
mov ecx, dword [0x10739cc]
cmp ecx, edi
je 0x104120c
push 1
call fcn.0103451c
mov dword [0x10739cc], edi
mov ecx, dword [0x10739d0]
cmp ecx, edi
je 0x1041223
push 1
call fcn.0103451c
mov dword [0x10739d0], edi
mov ecx, dword [0x10739d4]
cmp ecx, edi
je 0x104123a
push 1
call fcn.0103451c
mov dword [0x10739d4], edi
push dword [ebp - 0xa30]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0xa28], edi
je 0x1041266
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x10739a8], edi
je 0x10412e2
cmp dword [0x1072610], edi
je 0x10412e2
cmp dword [0x1072b8c], edi
je 0x10412e2
cmp dword [0x1073998], edi
jne 0x10412e2
mov esi, 0x104
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01058c4e
test eax, eax
je 0x10412e2
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e5e
push 0x100429c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
test eax, eax
jl 0x10412e2
lea eax, [ebp - 0x20c]
push eax
call fcn.010561eb
test eax, eax
je 0x10412e2
push 0xa
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.010555fd
mov esi, dword [sym.imp.ole32.dll_CoUninitialize]
call esi
mov edi, dword [0x10739b4]
call esi
mov eax, edi
jmp 0x10413b2
push 0x1001e30
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1041389
push 0x100427c
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1041389
push 0x1001df0
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1041389
mov esi, 0x100
push esi
lea eax, [ebp - 0x818]
push eax
push 0xac
push dword [0x1073960]
call edi
test eax, eax
je 0x1041389
push esi
lea eax, [ebp - 0x204]
push eax
push 0xad
push dword [0x1073960]
call edi
test eax, eax
je 0x1041389
movzx eax, byte [0x1074c46]
neg eax
sbb eax, eax
and eax, 0x180000
or eax, 0x10
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0xa28], 0
je 0x10413aa
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 0x10