Function at 0x100075334
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x4d0
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
xor r13d, r13d
mov r12, rdx
mov rbp, rcx
cmp qword [rcx], r13
jne 0x100075377
mov eax, 0x80004003
jmp 0x100075889
mov rdx, qword [rdx]
mov eax, 0x5c
lea rcx, [rsp + 0x50]
mov word [rsp + 0x4a8], ax
mov qword [rsp + 0x4b0], r13
mov dword [rsp + 0x4b8], r13d
call fcn.100017cc4
cmp eax, r13d
je 0x100075866
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.100017ac8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.10003a9e0
cmp dword [rbp + 0x18], r13d
mov r11d, r13d
mov r14d, 1
jle 0x100075432
mov rcx, r13
cmp rcx, r13
jl 0x1000755b5
cmp r11d, dword [rbp + 0x18]
jge 0x1000755b5
mov rax, qword [rbp + 0x10]
mov r8, qword [rcx + rax]
cmp r8, r13
je 0x10007552c
mov rax, qword [rsp + 0x40]
mov r10, qword [r8 + 0x60]
sub r10, rax
movzx edx, word [rax]
movzx r9d, word [rax + r10]
sub edx, r9d
jne 0x100075420
add rax, 2
test r9d, r9d
jne 0x10007540a
cmp edx, r13d
je 0x100075493
add r11d, r14d
add rcx, 8
cmp r11d, dword [rbp + 0x18]
jl 0x1000753da
mov ecx, 0x68
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
cmp rax, r13
je 0x1000755fd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rsi + 0x28], r13
mov qword [rsi + 0x30], r13
mov qword [rsi + 0x38], r13
mov qword [rsi + 0x40], r13
mov dword [rsi + 0x48], r13d
mov dword [rsi + 0x4c], r13d
mov qword [rsi + 0x50], r13
mov qword [rsi + 0x58], r13
mov rax, qword [rsp + 0x40]
cmp dword [rax - 0xc], r13d
jl 0x1000755ca
mov qword [rsi + 0x60], rax
mov rax, qword [rsp + 0x40]
lock add dword [rax - 0xc], r14d
jmp 0x100075600
mov rdx, r12
mov rcx, r8
call fcn.1000782a4
lea rbx, [0x1000a1170]
cmp eax, r13d
mov edi, eax
jge 0x100075812
mov rdx, qword [rsp + 0x48]
add rdx, 0xfffffffffffffff4
cmp rdx, rbx
je 0x1000754da
or ecx, 0xffffffff
lock xadd dword [rdx], ecx
dec ecx
cmp ecx, r13d
jg 0x1000754da
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call fcn.10007a490
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x100075504
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r13d
jg 0x100075504
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
call fcn.10007a490
mov rcx, qword [rsp + 0x4b0]
mov dword [rsp + 0x4b8], r13d
cmp rcx, r13
je 0x100075525
cmp rcx, 0xffffffffffffffff
je 0x100075525
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
jmp 0x100075889
mov rcx, qword [rsp + 0x48]
lea rbx, [0x1000a1170]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x10007555d
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r13d
jg 0x10007555d
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call fcn.10007a490
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x100075587
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r13d
jg 0x100075587
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
call fcn.10007a490
mov rcx, qword [rsp + 0x4b0]
mov dword [rsp + 0x4b8], r13d
cmp rcx, r13
je 0x10007536d
cmp rcx, 0xffffffffffffffff
je 0x10007536d
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10007536d
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [0x1000a1180]
mov qword [rsi + 0x60], rax
mov rdi, qword [rsp + 0x40]
cmp rdi, r13
jne 0x1000755e4
mov eax, r13d
jmp 0x1000755ed
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsi + 0x60]
mov r8, rdi
mov edx, eax
call fcn.100016504
jmp 0x100075600
mov rsi, r13
cmp rsi, r13
jne 0x10007568f
mov rcx, qword [rsp + 0x48]
lea rbx, [0x1000a1170]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x10007563a
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r13d
jg 0x10007563a
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call fcn.10007a490
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x100075664
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r13d
jg 0x100075664
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
call fcn.10007a490
mov rcx, qword [rsp + 0x4b0]
mov dword [rsp + 0x4b8], r13d
cmp rcx, r13
je 0x100075685
cmp rcx, 0xffffffffffffffff
je 0x100075685
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x8007000e
jmp 0x100075889
mov rdi, qword [rbp + 8]
mov rbx, qword [rbp]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x60]
xor r9d, r9d
mov qword [rsp + 0x30], r13
lea r8d, [r9 + 7]
mov edx, r14d
mov dword [rsp + 0x28], 0x42000000
mov qword [rsi + 0x28], rbx
mov qword [rsi + 0x30], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 0x38], rax
cmp rax, r13
je 0x10007571b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [rsi + 0x58], rax
cmp rax, r13
je 0x10007571b
lea r8, [0x100077bd4]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x50], rax
cmp rax, r13
jne 0x100075755
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, r14d
mov rcx, rsi
call fcn.1000751c0
mov r11, qword [rsp + 0x48]
lea rbx, [0x1000a1170]
add r11, 0xfffffffffffffff4
cmp r11, rbx
je 0x10007555d
or eax, 0xffffffff
lock xadd dword [r11], eax
jmp 0x100075548
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, r12
mov rcx, rsi
call fcn.1000782a4
cmp eax, r13d
mov edi, eax
jge 0x1000757a6
mov edx, r14d
mov rcx, rsi
call fcn.1000751c0
mov r11, qword [rsp + 0x48]
lea rbx, [0x1000a1170]
add r11, 0xfffffffffffffff4
cmp r11, rbx
je 0x1000754da
or eax, 0xffffffff
lock xadd dword [r11], eax
dec eax
cmp eax, r13d
jmp 0x1000754ca
mov ebx, dword [rbp + 0x18]
cmp ebx, dword [rbp + 0x1c]
jne 0x1000757f3
cmp dword [rbp + 0x1c], r13d
jne 0x1000757b9
mov ebx, r14d
jmp 0x1000757d0
add ebx, ebx
cmp ebx, r13d
jl 0x1000758b5
cmp ebx, 0xfffffff
ja 0x1000758b5
mov rcx, qword [rbp + 0x10]
movsxd rdx, ebx
mov r8d, 8
call qword [0x1000a1100]
cmp rax, r13
je 0x1000758b5
mov dword [rbp + 0x1c], ebx
mov qword [rbp + 0x10], rax
movsxd rcx, dword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
lea rdx, [rax + rcx*8]
cmp rdx, r13
je 0x100075807
mov qword [rdx], rsi
add dword [rbp + 0x18], r14d
lea rbx, [0x1000a1170]
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x10007583c
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r13d
jg 0x10007583c
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call fcn.10007a490
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x100075866
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r13d
jg 0x100075866
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
call fcn.10007a490
mov rcx, qword [rsp + 0x4b0]
mov dword [rsp + 0x4b8], r13d
cmp rcx, r13
je 0x100075887
cmp rcx, 0xffffffffffffffff
je 0x100075887
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.10007a3b0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov edx, r14d
mov rcx, rsi
call fcn.1000751c0
mov r11, qword [rsp + 0x48]
lea rbx, [0x1000a1170]
add r11, 0xfffffffffffffff4
cmp r11, rbx
je 0x1000758f2
or eax, 0xffffffff
lock xadd dword [r11], eax
dec eax
cmp eax, r13d
jg 0x1000758f2
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call fcn.10007a490
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x10007591c
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r13d
jg 0x10007591c
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
call fcn.10007a490
mov rcx, qword [rsp + 0x4b0]
mov dword [rsp + 0x4b8], r13d
cmp rcx, r13
je 0x10007593d
cmp rcx, 0xffffffffffffffff
je 0x10007593d
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x80004005
jmp 0x100075889