Function at 0x401fb5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00402338
push 0x3e8
call fcn.004028e9
add esp, 4
test eax, eax
jne 0x401ff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.semop_error_no__d__
push 0x22b
push 0x4223a0
push 0x4223bc
call fcn.0040237f
add esp, 0x14
jmp 0x402334
call fcn.0040a7dd
call fcn.00402997
mov dword [ebp - 8], 0
jmp 0x402015
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x64
jge 0x40232f
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0x4c7
mov edx, dword [0x43639c]
cmp dword [edx + ecx + 4], 0
jne 0x402037
jmp 0x40200c
mov eax, dword [ebp - 8]
imul eax, eax, 0x4c7
mov ecx, dword [0x43639c]
lea edx, [ecx + eax + 8]
push edx
call fcn.0040173c
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x64
jl 0x40205e
jmp 0x40200c
mov eax, dword [ebp - 8]
imul eax, eax, 0x4c7
mov ecx, dword [0x43639c]
lea edx, [ecx + eax + 0x4a]
push edx
mov eax, dword [ebp - 8]
imul eax, eax, 0x4c7
mov ecx, dword [0x43639c]
lea edx, [ecx + eax + 0x29]
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4020dd
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xaf
mov dword [eax + 0x431e41], 0
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0x4c7
mov edx, dword [0x43639c]
lea eax, [edx + ecx + 8]
push eax
push str.Process_name__s__check_failed_because_hwnd0_
push 0x23e
push 0x4223fc
push 0x422418
call fcn.0040237f
add esp, 0x14
jmp 0x40225e
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0xaf
xor edx, edx
mov dl, byte [ecx + 0x431e45]
test edx, edx
jne 0x402181
mov eax, dword [ebp - 8]
imul eax, eax, 0x4c7
mov ecx, dword [0x43639c]
xor edx, edx
mov dl, byte [ecx + eax + 0xbb]
neg edx
sbb edx, edx
neg edx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xaf
mov dword [eax + 0x431e41], edx
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0xaf
cmp dword [ecx + 0x431e41], 0
jne 0x40217c
mov edx, dword [ebp - 8]
imul edx, edx, 0x4c7
mov eax, dword [0x43639c]
xor ecx, ecx
mov cl, byte [eax + edx + 0xbb]
push ecx
mov edx, dword [ebp - 8]
imul edx, edx, 0x4c7
mov eax, dword [0x43639c]
lea ecx, [eax + edx + 8]
push ecx
push str.Process_name__s__check_failed_because_state_d_
push 0x247
push 0x422458
push 0x422474
call fcn.0040237f
add esp, 0x18
jmp 0x402232
mov edx, dword [ebp - 0xc]
imul edx, edx, 0xaf
mov al, byte [edx + 0x431e46]
add al, 1
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0xaf
mov byte [ecx + 0x431e46], al
mov edx, dword [ebp - 0xc]
imul edx, edx, 0xaf
xor eax, eax
mov al, byte [edx + 0x431e46]
xor ecx, ecx
cmp eax, 0xa
setl cl
mov edx, dword [ebp - 0xc]
imul edx, edx, 0xaf
mov dword [edx + 0x431e41], ecx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xaf
cmp dword [eax + 0x431e41], 0
jne 0x40221d
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0xaf
xor edx, edx
mov dl, byte [ecx + 0x431e46]
push edx
mov eax, dword [ebp - 8]
imul eax, eax, 0x4c7
mov ecx, dword [0x43639c]
lea edx, [ecx + eax + 8]
push edx
push str.Process_name__s__check_failed_because_WaitAckDelayCount_d_
push 0x252
push 0x4224c0
push 0x4224dc
call fcn.0040237f
add esp, 0x18
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0xbffc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [ebp - 0xc]
imul edx, edx, 0xaf
cmp dword [edx + 0x431e47], 0
je 0x402252
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40225e
push 5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0xc]
imul edx, edx, 0xaf
cmp dword [edx + 0x431e41], 0
jne 0x40232a
mov eax, dword [0x42e4f0]
push eax
push str.Restart_Process_time_count_:_d.
push 0x265
push 0x42250c
push 0x422528
call fcn.0040237f
add esp, 0x14
cmp dword [0x42e4f0], 0x14
jb 0x4022d8
mov ecx, dword [0x42e4f0]
push ecx
push str.Too_many_Process_restart_time_count_:_d._system_need_reboot_.
push 0x268
push 0x422578
push 0x422594
call fcn.0040237f
add esp, 0x14
push 0x14
call fcn.00401eda
add esp, 4
call fcn.00401456
call fcn.00401f11
jmp 0x40232a
mov edx, dword [ebp - 8]
imul edx, edx, 0x4c7
mov eax, dword [0x43639c]
lea ecx, [eax + edx + 8]
push ecx
push str.Process_name__s__will_restart.
push 0x26f
push str.Z:OSS_src_sourcezxmoni.c
push str..zxmoni.log
call fcn.0040237f
add esp, 0x14
push 3
call fcn.00401eda
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.00401484
add esp, 4
mov eax, dword [0x42e4f0]
add eax, 1
mov dword [0x42e4f0], eax
jmp 0x40200c
call fcn.00401275
mov esp, ebp
pop ebp
ret