Function at 0x40de80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430c90
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x43c4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [0x43ee88]
xor edi, edi
mov ebx, edx
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 1
jb 0x40ded1
mov eax, dword [eax]
push eax
call fcn.0041adcf
add esp, 4
cmp eax, dword [esi + 8]
jne 0x40defe
mov ecx, dword [esi]
lea eax, [ebp - 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40defe
cmp dword [ebp - 0x54], 0x103
jne 0x40defe
mov dword [ebp - 0x4c], edi
jmp 0x40df55
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x40df55
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x40df52
cmp dword [esi + 0x10], edi
je 0x40df52
mov eax, str.ERROR:_Could_not_terminate_the_hOutPutReadingThread_thread.
lea ecx, [ebp - 0x48]
call fcn.00406de0
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [esi + 0x10]
push eax
lea ebx, [ebp - 0x48]
call fcn.0040b7a0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00406e20
mov ebx, dword [ebp - 0x50]
xor edi, edi
mov dword [esi + 0x6c], edi
push 0xffffffffffffffff
push edi
add esi, 0x30
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.00401530
mov edx, dword [ebp - 0x58]
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
add esi, esi
lea edi, [esi + 0xc]
push edi
mov dword [ebp - 0x50], esi
mov dword [edx], edi
call fcn.00418644
add esp, 4
mov dword [ebx], eax
mov ecx, edi
test edi, edi
je 0x40dfa7
lea ebx, [ebx]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40dfa0
mov eax, dword [ebx]
mov edx, dword [ebp - 0x4c]
mov dword [eax], edi
mov ecx, dword [ebx]
mov dword [ecx + 4], edx
mov eax, dword [ebx]
mov dword [eax + 8], esi
cmp dword [ebp - 0x18], 0x10
jb 0x40e056
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x40e014
mov edx, dword [ebp - 0x4c]
push 0
push 0
push 0xffffffffffffffff
push edx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x40e061
mov ecx, dword [ebp - 0x4c]
push esi
push edi
push 0xffffffffffffffff
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40e061
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x50]
xor edi, edi
mov edx, dword [ebx]
push esi
add edx, 0xc
push edi
push edx
call fcn.0041b360
add esp, 0xc
cmp dword [ebp - 0x18], 0x10
jb 0x40e038
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00418932
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041893d
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
jmp 0x40dfcc
mov esi, dword [ebp - 0x50]
jmp 0x40e016