Function at 0x4088b0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x439ae8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44aaf0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00404b70
test eax, eax
je 0x408a51
lea eax, [esi + 0x178]
push eax
call fcn.00404b70
push eax
call fcn.00404c10
cmp eax, 1
jne 0x408a51
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 0x40892d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040fd40
push 0x43f1fc
push 0x43f48c
call fcn.0040fe10
mov eax, dword [esi + 0x184]
xor edi, edi
add esp, 8
cmp eax, edi
je 0x408978
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.0041cfd8
push edi
lea ecx, [esi + 0x78]
call fcn.0041cfd8
push edi
push 0x3ea
mov ecx, esi
call fcn.0041ce45
mov ecx, eax
call fcn.0041cfd8
mov ecx, dword [0x44f528]
cmp ecx, edi
je 0x4089ca
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x44f528], edi
call fcn.00412a2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4089e4
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 0x441828
push ecx
mov dword [esp + 0x28], edi
call fcn.00405da0
mov esi, dword [esp + 0x18]
add esp, 8
push edi
push edi
push esi
call fcn.004172c7
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 0x408a3a
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 0x408b67
lea ecx, [esi + 0x178]
push ecx
call fcn.00404b70
push eax
call fcn.00404c10
cmp eax, 2
jne 0x408b67
push 0x44183c
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 0x408aa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040fd40
push 0x43f1fc
push 0x43f4b8
call fcn.0040fe10
mov eax, dword [esi + 0x184]
xor edi, edi
add esp, 8
cmp eax, edi
je 0x408af2
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.0041cfd8
push edi
lea ecx, [esi + 0x78]
call fcn.0041cfd8
push edi
push 0x3ea
mov ecx, esi
call fcn.0041ce45
mov ecx, eax
call fcn.0041cfd8
mov ecx, dword [0x44f528]
cmp ecx, edi
je 0x408b44
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x44f528], edi
push edi
push edi
push 0x441864
call fcn.004172c7
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