Function at 0x1001d2d0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050070
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x100701bc]
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 edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [0x100725c4], eax
call esi
push 0x38
mov dword [0x100725c8], eax
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.10030f30
add esp, 0xc
mov dword [ebp - 0x48], 1
cmp dword [ebp + 8], 3
mov eax, 0x7b
mov dword [ebp - 0x2c], 1
je 0x1001d350
mov eax, 0x7a
mov esi, dword [sym.imp.USER32.dll_SendInput]
mov word [ebp - 0x28], ax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x48]
push 0x1c
push eax
push 1
mov dword [ebp - 0x24], 2
call esi
cmp eax, 1
je 0x1001d3d1
push 0x12
push 0x1006172c
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
call fcn.1000dd80
lea edx, [ebp - 0x68]
mov dword [ebp - 4], 0
mov ecx, 0x100718c8
call fcn.10012a20
push eax
call fcn.1001d8d0
mov eax, dword [ebp - 0x54]
add esp, 4
cmp eax, 0x10
jb 0x1001d3c7
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.1000e380
mov eax, 0xffffffd9
jmp 0x1001d54e
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push 1
call esi
mov ebx, eax
cmp ebx, 1
je 0x1001d42b
push 0x1006172c
lea ecx, [ebp - 0x80]
call fcn.1000a640
lea edx, [ebp - 0x80]
mov dword [ebp - 4], 1
mov ecx, 0x100718c8
call fcn.10012a20
push eax
call fcn.1001d8d0
mov eax, dword [ebp - 0x6c]
add esp, 4
cmp eax, 0x10
jb 0x1001d3c7
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.1000e380
mov eax, 0xffffffd9
jmp 0x1001d54e
push 0x64
push 0
push 0x10072560
mov dword [0x10070b70], 0x12c
call fcn.10030f30
add esp, 0xc
push 0x10072540
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1001d050
push 0
push 0
call esi
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x1001d49b
sub esp, 0x18
mov ecx, esp
push 0x10061740
call fcn.1000a640
call fcn.1001cea0
add esp, 0x18
push 0x10072540
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 0xffffffd9
jmp 0x1001d54e
push 0
push 0
push 0
push 0x1001d270
push 0
push 0
call esi
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x1001d4bf
sub esp, 0x18
mov ecx, esp
push 0x10061754
jmp 0x1001d479
push 0xffffffffffffffff
push 0
push 0x100725c4
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
ja 0x1001d521
je 0x1001d549
sub eax, 0
je 0x1001d504
sub eax, 1
jne 0x1001d526
mov ecx, 0x1005fa15
sub edi, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x1001d4f0
mov ebx, 0xffffffe0
jmp 0x1001d526
mov ecx, 0x10072560
sub edi, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x1001d510
xor ebx, ebx
jmp 0x1001d526
cmp eax, 0xffffffff
je 0x1001d549
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push dword [ebp - 0x50]
call esi
push 0
push dword [ebp - 0x4c]
call esi
push 0x10072540
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, ebx
jmp 0x1001d54e
mov eax, 0xffffff99
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.1002db4b
mov esp, ebp
pop ebp
ret 8