Function at 0x408800
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x439528
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x449af0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00404b70
test eax, eax
je 0x4089a1
lea eax, [esi + 0x178]
push eax
call fcn.00404b70
push eax
call fcn.00404c10
cmp eax, 1
jne 0x4089a1
push str._r_n
lea ecx, [esp + 0x18]
call fcn.00403ce0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40887d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040f8f0
push 0x43f1fc
push 0x43f48c
call fcn.0040f9c0
mov eax, dword [esi + 0x184]
xor edi, edi
add esp, 8
cmp eax, edi
je 0x4088c8
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov edx, dword [eax + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x184]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x20]
push edi
push edi
push 0xc02
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
lea ecx, [esi + 0xcc]
call fcn.0041cb03
push edi
lea ecx, [esi + 0x78]
call fcn.0041cb03
push edi
push 0x3ea
mov ecx, esi
call fcn.0041c970
mov ecx, eax
call fcn.0041cb03
mov ecx, dword [0x44e528]
cmp ecx, edi
je 0x40891a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x44e528], edi
call fcn.0041259b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408934
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push 0x43fe40
push ecx
mov dword [esp + 0x28], edi
call fcn.00405d50
mov esi, dword [esp + 0x18]
add esp, 8
push edi
push edi
push esi
call fcn.00416e37
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40898a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
call fcn.00404b70
test eax, eax
je 0x408ab7
lea ecx, [esi + 0x178]
push ecx
call fcn.00404b70
push eax
call fcn.00404c10
cmp eax, 2
jne 0x408ab7
push 0x43fe54
lea ecx, [esp + 0x18]
call fcn.00403ce0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4089f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040f8f0
push 0x43f1fc
push 0x43f4b8
call fcn.0040f9c0
mov eax, dword [esi + 0x184]
xor edi, edi
add esp, 8
cmp eax, edi
je 0x408a42
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov edx, dword [eax + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x184]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x20]
push edi
push edi
push 0xc02
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
lea ecx, [esi + 0xcc]
call fcn.0041cb03
push edi
lea ecx, [esi + 0x78]
call fcn.0041cb03
push edi
push 0x3ea
mov ecx, esi
call fcn.0041c970
mov ecx, eax
call fcn.0041cb03
mov ecx, dword [0x44e528]
cmp ecx, edi
je 0x408a94
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x44e528], edi
push edi
push edi
push 0x43fe7c
call fcn.00416e37
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret