Function at 0x100f22c0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
movups xmmword [rsp + 0x80], xmm6
mov eax, dword [rcx]
mov rdi, qword [rsp + 0x100]
mov qword [rsp + 0xe8], rdx
mov r12, rcx
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0xf8], r9
mov dword [rsp + 0x50], eax
cmp eax, 2
je 0x100f2aaa
ja 0x100f2968
test eax, eax
je 0x100f2b51
mov byte [rsp + 0x5f], 0
mov r15, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r14, r12
lea r13, [r12 + 0x168]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
nop dword [rax]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [r14 + 0x134]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x100f239c
cmp eax, 1
je 0x100f29c9
mov r12, r14
mov rcx, r13
call r15
xor edx, edx
mov rcx, r12
call sym.threads_stop
mov eax, dword [rsp + 0x50]
movups xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x70]
mov r9, qword [rsp + 0x118]
mov r8, qword [rsp + 0x110]
lea rcx, [r14 + 0x100]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov rdx, qword [rsp + 0x108]
mov qword [rsp + 0x20], rax
call sym.lzma_outq_read
mov rcx, r13
mov esi, eax
mov dword [rsp + 0x50], eax
call r15
cmp esi, 1
je 0x100f29e9
mov ebx, dword [rsp + 0x50]
test ebx, ebx
jne 0x100f2c1f
mov rbx, qword [rsp + 0xf8]
mov rax, qword [r14 + 0x150]
mov rsi, qword [rbx]
cmp rdi, rsi
jbe 0x100f26ed
test rax, rax
je 0x100f24f0
nop dword [rax]
mov rdx, qword [rax + 0x10]
mov r9, qword [rax + 8]
mov r8, rdi
mov rax, qword [r14 + 8]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x78], rdx
mov rdx, rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call sym.lzma_bufcpy
mov rax, qword [rsp + 0x78]
cmp qword [r14 + 8], rax
je 0x100f28c0
mov r10d, dword [rsp + 0x120]
cmp qword [rbx], rdi
sete sil
test r10d, r10d
setne al
and esi, eax
mov rax, qword [r14 + 0x150]
lea rcx, [rax + 0x160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [r14 + 0x150]
mov r11d, dword [rcx]
test r11d, r11d
je 0x100f2708
mov rax, qword [rsp + 0x78]
lea r8, [rcx + 0x188]
mov qword [rcx + 0x10], rax
test sil, sil
je 0x100f26c0
mov dword [rcx], 2
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_WakeConditionVariable]
mov rax, qword [r14 + 0x150]
lea rcx, [rax + 0x160]
call r15
mov rsi, qword [rbx]
mov qword [r14 + 0x150], 0
cmp rdi, rsi
jbe 0x100f2740
mov eax, dword [r14 + 0x118]
cmp dword [r14 + 0x120], eax
jae 0x100f2730
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [r14 + 0x148]
test rax, rax
je 0x100f252e
mov qword [r14 + 0x150], rax
mov rax, qword [rax + 0x158]
mov qword [r14 + 0x148], rax
mov rcx, r13
call r15
mov r12, qword [r14 + 0x150]
test r12, r12
jne 0x100f2a26
mov eax, dword [r14 + 0x144]
cmp eax, dword [r14 + 0x140]
je 0x100f2730
mov rcx, qword [r14 + 8]
mov rdx, qword [rsp + 0xe8]
mov esi, eax
imul rsi, rsi, 0x198
add rsi, qword [r14 + 0x138]
call sym.lzma_alloc
mov qword [rsi + 8], rax
test rax, rax
je 0x100f2c02
movq xmm6, r14
lea r12, [rsi + 0x160]
movhps xmm6, qword [rsp + 0xe8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x188]
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
pxor xmm0, xmm0
movups xmmword [rsi + 0x20], xmm6
xor edx, edx
mov dword [rsi], 0
xor ecx, ecx
mov r9, rsi
lea r8, [sym.worker_start]
mov qword [rsi + 0x40], 0
mov qword [rsi + 0x50], 0
mov qword [rsi + 0x58], 0
mov qword [rsi + 0x60], 0
mov qword [rsi + 0x68], 0
mov qword [rsi + 0x70], 0
mov qword [rsi + 0x78], 0
mov qword [rsi + 0x80], 0
mov qword [rsi + 0x48], 0xffffffffffffffff
movups xmmword [rsi + 0x30], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
je 0x100f2be8
mov qword [rsi + 0x190], rax
add dword [r14 + 0x144], 1
mov qword [r14 + 0x150], rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [r14 + 0x150]
lea rcx, [r14 + 0x100]
mov dword [rsi], 1
mov qword [rsi + 0x10], 0
call sym.lzma_outq_get_buf
mov qword [rsi + 0x18], rax
mov rax, qword [r14 + 0x150]
lea rcx, [rax + 0x188]
call qword [sym.imp.KERNEL32.dll_WakeConditionVariable]
mov rax, qword [r14 + 0x150]
lea rcx, [rax + 0x160]
call r15
mov rax, qword [r14 + 0x150]
test rax, rax
jne 0x100f2420
jmp 0x100f2730
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_WakeConditionVariable]
mov rax, qword [r14 + 0x150]
lea rcx, [rax + 0x160]
call r15
mov rsi, qword [rbx]
mov rax, qword [r14 + 0x150]
cmp rdi, rsi
ja 0x100f2410
test rax, rax
je 0x100f2740
mov r9d, dword [rsp + 0x120]
test r9d, r9d
jne 0x100f2420
jmp 0x100f2740
add rcx, 0x160
call r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [r14 + 0x134]
mov rcx, r13
call r15
test ebx, ebx
jne 0x100f28fa
mov rax, qword [rsp + 0xf8]
mov rsi, qword [rax]
nop dword [rax + rax]
cmp rdi, rsi
je 0x100f2910
mov rax, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x118]
cmp qword [rax], rdx
je 0x100f237c
mov ebx, dword [r14 + 0x130]
test ebx, ebx
je 0x100f2778
cmp byte [rsp + 0x5f], 0
je 0x100f2a32
mov rcx, r13
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp rdi, rsi
jbe 0x100f27ab
cmp qword [r14 + 0x148], 0
je 0x100f27ab
mov eax, dword [r14 + 0x118]
cmp dword [r14 + 0x120], eax
jb 0x100f2838
lea rcx, [r14 + 0x100]
call sym.lzma_outq_is_readable
test al, al
jne 0x100f2838
mov r12d, dword [r14 + 0x134]
test r12d, r12d
jne 0x100f2838
test bl, bl
jne 0x100f2a50
mov edx, dword [r14 + 0x130]
lea rcx, [r14 + 0x190]
test edx, edx
je 0x100f2858
mov qword [rsp + 0x50], rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov edx, eax
sub edx, ebp
lea r8d, [rbx + rbp]
sub r8d, eax
cmp ebx, edx
mov rdx, r13
cmovbe r8d, r12d
call qword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
mov ebx, eax
test eax, eax
je 0x100f2890
test ebx, ebx
sete bl
cmp rdi, rsi
ja 0x100f278d
lea rcx, [r14 + 0x100]
call sym.lzma_outq_is_readable
test al, al
je 0x100f27bb
nop dword [rax + rax]
mov rcx, r13
call r15
test bl, bl
je 0x100f2348
mov dword [rsp + 0x50], 0x20
jmp 0x100f237c
mov r8d, 0xffffffff
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
test eax, eax
jne 0x100f2788
mov r8d, 0x1df
lea rdx, str.xz_5.2_src_common_mythread.h
lea rcx, [0x10555604]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x100f2788
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
je 0x100f2815
mov r8d, 0x1f9
lea rdx, str.xz_5.2_src_common_mythread.h
lea rcx, str.ret__GetLastError____ERROR_TIMEOUT
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x100f2815
mov rax, qword [r14 + 0x150]
lea rcx, [rax + 0x160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [r14 + 0x150]
mov eax, dword [rcx]
test eax, eax
je 0x100f2708
mov rax, qword [rsp + 0x78]
lea r8, [rcx + 0x188]
mov qword [rcx + 0x10], rax
jmp 0x100f24b9
mov r12, r14
xor edx, edx
mov rcx, r12
call sym.threads_stop
mov dword [rsp + 0x50], ebx
jmp 0x100f237c
mov r8d, dword [rsp + 0x120]
test r8d, r8d
je 0x100f2bdb
cmp dword [rsp + 0x120], 4
je 0x100f2956
mov ecx, dword [r14 + 0x120]
test ecx, ecx
jne 0x100f2749
cmp dword [rsp + 0x120], 3
je 0x100f2a63
cmp dword [rsp + 0x120], 2
jne 0x100f2749
mov dword [rsp + 0x50], 1
jmp 0x100f237c
cmp dword [rsp + 0x50], 3
lea r13, [rcx + 0xe8]
jne 0x100f2bb4
mov rax, qword [rsp + 0x118]
mov r8d, 0xc
mov rcx, r13
mov r9, qword [rsp + 0x108]
lea rdx, [r12 + 0xf8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x20], rax
call sym.lzma_bufcpy
xor eax, eax
cmp qword [r12 + 0xf8], 0xb
seta al
mov dword [rsp + 0x50], eax
jmp 0x100f237c
lea rcx, [0x1055563b]
mov r8d, 0x2be
lea rdx, str.xz_5.2_src_liblzma_common_stream_encoder_mt.c
call qword [sym.imp.msvcrt.dll__assert]
mov rcx, r13
call r15
mov rcx, qword [r14 + 0x60]
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0xe8]
call sym.lzma_index_append
mov rsi, qword [rsp + 0x118]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x110]
cmp qword [rax], rsi
jae 0x100f23e9
jmp 0x100f2348
add r12, 0x160
jmp 0x100f2651
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x58], ebx
mov byte [rsp + 0x5f], 1
mov ebp, eax
jmp 0x100f2778
mov rcx, r13
call r15
mov dword [rsp + 0x50], 0x20
jmp 0x100f237c
mov r8, qword [r14 + 0x60]
mov rdx, qword [rsp + 0xe8]
lea rcx, [r14 + 0x68]
mov r12, r14
call sym.lzma_index_encoder_init
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x100f237c
mov dword [r14], 2
mov rcx, qword [r14 + 0x60]
call sym.lzma_index_size
mov rdx, qword [r14 + 0x160]
lea rax, [rdx + rax + 0xc]
mov qword [r14 + 0x160], rax
mov rax, qword [rsp + 0x118]
mov rcx, qword [r12 + 0x68]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x28], rax
call qword [r12 + pe_nt_image_headers64]
mov dword [rsp + 0x50], eax
cmp eax, 1
jne 0x100f237c
mov rcx, qword [r12 + 0x60]
lea r13, [r12 + 0xe8]
call sym.lzma_index_size
lea rcx, [r12 + 0xb0]
mov rdx, r13
mov qword [r12 + 0xb8], rax
call sym.lzma_stream_footer_encode
mov dword [rsp + 0x50], 0xb
test eax, eax
jne 0x100f237c
mov dword [r12], 3
jmp 0x100f297a
mov rax, qword [rsp + 0x118]
mov r9, qword [rsp + 0x108]
lea rdx, [rcx + 0xf8]
mov r8d, 0xc
lea rcx, [rcx + 0xe8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x20], rax
call sym.lzma_bufcpy
cmp qword [r12 + 0xf8], 0xb
jbe 0x100f237c
mov qword [r12 + 0xf8], 0
mov dword [r12], 1
jmp 0x100f231b
mov r8d, 0x343
lea rdx, str.xz_5.2_src_liblzma_common_stream_encoder_mt.c
lea rcx, [0x1055567f]
call qword [sym.imp.msvcrt.dll__assert]
mov dword [rsp + 0x50], 0xb
jmp 0x100f237c
mov dword [rsp + 0x50], 0
jmp 0x100f237c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsi + 8]
mov rdx, qword [rsp + 0xe8]
call sym.lzma_free
mov rax, qword [r14 + 0x150]
test rax, rax
jne 0x100f2420
mov r12, r14
mov ebx, 5
jmp 0x100f28fd
mov r12, r14
jmp 0x100f2372