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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c304c
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.004c1db0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10
xor eax, eax
mov dword [ebp - 0x1014], 7
push str.SimpleNotepadSvr
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
call fcn.00419ca0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1040]
push 0x13
xor eax, eax
mov dword [ebp - 0x102c], 7
push str.EasyNotepad_Service
mov dword [ebp - 0x1030], 0
mov word [ebp - 0x1040], ax
call fcn.00419ca0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1058]
push 0x18
xor eax, eax
mov dword [ebp - 0x1044], 7
push str.Easy_Text_Editer_Service
mov dword [ebp - 0x1048], 0
mov word [ebp - 0x1058], ax
call fcn.00419ca0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
lea ecx, [ebp - 0x1074]
mov dword [ebp - 0x1074], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov edi, eax
mov eax, dword [ebp - 0x1074]
cmp eax, 2
jle 0x419216
xor esi, esi
jmp 0x419593
jne 0x41958e
xor eax, eax
mov dword [ebp - 0x105c], 7
mov dword [ebp - 0x1060], 0
mov word [ebp - 0x1070], ax
push 0x7fe
mov byte [ebp - 4], 3
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x3ff
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x4192bf
cmp word [ebp - 0x810], 0
jne 0x41927f
xor ecx, ecx
jmp 0x41929f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
jmp 0x419290
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419290
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1070]
call fcn.00419ca0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.MSVCR120.dll__wcsicmp]
push 0x4e8c38
push dword [edi + 4]
call esi
add esp, 8
test eax, eax
jne 0x419395
push 0x7fe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1070]
cmp dword [ebp - 0x105c], 8
cmovae eax, dword [ebp - 0x1070]
push 0x4e8c40
push eax
push str.__s___s
lea eax, [ebp - 0x1010]
push 0xffffffffffffffff
push eax
call fcn.0041a230
add esp, 0x14
lea ecx, [ebp - 0x1040]
cmp dword [ebp - 0x102c], 8
lea eax, [ebp - 0x1058]
lea edx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1040]
cmp dword [ebp - 0x1044], 8
push ecx
cmovae eax, dword [ebp - 0x1058]
lea ecx, [ebp - 0x1010]
cmp dword [ebp - 0x1014], 8
push eax
cmovae edx, dword [ebp - 0x1028]
call fcn.00435a00
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
add esp, 4
call fcn.00435cd0
add esp, 4
xor esi, esi
jmp 0x419476
push 0x4e8c58
push dword [edi + 4]
call esi
add esp, 8
test eax, eax
jne 0x4193dd
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
call fcn.00435b60
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
call fcn.00435aa0
jmp 0x41957a
push 0x4e8c60
push dword [edi + 4]
call esi
add esp, 8
test eax, eax
jne 0x419410
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
push ecx
call fcn.00435cd0
add esp, 4
jmp 0x41957a
push 0x4e8c68
push dword [edi + 4]
call esi
add esp, 8
test eax, eax
jne 0x41943f
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
call fcn.00435b60
jmp 0x41957a
push 0x4e8c40
push dword [edi + 4]
call esi
add esp, 8
test eax, eax
jne 0x4194bc
push str.SimpleNotepad_Mutex_1EFFA564_8C8D_4225_AF40_59CF473C43FC
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x419493
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or esi, 0xffffffff
cmp dword [ebp - 0x105c], 8
jb 0x419593
push dword [ebp - 0x1070]
call ebx
add esp, 4
jmp 0x419593
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
push ecx
call fcn.00435990
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41957a
push 0x4e8ce8
push dword [edi + 4]
call esi
add esp, 8
test eax, eax
jne 0x41957a
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
call fcn.00435670
test eax, eax
je 0x419507
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
call fcn.00435b60
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
call fcn.00435aa0
cmp dword [ebp - 0x102c], 8
lea esi, [ebp - 0x1040]
lea eax, [ebp - 0x1058]
cmovae esi, dword [ebp - 0x1040]
lea edx, [ebp - 0x1070]
cmp dword [ebp - 0x1044], 8
lea ecx, [ebp - 0x1028]
push esi
cmovae eax, dword [ebp - 0x1058]
cmp dword [ebp - 0x105c], 8
push eax
cmovae edx, dword [ebp - 0x1070]
cmp dword [ebp - 0x1014], 8
cmovae ecx, dword [ebp - 0x1028]
call fcn.00435720
add esp, 8
cmp dword [ebp - 0x105c], 8
jb 0x41958e
push dword [ebp - 0x1070]
call ebx
add esp, 4
mov esi, 1
cmp dword [ebp - 0x1044], 8
jb 0x4195a7
push dword [ebp - 0x1058]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x1044], 7
cmp dword [ebp - 0x102c], 8
mov dword [ebp - 0x1048], 0
mov word [ebp - 0x1058], ax
jb 0x4195d8
push dword [ebp - 0x1040]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x102c], 7
cmp dword [ebp - 0x1014], 8
mov dword [ebp - 0x1030], 0
mov word [ebp - 0x1040], ax
jb 0x419609
push dword [ebp - 0x1028]
call ebx
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret