Function at 0x402200
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x402413
push ebx
push edi
lea ebx, [esi + 0x108]
push ebx
push dword [esi + 0x218]
lea edi, [esi + 4]
push eax
push edi
push str._t_t___CLOSE_ProcName:___s__by_user__hProcess:_p_ewp_app:_d_RegistrClassName:_s__n
push 0x41c6b8
call fcn.004042d5
push 0x41c6b8
call fcn.00402ac0
add esp, 0x1c
push 0
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
mov ecx, dword [esi + 0x218]
mov dword [ecx*4 + 0x41eab8], eax
mov eax, dword [esi + 0x218]
mov eax, dword [eax*4 + 0x41eab8]
test eax, eax
je 0x4022d3
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x218]
push dword [eax*4 + 0x41eab8]
push str._t_t___FindWindow_hwndcli:_p_send_message_WM_CLOSE__retval:_d__n
push 0x41c6b8
call fcn.004042d5
push 0x41c6b8
call fcn.00402ac0
add esp, 0x14
push 0x1770
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, 0xffffffff
jne 0x4022d6
push str.Error:_SendMsg_WM_CLOSE_2Process:_WaitForSingleObject_:_FAILED_n
push 0x41c6b8
call fcn.004042d5
push 0x41c6b8
call fcn.00402ac0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [eax*4 + 0x41eab8]
test edx, edx
je 0x4022f9
test ecx, ecx
je 0x4023a9
test edx, edx
jne 0x402315
push edi
lea eax, [esi + 0x108]
push eax
push str.Error:_SendMsg_WM_CLOSE_2Process:__RegistrClassName:_s_ProcName:_s__FindWindow
push 0x41c6b8
call fcn.004042d5
add esp, 0x10
jmp 0x402334
lea eax, [esi + 0x108]
test ecx, ecx
je 0x402346
push ecx
push edi
push eax
push str.Error:_SendMsg_WM_CLOSE_2Process:__RegistrClassName:_s_ProcName:_s__WaitForSingleObject___retval:_d
push 0x41c6b8
call fcn.004042d5
add esp, 0x14
push 0x41c6b8
call ebx
push eax
call fcn.00401990
add esp, 8
jmp 0x402367
push edi
push eax
push 0
push edx
push str.Error:_SendMsg_WM_CLOSE_2Process:_neznama_chyba_hwndcli:_p_retval:_d__RegistrClassName:_s_ProcName:_s__n
push 0x41c6b8
call fcn.004042d5
push 0x41c6b8
call fcn.00402ac0
add esp, 0x1c
push dword [esi]
push str.SendMsg_WM_CLOSE_2Process:_volam_TerminateProcess___hProcess:_p_n
push 0x41c6b8
call fcn.004042d5
push 0x41c6b8
call fcn.00402ac0
add esp, 0x10
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4023a9
push str.Error:_SendMsg_WM_CLOSE_2Process:_TerminateProcess
call ebx
push eax
call fcn.00401990
push edi
call fcn.004020a0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4023d3
push str.Error:_SendMsg_WM_CLOSE_2Process:_GetExitCodeProcess
call ebx
push eax
call fcn.00401990
push 0x41c6b8
call fcn.00402ac0
add esp, 0xc
cmp dword [ebp - 4], 0x103
jne 0x402403
push 0x103
push str.Error:_SendMsg_WM_CLOSE_2Process:_nepovedlo_se_zastavit_process_lpExitCode:_d__STILL_ACTIVE__proces_stale_bezi__n
push 0x41c6b8
call fcn.004042d5
push 0x41c6b8
call fcn.00402ac0
push edi
call fcn.004020a0
add esp, 0x14
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi], 0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret