Function at 0x401220
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x230], ebx
call fcn.0046d4f0
test eax, eax
je 0x4012c4
push 0
push str.CAddRmv::CloseARWindow_n
push 0x633688
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x633588], eax
mov eax, 0x633688
mov dword [0x63358c], ecx
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401280
mov edi, 0x633588
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401291
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x633588
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
lea edx, [ebp - 0x22c]
push edx
xor edi, edi
push ebx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x22c]
push eax
push 8
call fcn.0041ea10
mov ecx, eax
call fcn.0041e850
mov esi, eax
cmp esi, 0xffffffff
je 0x4013da
lea ecx, [ebp - 0x228]
push ecx
push esi
mov dword [ebp - 0x228], 0x224
call fcn.0041ea10
mov ecx, eax
call fcn.0041e810
test eax, eax
je 0x401369
mov edx, dword [ebp - 0x220]
push edx
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x401369
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40134f
call fcn.0046d4f0
test eax, eax
je 0x401369
push str.TerminateProcess__TRUE_n
jmp 0x40135d
call fcn.0046d4f0
test eax, eax
je 0x401369
push str.TerminateProcess__FALSE_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
push ebx
mov dword [ebp - 0x234], eax
call esi
test eax, eax
je 0x4013c6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
inc edi
cmp edi, 5
ja 0x4013ac
push 0x3e8
call ebx
mov eax, dword [ebp - 0x230]
push eax
call esi
test eax, eax
jne 0x401390
jmp 0x4013c6
call fcn.0046d4f0
test eax, eax
je 0x4013c6
push str.Timeout:_IsWindow_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov edi, dword [ebp - 0x234]
push edi
call esi
test eax, eax
je 0x4013da
push edi
call dword [sym.imp.USER32.dll_SetFocus]
call fcn.0046d4f0
test eax, eax
je 0x40145a
push 0
push str.CAddRmv::CloseARWindow_n
push 0x633488
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x633488
mov dword [0x633388], ecx
add esp, 0xc
mov dword [0x63338c], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401416
mov edi, 0x633388
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401427
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x633388
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 4