Function at 0x40ba23
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
push 0x45e2b0
call fcn.00414290
add esp, 4
push 0x45e2cc
call fcn.00414290
add esp, 4
call fcn.00404650
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xe8]
push ecx
mov edx, dword [0x46ce5c]
push edx
push 0x45e2e8
call fcn.00414290
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xbb8
push 1
push 0
push 0
mov ecx, dword [0x46ce5c]
push ecx
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push 0x45e314
call fcn.00414290
add esp, 4
call fcn.0040ad91
test eax, eax
je 0x40baab
mov ecx, dword [ebp - 0x20]
call fcn.0041341b
mov ecx, dword [ebp - 0x20]
add ecx, 0x1d0
call fcn.0041ecd0
push 0x45e338
call fcn.00414290
add esp, 4
push 0x4681d0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x46ce70], 1
call fcn.004121b4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x40bcc0
push 0x45e350
call fcn.00414290
add esp, 4
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0xc8], 0
je 0x40bb9f
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40bb34
push 0x45e384
call fcn.00414290
add esp, 4
jmp 0x40bb9f
push 0x45e3d4
call fcn.00414290
add esp, 4
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x40bb9f
mov edx, dword [ebp - 0x10]
push edx
push 0x45e41c
call fcn.00414290
add esp, 8
push 0x45e45c
call fcn.00414290
add esp, 4
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x40bb9f
push 0x45e478
call fcn.00414290
add esp, 4
push 0x45e494
call fcn.00414290
add esp, 4
cmp dword [0x4681c4], 0
je 0x40bc23
push 0xffffffffffffffff
mov edx, dword [0x4681c4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40bbdc
push 0x45e4c0
call fcn.00414290
add esp, 4
jmp 0x40bc23
push 0x45e510
call fcn.00414290
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x4681c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x40bc23
push 0
mov edx, dword [0x4681c4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x40bc23
push 0x45e560
call fcn.00414290
add esp, 4
push 0x45e590
call fcn.00414290
add esp, 4
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xc0], 0
je 0x40bca2
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40bc66
push 0x45e5c4
call fcn.00414290
add esp, 4
jmp 0x40bca2
push 0x45e610
call fcn.00414290
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x40bca2
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x45e660
call fcn.00414290
add esp, 4
cmp dword [ebp - 0xc], 5
je 0x40bcbb
cmp dword [ebp - 0xc], 6
jne 0x40bcc0
call fcn.004133eb
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
call dword [eax + 0x58]
push 0x45e694
call fcn.00414290
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]