Function at 0x68a2f560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 0
mov esi, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x250
call fcn.68a3fe40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x68a2f771
push edi
push 1
push dword [ebp + 8]
lea ecx, [ebx + 0x48]
push esi
call fcn.68a2e630
mov edi, eax
add esp, 0xc
lea eax, [ebx + 0x10]
test edi, edi
js 0x68a2f662
mov dword [ebp - 0x10], eax
xor esi, esi
lea eax, [ebx + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x2c]
mov dword [ebp - 8], eax
nop dword [eax]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x68a2f5e0
mov ecx, dword [ebp + esi*4 - 0x10]
inc esi
mov dword [ecx], eax
cmp esi, 3
jb 0x68a2f5c0
jmp 0x68a2f5f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x68a2f5f7
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x68a2f65f
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebx], eax
lea eax, [ebx + 0x48]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 4], 1
mov dword [ebx + 0x18], 0
mov dword [ebx + 8], 0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebx + 0x38], xmm0
mov dword [ebx + 0x40], eax
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x24], 0x1f4
mov dword [ebx + 0x1c], 0x400
mov dword [ebx + 0x20], 0x400
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x30], 0x68a09950
mov dword [ebx + 0x34], eax
jmp 0x68a2f6ac
lea eax, [ebx + 0x10]
mov dword [ebp - 0x18], eax
xor esi, esi
lea eax, [ebx + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x2c]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x18]
mov dword [ebp - 8], eax
nop
mov eax, dword [ebp + esi*4 - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x68a2f69b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + esi*4 - 0x18]
mov dword [eax], 0
inc esi
cmp esi, 5
jb 0x68a2f680
push ebx
call fcn.68a3fe50
add esp, 4
xor esi, esi
test edi, edi
js 0x68a2f768
push 0
push 0
push esi
push 0x68a2f4d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
test eax, eax
je 0x68a2f6db
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
mov dword [ebp - 4], ebx
mov dword [eax], esi
jmp 0x68a2f6fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ebx, esi
test edi, edi
jg 0x68a2f6ee
mov dword [ebp - 4], ebx
jmp 0x68a2f6fa
movzx edi, di
or edi, 0x80070000
mov dword [ebp - 4], esi
test ebx, ebx
je 0x68a2f768
cmp dword [ebx + 0x18], 0
lea esi, [ebx + 0x10]
je 0x68a2f71d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebx + 0xc]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
xor esi, esi
lea eax, [ebx + 0x2c]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x18]
mov dword [ebp - 8], eax
nop word [eax + eax]
mov ebx, dword [ebp + esi*4 - 0x18]
mov eax, dword [ebx]
test eax, eax
je 0x68a2f757
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
inc esi
cmp esi, 5
jb 0x68a2f740
push dword [ebp - 4]
call fcn.68a3fe50
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret