Function at 0x4042f0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x80d4
call fcn.00405370
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x80d0], eax
push ebx
push esi
mov ebx, ecx
xor ecx, ecx
push edi
call fcn.00404160
push 0x38
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x1000
mov dword [esp + 0x20], 0x1000
call dword [sym.imp.MSVCR120.dll_malloc]
mov edi, eax
add esp, 0x10
mov dword [esp + 0xc], edi
test edi, edi
je 0x404721
lea eax, [esp + 0x10]
push eax
push 0x1000
push edi
push 0x10
call dword [0x4083bc]
cmp eax, 0xc0000004
jne 0x40438b
push edi
call dword [sym.imp.MSVCR120.dll_free]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCR120.dll_malloc]
mov edi, eax
add esp, 8
mov dword [esp + 0xc], edi
jmp 0x40438f
mov esi, dword [esp + 0x10]
test edi, edi
je 0x404721
push 0
push esi
push edi
push 0x10
call dword [0x4083bc]
xor ecx, ecx
mov dword [0x4083dc], 1
xor esi, esi
mov dword [esp + 0x18], ecx
cmp dword [edi], ecx
jbe 0x404702
mov eax, dword [esp + 0xc]
add edi, 4
mov edx, dword [ebp + 8]
test edx, edx
je 0x4043d3
cmp edx, dword [edi]
jne 0x4046ee
push 0x803c
lea eax, [esp + 0x70]
mov dword [esp + 0x64], edi
push 0
push eax
mov dword [esp + 0x74], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x60]
cmp byte [edi + 4], 0x1c
jne 0x404453
push 0
push 0
push eax
push fcn.00404080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404447
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x4066b8
lea eax, [esp + 0xa4]
push eax
call dword [0x4083c8]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404459
push eax
call fcn.00404080
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
push 0
push 0x1007
push ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], 0
call dword [sym.imp.USER32.dll_SendMessageA]
or dword [esp + 0x1c], 1
or eax, 0xffffffff
cmp dword [ebp + 8], 0
jne 0x4044d3
mov dword [esp + 0x24], 0
lea eax, [esp + 0x80bc]
push dword [edi]
push 0x4065ac
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x80bc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102e
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
movzx ecx, byte [edi + 4]
call fcn.00404160
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102e
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [esp + 0x24]
movzx eax, word [edi + 6]
push eax
lea eax, [esp + 0x80c0]
push str.0x_04X
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x80bc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102e
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [esp + 0x24]
lea eax, [esp + 0xa0]
push 1
push eax
lea eax, [esp + 0x60]
push eax
call dword [0x4083b8]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102e
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x58]
push eax
call dword [0x4083b0]
inc dword [esp + 0x24]
lea eax, [esp + 0x80bc]
push dword [edi + 0xc]
push str._08X
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x80bc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102e
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [esp + 0x24]
movzx eax, byte [edi + 5]
push eax
lea eax, [esp + 0x80c0]
push str._08X
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
mov cl, byte [edi + 5]
add esp, 0xc
test cl, cl
jne 0x4045db
mov dword [esp + 0x30], 0x4065b4
jmp 0x40460f
cmp cl, 1
jne 0x4045ea
mov dword [esp + 0x30], str.PROTECT_FROM_CLOSE
jmp 0x40460f
cmp cl, 2
jne 0x4045f9
mov dword [esp + 0x30], str.INHERIT
jmp 0x40460f
cmp cl, 3
lea edx, [esp + 0x80bc]
mov eax, str.PROTECT_FROM_CLOSE__INHERIT
cmovne eax, edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102e
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [esp + 0x24]
lea eax, [esp + 0x80bc]
push dword [edi + 8]
push str._08X
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x80bc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102e
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x98]
or eax, dword [esp + 0x9c]
je 0x4046e2
inc dword [esp + 0x24]
lea eax, [esp + 0x98]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x80ac]
push eax
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x80b8]
push eax
movzx eax, word [esp + 0x80ba]
push eax
movzx eax, word [esp + 0x80bc]
push eax
lea eax, [esp + 0x80c8]
push str._02d:_02d:_02d
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x14
lea eax, [esp + 0x80bc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x102e
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0xc]
inc esi
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
inc ecx
add edi, 0x10
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax]
jb 0x4043c7
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.MSVCR120.dll_free]
push str.Handles_End_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov dword [0x4083dc], 0
mov ecx, dword [esp + 0x80dc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404ae7
mov esp, ebp
pop ebp
ret