Function at 0x40a650
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f019d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0
xor edx, edx
movaps xmm0, xmmword [0x51eb40]
movups xmmword [ebp - 0x92], xmm0
mov word [ebp - 0x82], 0xeb
nop dword [eax]
nop dword [eax + eax]
movzx eax, byte [ebp + edx - 0x92]
push eax
call fcn.00459470
mov byte [ebp + edx - 0x92], al
inc edx
cmp edx, 0x11
jb 0x40a6a0
mov dword [ebp - 0x22], 0xf3fbebf1
xor ecx, ecx
mov dword [ebp - 0x1e], 0xf3fbb1f3
mov word [ebp - 0x1a], 0xf3
movzx eax, byte [ebp + ecx - 0x22]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x22], al
inc ecx
cmp ecx, 9
jb 0x40a6d1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [ebp - 0x22]
push edi
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x92]
push ecx
push eax
call edi
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov dword [ebp - 0x3e], 0xeaceebd1
mov dword [ebp - 0x3a], 0xd0e6edfa
mov dword [ebp - 0x36], 0xfcfaf5fd
mov word [ebp - 0x32], 0xeb
movzx eax, byte [ebp + ecx - 0x3e]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x3e], al
inc ecx
cmp ecx, 0xd
jb 0x40a724
mov dword [ebp - 0x2c], 0xf3fbebf1
xor ecx, ecx
mov dword [ebp - 0x28], 0xf3fbb1f3
mov word [ebp - 0x24], 0xf3
nop
movzx eax, byte [ebp + ecx - 0x2c]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 9
jb 0x40a750
lea eax, [ebp - 0x2c]
push eax
call esi
lea ecx, [ebp - 0x3e]
push ecx
push eax
call edi
push dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x40a9f0
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], ecx
cmp dword [eax], ecx
jbe 0x40a9ed
mov edx, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x5c], eax
nop
movups xmm1, xmmword [eax]
mov dword [ebp - 0x10], 0
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0xb8], xmm1
mov dword [ebp - 0x30], 0
psrldq xmm1, 4
movd eax, xmm1
movq qword [ebp - 0xa8], xmm0
cmp eax, dword [ebp - 0x50]
jne 0x40a9d6
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0xb0]
push edi
call dword [ebp - 0x58]
test eax, eax
js 0x40a9d3
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 2
push dword [ebp - 0x10]
call dword [ebp - 0x54]
test eax, eax
mov eax, dword [ebp - 0x30]
jns 0x40a82f
test eax, eax
jne 0x40a82f
push dword [ebp - 0x10]
call esi
jmp 0x40a9d3
push eax
call fcn.004d76ec
add esp, 4
mov edi, eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
push edi
push 2
push dword [ebp - 0x10]
call dword [ebp - 0x54]
test eax, eax
js 0x40a9cb
cmp word [edi], 0
jbe 0x40a9d0
push str.File
push dword [edi + 4]
call fcn.004c9ef4
add esp, 8
test eax, eax
je 0x40a9d0
movaps xmm0, xmmword [0x51e100]
xor ecx, ecx
movups xmmword [ebp - 0x76], xmm0
mov dword [ebp - 0x66], 0xfefaedf7
mov word [ebp - 0x62], 0xfb
nop
movzx eax, byte [ebp + ecx - 0x76]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x76], al
inc ecx
cmp ecx, 0x15
jb 0x40a890
lea eax, [ebp - 0x76]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push 0
push 0
push eax
push 0x40a540
push 0
push 0
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
push esi
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40a9a1
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40a9a1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], eax
test cx, cx
je 0x40a98e
push 1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x98]
call fcn.004ca160
add esp, 8
test eax, eax
je 0x40a98e
push edi
call fcn.004d6f96
push dword [ebp - 0x48]
call fcn.004d6f96
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push dword [ebp - 0x10]
call esi
push 1
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [ebp - 0x18]
push eax
push dword [ebp - 0xb0]
push edi
call dword [ebp - 0x58]
test eax, eax
js 0x40a9d3
push dword [ebp - 0x10]
call esi
jmp 0x40a9d3
push edi
call fcn.004d6f96
push dword [ebp - 0x48]
call fcn.004d6f96
add esp, 8
jmp 0x40a9c5
push 0
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call fcn.004d6f96
mov eax, dword [ebp - 0x48]
add esp, 4
test eax, eax
je 0x40a9c5
push eax
call fcn.004d6f96
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call esi
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x44]
add eax, 0x1c
mov dword [ebp - 0x5c], eax
cmp ecx, dword [edx]
jb 0x40a7b0
push edi
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402890
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret