Function at 0x437680
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
call fcn.00430570
xor esi, esi
cmp dword [esp + 0x58], esi
je 0x4377d3
xor ebp, ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x24]
call fcn.00476490
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00402de0
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x4377ca
mov edi, 1
cmp dword [esp + 0x10], edi
jle 0x4377a5
lea ecx, [ecx]
mov esi, dword [ebx + edi*4]
mov ecx, esi
mov al, byte [ecx]
cmp al, 0x2d
mov edx, str._svc
jne 0x437701
test al, al
je 0x43770b
mov al, byte [ecx + 1]
add ecx, 1
add edx, 1
cmp al, byte [edx]
je 0x4376f0
movsx eax, byte [ecx]
movsx edx, byte [edx]
sub eax, edx
jne 0x437717
call fcn.00447c60
mov ebp, 1
jmp 0x437796
mov ecx, esi
mov al, byte [ecx]
cmp al, 0x2d
mov edx, str._install_service
jne 0x437735
test al, al
je 0x43773f
mov al, byte [ecx + 1]
add ecx, 1
add edx, 1
cmp al, byte [edx]
je 0x437724
movsx edx, byte [edx]
movsx eax, byte [ecx]
sub eax, edx
jne 0x43774b
call fcn.00447da0
mov ebp, 1
jmp 0x437796
push str._uninstall_service
push esi
call fcn.00402f60
add esp, 8
test eax, eax
jne 0x437769
call fcn.00447fd0
mov ebp, 1
jmp 0x437796
lea eax, [edi + 1]
cmp eax, dword [esp + 0x10]
jge 0x437796
push str._instance
push esi
call fcn.00402f60
add esp, 8
test eax, eax
jne 0x437796
mov ecx, dword [ebx + edi*4 + 4]
push ecx
call fcn.0044dba0
add esp, 4
mov dword [0x4a9360], eax
add edi, 1
cmp edi, dword [esp + 0x10]
jl 0x4376e0
xor esi, esi
push ebx
call fcn.00402f40
add esp, 4
cmp ebp, esi
je 0x4377ca
call fcn.004305a0
lea ecx, [esp + 0x20]
call fcn.00476730
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
lea ecx, [esp + 0x20]
call fcn.00476730
mov edx, dword [esp + 0x50]
mov dword [0x4a9354], edx
call fcn.00441a00
call fcn.00430980
call fcn.0044d940
call fcn.0044a2a0
call fcn.0044d530
call fcn.00411da0
call fcn.00433e30
call fcn.0043b6e0
call fcn.0043e550
call fcn.00437ca0
call fcn.0043c810
call fcn.0044d4d0
call fcn.0044d990
cmp dword [0x4a9360], esi
jne 0x43784e
mov ecx, dword [0x4aa76c]
mov eax, ecx
cmp byte [eax], 0
je 0x43783b
add eax, 1
cmp byte [eax], 0
jne 0x437833
sub eax, ecx
je 0x43784e
push ecx
push esi
call fcn.0044ec80
add esp, 8
mov dword [0x4a9360], eax
cmp dword [0x4aa6b4], esi
jne 0x4378c9
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x4a9360]
cmp eax, esi
je 0x437894
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call fcn.00476850
mov eax, dword [esp + 0x24]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.00476730
jmp 0x4378a5
push str.EVERYTHING_MUTEX
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4378cd
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00436f70
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov dword [esp + 0x10], esi
mov edx, dword [0x4aa554]
push edx
call fcn.00440f60
add esp, 4
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 8
mov dword [esp + 0x30], 0x4415
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00437090
call fcn.00447280
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push 0x4375d0
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
push edx
call fcn.00450780
add esp, 8
cmp byte [0x4aa578], 0
je 0x43793d
call fcn.00435590
cmp byte [0x4aa548], 0
je 0x43794b
call fcn.0043c510
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.USER32.dll_WaitMessage]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
call edi
test eax, eax
je 0x437963
lea esp, [esp]
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
call esi
cmp eax, 0xffffffff
je 0x4379d1
test eax, eax
je 0x4379d1
cmp dword [esp + 0x34], 0x12
je 0x4379d1
lea edx, [esp + 0x30]
push edx
call fcn.00437510
add esp, 4
test eax, eax
jne 0x4379bc
lea eax, [esp + 0x30]
push eax
call ebp
lea ecx, [esp + 0x30]
push ecx
call ebx
push 0
push 0
push 0
push 0
lea edx, [esp + 0x40]
push edx
call edi
test eax, eax
jne 0x437980
jmp 0x437963
call fcn.00454e30
call fcn.0044f5e0
call fcn.004348d0
call fcn.0043c400
call fcn.00415440
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x4379fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4a936c], edi
je 0x437b7e
push 0x20000
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call fcn.004762c0
push 0x20000
lea ecx, [esp + 0x24]
call fcn.004762c0
push 0x20000
lea ecx, [esp + 0x14]
call fcn.004762c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.004441a0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
call fcn.00436c40
mov edx, dword [esp + 0x2c]
add esp, 0x18
mov byte [edx], 0
xor eax, eax
cmp dword [0x4a9360], edi
je 0x437ac5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push str.__instance__
push edi
push eax
push ecx
call fcn.00431580
mov edx, dword [0x4a9360]
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call fcn.00431580
mov edx, dword [esp + 0x30]
push 0x496394
push eax
mov eax, dword [esp + 0x3c]
push edx
push eax
call fcn.00431580
add esp, 0x30
cmp dword [0x4a9370], edi
je 0x437ae5
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push str.__install_start_menu_shortcuts
push eax
push ecx
push edx
call fcn.00431580
add esp, 0x10
cmp dword [0x4a9374], edi
je 0x437b05
mov ecx, dword [esp + 0x14]
push str.__install_folder_context_menu
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
call fcn.00431580
add esp, 0x10
cmp dword [0x4a9378], edi
je 0x437b25
mov edx, dword [esp + 0x10]
push str.__install_desktop_shortcut
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00431580
add esp, 0x10
cmp dword [0x4a937c], edi
je 0x437b45
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push str.__install_quick_launch_shortcut
push eax
push ecx
push edx
call fcn.00431580
add esp, 0x10
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push edi
push edi
call fcn.00436cb0
add esp, 0x18
lea ecx, [esp + 0x10]
call fcn.00476730
lea ecx, [esp + 0x20]
call fcn.00476730
lea ecx, [esp + 0x18]
call fcn.00476730
mov eax, dword [0x4a9358]
cmp eax, edi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x437b96
push eax
call esi
mov dword [0x4a9358], edi
mov eax, dword [0x4a935c]
cmp eax, edi
je 0x437ba8
push eax
call esi
mov dword [0x4a935c], edi
call fcn.004383e0
call fcn.0043d330
call dword [sym.imp.ole32.dll_OleUninitialize]
call fcn.004414b0
call fcn.00433e40
call fcn.0043b6f0
call fcn.0041e500
call fcn.0044d580
call fcn.0044d010
call fcn.0044d990
call fcn.004309a0
call fcn.00441a10
call fcn.004305a0
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret