Function at 0x43c2d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov dword [esp + 0xc], edi
movlpd qword [esp + 0x10], xmm0
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x43c3e4
mov edx, dword [eax]
mov esi, dword [eax + 4]
add edx, 0x18
mov ecx, dword [eax + 0x14]
mov eax, edx
adc esi, 0
movlpd qword [esp + 0x18], xmm0
or eax, esi
je 0x43c3e4
mov eax, dword [ecx + 0x4c]
lea edi, [esp + 0x18]
push edi
push 8
lea edi, [esp + 0x18]
mov ecx, dword [eax + 8]
push edi
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
je 0x43c3e4
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [edi]
push dword [esp + 0x24]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x43c376
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov edx, dword [edi + 0x3c]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
test edx, edx
je 0x43c3ad
mov eax, dword [edx + 0x14]
mov edx, dword [edx]
push 0
push 8
mov eax, dword [eax + 0x4c]
add edx, 0x18
mov ecx, dword [eax + 8]
lea eax, [esp + 0x20]
push eax
mov eax, dword [edi + 0x3c]
mov esi, dword [ecx]
mov eax, dword [eax + 4]
adc eax, 0
push eax
push edx
call dword [esi + 0x10]
mov edx, dword [edi + 0x44]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
test edx, edx
je 0x43c3e4
mov eax, dword [edx + 0x14]
mov edx, dword [edx]
push 0
push 8
mov eax, dword [eax + 0x4c]
add edx, 0x18
mov ecx, dword [eax + 8]
lea eax, [esp + 0x20]
push eax
mov eax, dword [edi + 0x44]
mov esi, dword [ecx]
mov eax, dword [eax + 4]
adc eax, 0
push eax
push edx
call dword [esi + 0x10]
mov eax, dword [edi + 0x20]
test eax, eax
je 0x43c3f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x20], 0
mov esi, dword [edi + 0x10]
test esi, esi
je 0x43c4d0
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
test eax, eax
jg 0x43c42b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esp + 0xc], eax
je 0x43c42b
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [esp + 0xc], eax
jne 0x43c4d0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0xffffffff
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x43c4d0
mov eax, dword [edi + 0x10]
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 0x10]
push 0xffffffffffffffff
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi + 0x10]
mov eax, dword [esi + 8]
test eax, eax
je 0x43c486
jle 0x43c47f
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov esi, dword [edi + 0x14]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test esi, esi
je 0x43c4c3
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x43c4c3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x43c4c3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x43c4d0
push ecx
call fcn.00439c50
pop edi
pop esi
mov esp, ebp
pop ebp
ret