Function at 0x402e50
Capabilities:
Accept command line arguments
Check mutex on windows
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40b143
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push str.MODRegMODReg
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40305a
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
push 2
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x70], 1
call fcn.00409efc
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 0
call fcn.00409ede
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
push 0x40f2b0
push ecx
call esi
add esp, 8
test eax, eax
jne 0x402ef9
mov word [0x4103f0], 1
jmp 0x402f19
mov edx, dword [esp + 8]
push 0x40f2ac
push edx
call esi
add esp, 8
test eax, eax
jne 0x403049
mov word [0x4103f0], 2
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x6c], 2
je 0x402f39
mov ecx, eax
call fcn.00401fb0
jmp 0x402f3b
xor eax, eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 0
push ecx
mov ecx, eax
mov dword [0x410b5c], eax
call fcn.004028c0
push str.modreslanglang.xml
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0xc]
mov ecx, dword [0x410b5c]
push edx
call fcn.004020d0
test eax, eax
jne 0x402f91
mov ecx, dword [0x410b5c]
test ecx, ecx
je 0x40303b
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x40303b
call fcn.00404c20
test eax, eax
je 0x40303b
mov ecx, 0x4103f8
call fcn.004064d0
lea ecx, [esp + 0x20]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
mov ecx, 0x4103f8
call fcn.00407bf0
push 1
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405670
add esp, 0xc
push eax
mov ecx, 0x410b58
mov byte [esp + 0x70], 4
call fcn.00409efc
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 3
call fcn.00409ede
cmp word [0x4103f0], 1
jne 0x40306b
mov ecx, dword [0x410b5c]
lea edx, [esp + 0x14]
push str.Shield__MODRegShowInfo__DemoLicense
push edx
call fcn.00402370
mov eax, dword [eax]
push eax
mov eax, dword [0x410b58]
push eax
call esi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00409ede
test bl, bl
je 0x40306b
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 0
call fcn.00409ede
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [esp + 8]
call fcn.00409ede
mov ecx, dword [esp + 0x64]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret
push 0
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
push eax
call fcn.00405670
add esp, 0xc
push eax
mov ecx, 0x410b54
mov byte [esp + 0x70], 5
call fcn.00409efc
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 3
call fcn.00409ede
mov esi, dword [0x410b54]
push 0x64
mov ecx, 0x410b54
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call fcn.00404e80
add esp, 8
or ebx, 0xffffffff
mov ecx, 0x410b54
push ebx
call sub.MFC42.DLL_CString::ReleaseBuffer
call fcn.00403240
test eax, eax
jne 0x4030f5
mov ecx, dword [0x410b5c]
test ecx, ecx
je 0x4031bb
mov edx, dword [ecx]
push 1
call dword [edx]
jmp 0x4031bb
cmp word [0x4103f0], 1
jne 0x403104
call fcn.00403b60
lea eax, [esp + 0x18]
push eax
call fcn.00408f50
add esp, 4
push str._registerok.ini
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x78], 6
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00409ede
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 3
call fcn.00409ede
push str.registerok
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0
push 0
push 0
push esi
mov byte [esp + 0x7c], 7
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
lea edx, [esp + 0x1c]
push 0
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x410b5c]
test ecx, ecx
je 0x4031ad
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 3
call fcn.00409ede
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 0
call fcn.00409ede
mov dword [esp + 0x6c], ebx
jmp 0x403051