Function at 0x4033e0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Query environment variable
Terminate process

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
push edi
push str.DPTRACE
call esi
add esp, 4
test eax, eax
je 0x40345b
cmp byte [eax], 0x30
je 0x40345b
push str.LPRINTLOG.MUTEX
push 0
push 0
mov byte [0x42d924], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x4307f4], eax
je 0x403438
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403438
push 0x4156a8
push str.lprint2.log
jmp 0x403442
push 0x4156a8
push str.lprint.log
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [0x42d920], eax
test eax, eax
jne 0x403460
mov byte [0x42d924], al
jmp 0x403460
mov eax, dword [0x42d920]
mov cl, byte [0x42d924]
test cl, cl
je 0x40347d
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push str.This_is_LPRINT_version_20.32b_n
push eax
call edi
add esp, 8
jmp 0x403483
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push str.LPRINT_PORT
call esi
add esp, 4
mov dword [0x430558], eax
test eax, eax
jne 0x4034b9
mov al, byte [0x42d924]
test al, al
je 0x4034af
mov eax, dword [0x42d920]
push str.No_port_defined_n
push eax
call edi
add esp, 8
mov eax, 0x41564c
mov dword [0x430558], eax
mov cl, byte [0x42d924]
test cl, cl
je 0x4034d5
mov ecx, dword [0x42d920]
push eax
push str.Port_is__s_n
push ecx
call edi
add esp, 0xc
mov al, byte [0x42d924]
mov ebx, dword [esp + 0x40]
test al, al
je 0x4034f4
mov edx, dword [0x42d920]
push ebx
push str.LPRINT_called_with_parameters___s_n
push edx
call edi
add esp, 0xc
call fcn.004054fe
test eax, eax
je 0x40352b
mov cl, byte [0x42d924]
test cl, cl
je 0x403720
push eax
mov eax, dword [0x42d920]
push str.NiInit_failed_with_code__d_n
push eax
call edi
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
push 6
push str._FILE
push ebx
xor esi, esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40367c
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebx + 6]
push 0x20
push eax
mov dword [esp + 0x18], eax
call esi
add esp, 8
test eax, eax
jne 0x403571
mov al, byte [0x42d924]
test al, al
je 0x403720
jmp 0x40360f
mov byte [eax], 0
inc eax
push 0x20
push eax
mov dword [esp + 0x1c], eax
call esi
add esp, 8
test eax, eax
jne 0x4035b2
mov al, byte [0x42d924]
test al, al
je 0x403720
mov edx, dword [0x42d920]
push str.Missing_parameter_n
push edx
call edi
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
lea ebp, [eax + 1]
push 0x20
push ebp
mov byte [eax], 0
call esi
add esp, 8
test eax, eax
jne 0x4035f0
mov al, byte [0x42d924]
test al, al
je 0x403720
mov eax, dword [0x42d920]
push str.Missing_parameter_n
push eax
call edi
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
lea ebx, [eax + 1]
push 0x20
push ebx
mov byte [eax], 0
call esi
add esp, 8
test eax, eax
jne 0x40362f
mov al, byte [0x42d924]
test al, al
je 0x403720
mov ecx, dword [0x42d920]
push str.Missing_parameter_n
push ecx
call edi
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
lea edi, [eax + 1]
push 0x20
push edi
mov byte [eax], 0
call esi
add esp, 8
test eax, eax
jne 0x403672
mov al, byte [0x42d924]
test al, al
je 0x403720
mov edx, dword [0x42d920]
push str.Missing_parameter_n
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
mov esi, dword [esp + 0x10]
mov byte [eax], 0
inc eax
jmp 0x40368c
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x40]
test esi, esi
je 0x4036ad
push eax
mov eax, dword [esp + 0x18]
push edi
push ebx
push ebp
push eax
push esi
call fcn.00402be0
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x18
jmp 0x4037a9
mov al, byte [0x42d924]
test al, al
je 0x4036cf
mov ecx, dword [0x42d920]
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push str._n___RfcAccept________________rfc_handle_
push ecx
call edi
add esp, 8
jmp 0x4036d5
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
mov edx, dword [esp + 0x40]
push edx
call sub.LIBRFC32.dll_RfcAcceptExt
mov cl, byte [0x42d924]
mov dword [0x4307f0], eax
test cl, cl
je 0x403704
push eax
mov eax, dword [0x42d920]
push 0x4155b0
push eax
call edi
mov eax, dword [0x4307f0]
add esp, 0xc
test eax, eax
jne 0x403712
push str.RfcAccept
call fcn.00404f20
call fcn.00403840
test eax, eax
mov dword [0x430b58], eax
je 0x40372f
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
mov al, byte [0x42d924]
test al, al
je 0x403749
mov ecx, dword [0x42d920]
push str._n___RfcDispatch_....._n
push ecx
call edi
add esp, 8
mov edx, dword [0x4307f0]
push edx
call sub.LIBRFC32.dll_RfcDispatch
mov cl, byte [0x42d924]
mov dword [0x430b58], eax
test cl, cl
je 0x40377a
push eax
mov eax, dword [0x42d920]
push str._n___RfcDispatch______________rfc_rc___d
push eax
call edi
mov eax, dword [0x430b58]
add esp, 0xc
test eax, eax
je 0x40372f
push str.RfcDispatch
call fcn.00404f20
mov al, byte [0x42d924]
test al, al
je 0x4037a2
mov ecx, dword [0x42d920]
push str._n___RfcClose
push ecx
call edi
add esp, 8
push 0
call sub.LIBRFC32.dll_RfcClose
call fcn.0040551e
test eax, eax
je 0x4037ce
mov cl, byte [0x42d924]
test cl, cl
je 0x4037ce
mov edx, dword [0x42d920]
push eax
push str.NiExit_failed_with_code___d_n
push edx
call edi
add esp, 0xc
call fcn.00402790
test esi, esi
je 0x4037e2
push 0
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
je 0x403824
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0x18]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
jne 0x403805
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10