Function at 0x417070
Capabilities:
Accept command line arguments
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push str.GlobalHaloTray59B5F1F8_9C74_4524_9877_311411F10264
push 1
push 0
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x417285
cmp eax, 5
je 0x417285
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x41721d
test edi, edi
je 0x4170e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x210
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x108
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00407b80
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x274]
call fcn.0044c9a0
lea ecx, [ebp - 0x22c]
call fcn.004087e0
push str.autorun
lea ecx, [ebp - 0x244]
call fcn.00407b80
lea eax, [ebp - 0x244]
mov ebx, 1
push eax
lea ecx, [ebp - 0x274]
call fcn.0044d3f0
test eax, eax
jne 0x41718d
push str.autorun_theme
lea ecx, [ebp - 0x22c]
call fcn.00407b80
lea eax, [ebp - 0x22c]
mov ebx, 3
push eax
lea ecx, [ebp - 0x274]
call fcn.0044d3f0
test eax, eax
jne 0x41718d
xor esi, esi
jmp 0x417192
mov esi, 1
test bl, 2
je 0x4171a2
lea ecx, [ebp - 0x22c]
call fcn.004087e0
lea ecx, [ebp - 0x244]
call fcn.004087e0
call fcn.0040f470
mov ecx, eax
call fcn.00410860
test eax, eax
jne 0x4171cd
call fcn.0040f470
mov ecx, eax
call fcn.00410880
test eax, eax
je 0x4171d2
mov eax, 1
push 0
push eax
push esi
push fcn.004597b0
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 0
push eax
push dword [ebp - 0x27c]
lea eax, [ebp - 0x214]
push eax
call fcn.00411530
test eax, eax
jne 0x41720d
push str._n__tWinMain:_CreateProcess_fail.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x274]
call fcn.0044cbe0
jmp 0x41737b
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00416010
cmp dword [0x5b43bc], 0
mov esi, eax
je 0x417265
push 0x5ad17c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5b43bc]
test ecx, ecx
je 0x41725a
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x5b43bc], 0
push 0x5ad17c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x417270
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret 0x10
push str._n__tWinMain:_find_existing_process.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push dword [0x5ad0cc]
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417374
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x417390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x278], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
jne 0x4172e0
xor ecx, ecx
jmp 0x4172f4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4172e5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x278]
call fcn.0040adc0
mov esi, dword [ebp - 0x278]
xorps xmm0, xmm0
movlpd qword [ebp - 0x21c], xmm0
mov dword [ebp - 0x220], 0
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x27c], 0
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x27c]
push eax
push 0x3e8
push 1
lea eax, [ebp - 0x220]
push eax
push 0
push 0x4a
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x417374
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d684f
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00406210
int3