Function at 0x40206d
Capabilities:
Terminate thread

Disassembly:
push 0x1c
mov eax, 0x413ccf
call fcn.0040f4f7
push 0x41b518
mov dword [0x41b518], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x80
call fcn.00405bb6
pop ecx
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4020ac
push eax
call fcn.00401c94
jmp 0x4020ae
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [eax + 0x38]
lea esi, [edi + 0xc]
push esi
mov dword [0x41b100], eax
mov dword [ebp - 0x10], method.WorkerThread.virtual_4
call ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.004023b8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x41b100]
add edi, 0x5c
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 0x14], 0x401f2d
call ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.004023b8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x41b100]
add edi, 4
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 0x18], 0x401f8d
call ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004023b8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x154
call fcn.00405bb6
pop ecx
mov dword [ebp - 0x1c], eax
xor esi, esi
inc esi
mov dword [ebp - 4], esi
test eax, eax
je 0x402153
mov ecx, eax
call fcn.00401121
jmp 0x402155
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [0x41b0fc], eax
lea ecx, [eax + 0xcc]
mov edi, 0x401e77
mov eax, edi
call fcn.0040236e
mov edx, dword [0x41b0fc]
push 0x10
mov ecx, 0x40205b
pop eax
call fcn.004030f0
cmp dword [ebp + 8], 3
je 0x402197
push esi
call fcn.00401d90
pop ecx
call fcn.004030c0
jmp 0x402206
push 0
call fcn.00401d90
mov esi, dword [ebp + 0xc]
push dword [esi + 4]
push 0x104
push 0x41b108
call fcn.0040615b
add esp, 0x10
call fcn.004030c0
push dword [esi + 8]
call fcn.004062b5
pop ecx
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402201
mov eax, dword [0x41b0f8]
push dword [eax*4 + 0x41a048]
mov eax, dword [0x41b0fc]
mov eax, dword [eax + 0x144]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00401df6
mov eax, dword [0x41b0fc]
cmp dword [eax + 0xf8], 0
je 0x402227
push 0xffffffffffffffff
push dword [eax + 0xf4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41b0fc]
lea esi, [eax + 0xcc]
lea eax, [esi + 0xc]
push eax
mov dword [ebp + 8], eax
call ebx
mov ecx, dword [esi]
mov eax, dword [ecx]
jmp 0x402243
cmp dword [eax + 8], edi
je 0x402247
mov eax, dword [eax]
cmp eax, ecx
jne 0x40223c
cmp eax, ecx
je 0x402254
push eax
lea edi, [ebp - 0x1c]
call fcn.00401c61
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x41b100]
add esi, 4
lea eax, [esi + 0xc]
push eax
mov dword [ebp + 8], eax
call ebx
mov eax, dword [esi]
mov ecx, dword [eax]
jmp 0x402280
cmp dword [ecx + 8], 0x401f8d
je 0x402284
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x402275
cmp ecx, eax
je 0x402291
push ecx
lea edi, [ebp - 0x20]
call fcn.00401c61
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x41b100]
add esi, 0x5c
lea eax, [esi + 0xc]
push eax
mov dword [ebp + 8], eax
call ebx
mov eax, dword [esi]
mov ecx, dword [eax]
jmp 0x4022bd
cmp dword [ecx + 8], 0x401f2d
je 0x4022c1
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x4022b2
cmp ecx, eax
je 0x4022ce
push ecx
lea edi, [ebp - 0x24]
call fcn.00401c61
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x41b100]
add esi, 0x38
lea eax, [esi + 0xc]
push eax
mov dword [ebp + 8], eax
call ebx
mov eax, dword [esi]
mov ecx, dword [eax]
jmp 0x4022fa
cmp dword [ecx + 8], method.WorkerThread.virtual_4
je 0x4022fe
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x4022ef
cmp ecx, eax
je 0x40230b
push ecx
lea edi, [ebp - 0x28]
call fcn.00401c61
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x41b100]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40232c
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x402345
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x28], 0
mov ecx, dword [0x41b0fc]
test ecx, ecx
je 0x402355
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x41b100]
test ecx, ecx
je 0x402366
mov eax, dword [ecx]
push 1
call dword [eax + 8]
xor eax, eax
call fcn.0040f596
ret