Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
cmp ebx, 2
push edi
mov dword [esp + 0x10], str.cmm.log
jge 0x401060
mov esi, dword [sym.imp.MSVCRT.dll_printf]
push str.Usage:_cmmcmd___command____command_parameters__n_n
call esi
add esp, 4
push str.where:__command__is_one_of_the_following:_n_n
call esi
add esp, 4
push str.shutdown___________shut_down_the_server_immediately._n
call esi
add esp, 4
push str.timeout__secs______get_set_the_server_time_out_to_the_specified_number_n
call esi
add esp, 4
push str.___________________of_seconds.__If_seconds_0_or_omitted_the_current_n
call esi
add esp, 4
push str.___________________shut_down_time_out_is_returned._n
call esi
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
call sub.ibmcmm.dll_public:_static_int___cdecl_Cmm::initialize_void_
mov esi, eax
test esi, esi
je 0x40108a
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
add eax, 0x40
push str.Error:_Cmm::initialize_failed.__rc___d_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push esi
call dword [sym.imp.MSVCRT.dll_exit]
mov ebp, dword [esp + 0x1c]
mov eax, str.dump
mov edi, dword [ebp + 4]
mov esi, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4010bc
test cl, cl
je 0x4010b8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4010bc
add eax, 2
add esi, 2
test cl, cl
jne 0x401098
xor eax, eax
jmp 0x4010c1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4010f1
cmp ebx, 3
jne 0x4010cf
mov ebp, dword [ebp + 8]
jmp 0x4010d3
mov ebp, dword [esp + 0x10]
push ebp
call sub.ibmcmm.dll_public:_static_int___cdecl_Cmm::dump_char__
add esp, 4
push ebp
push str.Memory_map_written_to__s_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, edi
mov eax, str.shutdown
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40111c
test cl, cl
je 0x401118
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40111c
add eax, 2
add esi, 2
test cl, cl
jne 0x4010f8
xor eax, eax
jmp 0x401121
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40113e
call sub.ibmcmm.dll_public:_static_int___cdecl_Cmm::shutdown_void_
push str.Shut_down_command_sent._n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, edi
mov eax, str.timeout
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401169
test cl, cl
je 0x401165
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401169
add eax, 2
add esi, 2
test cl, cl
jne 0x401145
xor eax, eax
jmp 0x40116e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401247
cmp ebx, 3
mov esi, str.Previous_time_out_was__d_seconds._n
jge 0x40118b
mov dword [esp + 0x18], eax
mov esi, str.Current_time_out_is__d_seconds._n
jmp 0x4011ff
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
push 0x403098
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x4011fb
mov esi, dword [sym.imp.MSVCRT.dll_printf]
push str.Error:_invalid_value_specified_for_seconds._n_n
call esi
add esp, 4
push str.Usage:_cmmcmd___command____command_parameters__n_n
call esi
add esp, 4
push str.where:__command__is_one_of_the_following:_n_n
call esi
add esp, 4
push str.shutdown___________shut_down_the_server_immediately._n
call esi
add esp, 4
push str.timeout__secs______get_set_the_server_time_out_to_the_specified_number_n
call esi
add esp, 4
push str.___________________of_seconds.__If_seconds_0_or_omitted_the_current_n
call esi
add esp, 4
push str.___________________shut_down_time_out_is_returned._n
call esi
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
push edx
call sub.ibmcmm.dll_public:_static_int___cdecl_Cmm::serverTimeout_int_
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
mov dword [esp + 0x18], ecx
je 0x401236
mov eax, 0x10624dd3
imul ecx
mov ecx, edx
sar ecx, 6
mov eax, ecx
shr eax, 0x1f
add ecx, eax
mov dword [esp + 0x18], ecx
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, edi
mov eax, str.trace
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401272
test cl, cl
je 0x40126e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401272
add eax, 2
add esi, 2
test cl, cl
jne 0x40124e
xor eax, eax
jmp 0x401277
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401316
cmp ebx, 3
jle 0x401289
mov esi, dword [ebp + 0xc]
jmp 0x40128d
mov esi, dword [esp + 0x10]
cmp ebx, 2
jle 0x401302
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
push 0x403098
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x401302
mov esi, dword [sym.imp.MSVCRT.dll_printf]
push str.Error:_invalid_value_specified_for_levels._n_n
call esi
add esp, 4
push str.Usage:_cmmcmd___command____command_parameters__n_n
call esi
add esp, 4
push str.where:__command__is_one_of_the_following:_n_n
call esi
add esp, 4
push str.shutdown___________shut_down_the_server_immediately._n
call esi
add esp, 4
push str.timeout__secs______get_set_the_server_time_out_to_the_specified_number_n
call esi
add esp, 4
push str.___________________of_seconds.__If_seconds_0_or_omitted_the_current_n
call esi
add esp, 4
push str.___________________shut_down_time_out_is_returned._n
call esi
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
lea edx, [esp + 0x18]
push esi
push edx
call 0x401370
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.MSVCRT.dll_printf]
push edi
push str.Error:_invalid_command:__s_n_n
call esi
add esp, 8
push str.Usage:_cmmcmd___command____command_parameters__n_n
call esi
add esp, 4
push str.where:__command__is_one_of_the_following:_n_n
call esi
add esp, 4
push str.shutdown___________shut_down_the_server_immediately._n
call esi
add esp, 4
push str.timeout__secs______get_set_the_server_time_out_to_the_specified_number_n
call esi
add esp, 4
push str.___________________of_seconds.__If_seconds_0_or_omitted_the_current_n
call esi
add esp, 4
push str.___________________shut_down_time_out_is_returned._n
call esi
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
jmp dword [sym.imp.ibmcmm.dll_public:_static_int___cdecl_Cmm::trace_enum_Cmm::TraceLevel___char__]