Function at 0x1041288
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 [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xa38], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
mov ebx, eax
call dword [sym.imp.ole32.dll_CoInitialize]
and dword [ebp - 0xa30], 0
mov dword [ebp - 0xa2c], eax
xor eax, eax
lea edi, [ebp - 0xa40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, 0x1082a98
mov dword [ebp - 0xa40], 8
mov dword [ebp - 0xa3c], 0x20ff
call fcn.01031fca
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebx
push 0x1004888
push 4
call fcn.0105e5ad
mov eax, dword [ebp - 0xa2c]
add esp, 0xc
test eax, eax
jl 0x1041c43
push 0x100
lea eax, [ebp - 0x618]
push eax
push 0x64
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
xor edi, edi
test eax, eax
jne 0x1041341
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
jmp 0x1041c43
push 0x1004868
inc edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
mov dword [ebp - 0xa28], eax
je 0x104136d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1041395
test ebx, ebx
je 0x1041bb5
push 0x1004854
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1041395
push 0x1004840
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x1041b87
test ebx, ebx
mov eax, dword [ebp - 0xa38]
mov dword [0x1081390], eax
je 0x10413be
push 0x1002068
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x10413be
call fcn.010330c9
mov edi, eax
jmp 0x1041334
call fcn.01032e4e
push 0
mov dword [0x107f520], edi
call fcn.01032b8d
test ebx, ebx
je 0x10415ac
push 0x1001e38
push ebx
call esi
neg eax
sbb eax, eax
neg eax
push 0x100482c
push ebx
mov dword [0x10813d0], eax
call esi
add esp, 0x10
test eax, eax
je 0x104140e
xor edi, edi
mov dword [0x1081460], 1
mov dword [0x107f524], edi
jmp 0x1041415
call fcn.01032ec7
xor edi, edi
cmp dword [0x10813d0], edi
je 0x1041423
mov dword [0x107f524], edi
push 0x105
lea eax, [ebp - 0xa24]
push eax
push 0xdb
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10414cc
lea eax, [ebp - 0xa24]
push 0x1004828
push eax
mov dword [ebp - 0xa2c], 1
mov dword [ebp - 0xa34], edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1041478
mov dword [ebp - 0xa2c], edi
jmp 0x104147e
mov dword [0x107f524], edi
push edi
lea eax, [ebp - 0xa34]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002120
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10414cc
push 4
lea eax, [ebp - 0xa2c]
push eax
push 4
push edi
push 0x1004810
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1002170
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x10414e0
push ebx
call fcn.010332da
mov edi, 0x1001e78
push edi
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x104151f
push 0x10047ec
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x104151f
push ebx
call fcn.0103337f
call fcn.010362ee
test eax, eax
je 0x104151f
push 0x10047c4
push 2
call fcn.0105e573
xor edi, edi
jmp 0x1041334
push 0x10047b8
push ebx
call esi
neg eax
sbb eax, eax
neg eax
push edi
push ebx
mov dword [0x10813d4], eax
call esi
add esp, 0x10
test eax, eax
je 0x104158d
xor eax, eax
mov dword [ebp - 0xa2c], eax
mov dword [ebp - 0xa30], eax
mov dword [0x10813d0], eax
call fcn.01043748
call fcn.01034b5a
push 0x105
lea eax, [ebp - 0x418]
push eax
call fcn.01059fd4
test eax, eax
je 0x1041589
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.010577fc
push 3
jmp 0x104159d
push 0x1004794
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x10415e1
push 4
call fcn.01032b8d
mov dword [0x107f520], 5
xor edi, edi
cmp dword [0x10813d0], edi
je 0x10415b9
mov dword [ebp + 0x14], edi
lea eax, [ebp - 0x618]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0xa38]
call fcn.010411bb
cmp eax, edi
mov dword [ebp - 0xa30], eax
je 0x104181e
jmp 0x1041a03
push 0x1004784
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x1041650
push 0x200
lea eax, [ebp - 0x818]
push eax
push ebx
call fcn.01036908
test eax, eax
jl 0x1041518
push 0x100475c
push ebx
xor edi, edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x104161a
inc edi
call fcn.01058866
test eax, eax
jne 0x1041518
call fcn.0105e83f
test eax, eax
je 0x1041518
push edi
push 1
lea eax, [ebp - 0x818]
push eax
call fcn.01036ce6
test eax, eax
jge 0x1041518
jmp 0x10413b7
mov edi, 0x1003870
push edi
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1041947
push 0x1003854
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1041947
push 0x1004854
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x104188d
push 0x1004744
push ebx
call esi
test eax, eax
pop ecx
pop ecx
mov edi, 0x1004728
jne 0x10416a8
push edi
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x10415ac
push 0x1004708
push 4
call fcn.0105e5ad
pop ecx
pop ecx
xor eax, eax
push eax
push eax
push eax
push 6
call fcn.0105989e
test eax, eax
jne 0x1041518
push edi
push ebx
call esi
test eax, eax
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
pop ecx
pop ecx
je 0x10416fb
push 0x100
lea eax, [ebp - 0x618]
push eax
push 0x81
push dword [ebp - 0xa38]
call edi
test eax, eax
je 0x1041518
call fcn.01034b5a
test eax, eax
je 0x104174f
push 0x105
lea eax, [ebp - 0x418]
push eax
push 0x127
push dword [ebp - 0xa38]
call edi
test eax, eax
je 0x104174f
mov al, byte [0x1082a9a]
neg al
sbb eax, eax
and eax, 0x180000
or eax, 0x30
push eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x418]
push eax
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1041334
call fcn.01032dd3
test eax, eax
jne 0x1041761
call fcn.01032db4
test eax, eax
je 0x104177e
push 0x105
lea eax, [ebp - 0x418]
push eax
push 0x128
push dword [ebp - 0xa38]
call edi
test eax, eax
jne 0x1041721
push 0x1004728
push ebx
call esi
pop ecx
pop ecx
test eax, eax
push 0x105
lea eax, [ebp - 0x418]
push eax
je 0x10417a9
mov dword [0x10813e0], 1
push 0x117
jmp 0x10417ae
push 0x110
push dword [0x1081390]
call edi
xor edi, edi
cmp eax, edi
jle 0x1041334
mov al, byte [0x1082a9a]
neg al
sbb eax, eax
and eax, 0x180000
or eax, 0x131
push eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x418]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x1041334
push 2
call fcn.01032b8d
lea eax, [ebp - 0x618]
push eax
push dword [ebp + 0x14]
mov dword [0x107f520], 3
push dword [ebp - 0xa38]
call fcn.010411bb
mov ebx, eax
cmp ebx, edi
jne 0x1041847
cmp dword [ebp - 0xa28], edi
je 0x1041334
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1041334
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x104187b
lea eax, [ebp - 0xa5c]
push eax
push ebx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x104187b
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 esi
test eax, eax
jne 0x104184f
jmp 0x104181e
call fcn.0105e83f
test eax, eax
jne 0x1041931
xor ebx, ebx
cmp dword [0x10813d0], ebx
jne 0x1041908
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, 0x100
push edi
lea eax, [ebp - 0x204]
push eax
push 0xba
push dword [0x1081390]
call esi
test eax, eax
je 0x1041908
push edi
lea eax, [ebp - 0x818]
push eax
push 0xad
push dword [0x1081390]
call esi
test eax, eax
je 0x1041908
mov al, byte [0x1082a9a]
neg al
sbb eax, eax
and eax, 0x180000
or eax, 0x10
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0xa28], ebx
je 0x1041518
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1041518
push 1
call fcn.01032b8d
mov dword [0x107f520], 2
jmp 0x10415ac
and dword [ebp - 0xa2c], 0
push edi
push ebx
mov dword [ebp - 0xa34], 1
call esi
test eax, eax
pop ecx
pop ecx
je 0x1041969
and dword [ebp - 0xa34], 0
push 0x100475c
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x1041981
mov dword [ebp - 0xa2c], 1
push 0x200
lea eax, [ebp - 0x204]
push eax
push ebx
call fcn.01036908
test eax, eax
jl 0x10419c7
call fcn.01058866
test eax, eax
jne 0x10419c7
call fcn.0105e83f
test eax, eax
je 0x10419c7
push dword [ebp - 0xa2c]
lea eax, [ebp - 0x204]
push dword [ebp - 0xa34]
push eax
call fcn.01036ce6
mov dword [ebp - 0xa30], eax
mov edi, dword [ebp - 0xa30]
jmp 0x1041334
lea eax, [ebp - 0xa5c]
push eax
push dword [ebp - 0xa30]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1041a03
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 0x10419d2
push edi
call fcn.01032df2
cmp ebx, edi
je 0x1041a4b
push 0x1001e78
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x1041a38
push edi
push edi
call fcn.010439aa
jmp 0x1041a4b
push 0x10043fc
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x1041a4b
call fcn.01036369
mov ecx, dword [0x10813fc]
cmp ecx, edi
je 0x1041a62
push 1
call fcn.01032ea1
mov dword [0x10813fc], edi
mov ecx, dword [0x1081400]
cmp ecx, edi
je 0x1041a79
push 1
call fcn.010333c2
mov dword [0x1081400], edi
mov ecx, dword [0x1081404]
cmp ecx, edi
je 0x1041a90
push 1
call fcn.010333c2
mov dword [0x1081404], edi
mov ecx, dword [0x1081408]
cmp ecx, edi
je 0x1041aa7
push 1
call fcn.010333c2
mov dword [0x1081408], edi
mov ecx, dword [0x108140c]
cmp ecx, edi
je 0x1041abe
push 1
call fcn.010333c2
mov dword [0x108140c], edi
push dword [ebp - 0xa30]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0xa28], edi
je 0x1041aea
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xa28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x10813dc], edi
je 0x1041b6f
cmp dword [0x107f52c], edi
je 0x1041b6f
cmp dword [0x10813cc], edi
jne 0x1041b6f
cmp dword [0x107f528], 0x107f3c0
je 0x1041b13
call fcn.010352d1
mov esi, 0x104
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01059beb
test eax, eax
je 0x1041b6f
lea eax, [ebp - 0x20c]
push eax
call fcn.01056bba
push 0x10046ec
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
test eax, eax
jl 0x1041b6f
lea eax, [ebp - 0x20c]
push eax
call fcn.01056f43
test eax, eax
je 0x1041b6f
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.0105df1d
mov esi, dword [0x10813f8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x1041c43
push 0x1001e78
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1041c1a
push 0x10046cc
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1041c1a
push 0x1001e38
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1041c1a
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x818]
push eax
push 0xac
push dword [0x1081390]
call esi
test eax, eax
je 0x1041c1a
push ebx
lea eax, [ebp - 0x204]
push eax
push 0xad
push dword [0x1081390]
call esi
test eax, eax
je 0x1041c1a
mov al, byte [0x1082a9a]
neg al
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 0x1041c3b
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.01047417
leave
ret 0x10