Function at 0x140055080
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x448]
sub rsp, 0x548
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov r12, r9
mov qword [rsp + 0x58], r9
mov r13, r8
mov r14, rdx
mov qword [rsp + 0x38], rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
mov qword [rbp + 0x160], r9
xor r15d, r15d
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x220], xmm1
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x2b0]
call fcn.1400592d0
nop
mov qword [rbp + 0x1e8], r15
mov r8b, 1
mov rdx, r13
lea rcx, [rbp + 0x2b0]
call fcn.140059550
mov rcx, qword [rbp + 0x2c0]
test rcx, rcx
je 0x140055137
jle 0x140055130
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbp + 0x2c0], r15
mov rcx, qword [rbp + 0x2b8]
test rcx, rcx
je 0x140055152
jle 0x14005514b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x2b8], r15
mov rcx, qword [rbp + 0x2b0]
test rcx, rcx
je 0x14005516d
jle 0x140055166
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x2b0], r15
mov rcx, qword [rbp + 0x2f8]
test rcx, rcx
je 0x140055188
jle 0x140055181
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbp + 0x2f8], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x2d0], xmm0
mov qword [rbp + 0x3b8], r15
lea rax, [rbp + 0x3a8]
cmp qword [rbp + 0x3c0], 7
cmova rax, qword [rbp + 0x3a8]
mov word [rax], r15w
cmp byte [rbp + 0x2cc], 0
je 0x1400551db
lea rcx, [rbp + 0x3c8]
cmp qword [rbp + 0x3e0], 7
cmova rcx, qword [rbp + 0x3c8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rbp + 0x3d8], r15
lea rax, [rbp + 0x3c8]
cmp qword [rbp + 0x3e0], 7
cmova rax, qword [rbp + 0x3c8]
mov word [rax], r15w
mov ebx, r15d
cmp byte [rbp + 0x2c9], r15b
setne bl
mov rdx, r13
lea rcx, [rbp + 0x1f0]
call fcn.140053220
nop
lea rax, [0x14009d824]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [rbp + 0x1f0]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140053be0
nop
mov rdx, qword [rbp + 0x208]
cmp rdx, 7
jbe 0x14005528b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055286
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055286
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084d80
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x220], xmm1
movq rax, xmm1
test rax, rax
je 0x14005538f
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rbx, xmm0
test rbx, rbx
je 0x1400552c7
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x48]
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x220], xmm1
mov r8d, 0xc000010e
lea rdx, [rbp + 0x220]
mov rcx, r14
call fcn.140050880
nop
lea rcx, [rbp + 0x2b0]
call fcn.140059400
nop
mov r14d, 0xffffffff
test rbx, rbx
je 0x140055330
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140055330
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140055330
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x140055364
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140055364
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140055364
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rsi, qword [rsp + 0x38]
mov rax, rsi
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140085040
add rsp, 0x548
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 0x1000
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0x140]
call fcn.14005f410
nop
mov eax, dword [rbp + 0x140]
test eax, eax
jns 0x140055437
mov dword [r14], eax
mov byte [r14 + 0x18], 0
mov r14d, 0xffffffff
cmp byte [rbp + 0x158], 0
je 0x14005540f
mov rbx, qword [rbp + 0x150]
test rbx, rbx
je 0x14005540f
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14005540f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14005540f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
lea rcx, [rbp + 0x2b0]
call fcn.140059400
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140055330
mov eax, r14d
lock xadd dword [rcx + 8], eax
jmp 0x140055305
mov esi, 8
mov rcx, qword [rbp + 0x158]
cmp byte [rbp + 0x2c9], 0
jne 0x140055522
test cl, cl
je 0x1400561ff
mov rdx, qword [rbp + 0x148]
test rdx, rdx
je 0x1400554bd
mov eax, dword [rdx]
add eax, esi
mov dword [rbp + 0x1d4], eax
movzx eax, word [r13 + 0x10]
add ax, ax
mov word [rbp + 0x1d0], ax
mov word [rbp + 0x1d2], ax
test rdx, rdx
je 0x1400554d9
mov rax, qword [rdx + 0x18]
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov r9d, esi
lea r8, [rbp + 0x1d0]
mov rdx, qword [rdx]
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x158]
mov rdx, qword [rbp + 0x148]
jmp 0x1400554d9
mov dword [rbp + 0x1d4], esi
movzx eax, word [r13 + 0x10]
add ax, ax
mov word [rbp + 0x1d0], ax
mov word [rbp + 0x1d2], ax
test cl, cl
je 0x1400561ff
mov r8, r13
cmp qword [r13 + 0x18], 7
jbe 0x1400554ef
mov r8, qword [r13]
mov r9, qword [r13 + 0x10]
add r9, r9
test rdx, rdx
je 0x140055518
mov rax, qword [rdx + 0x18]
mov rdx, qword [rdx]
add rdx, rsi
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
call qword [rax + 0x20]
mov qword [rsp + 0x68], rsi
jmp 0x1400555ff
mov dword [rbp + 0x1d4], r15d
test cl, cl
je 0x1400561f9
mov ebx, 0x10
mov qword [rsp + 0x68], rbx
mov rdx, qword [rbp + 0x148]
test rdx, rdx
je 0x1400555a3
mov rax, qword [rdx]
add rax, rbx
mov qword [rbp + 0x1d8], rax
movzx eax, word [r13 + 0x10]
add ax, ax
mov word [rbp + 0x1d0], ax
mov word [rbp + 0x1d2], ax
test rdx, rdx
je 0x1400555c0
mov rax, qword [rdx + 0x18]
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov r9d, ebx
lea r8, [rbp + 0x1d0]
mov rdx, qword [rdx]
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x158]
mov rdx, qword [rbp + 0x148]
jmp 0x1400555c0
mov qword [rbp + 0x1d8], rbx
movzx eax, word [r13 + 0x10]
add ax, ax
mov word [rbp + 0x1d0], ax
mov word [rbp + 0x1d2], ax
test cl, cl
je 0x1400561f9
mov r8, r13
cmp qword [r13 + 0x18], 7
jbe 0x1400555d6
mov r8, qword [r13]
mov r9, qword [r13 + 0x10]
add r9, r9
test rdx, rdx
je 0x1400555ff
mov rax, qword [rdx + 0x18]
mov rdx, qword [rdx]
add rdx, rbx
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
call qword [rax + 0x20]
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x10]
cmp byte [rbp + 0x2c9], 0
je 0x1400556e1
cmp byte [rcx + 0x15], 0
je 0x1400556eb
mov byte [rsp + 0x30], 0
mov ebx, r15d
cmp byte [rbp + 0x2c9], r15b
setne bl
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x200], xmm1
mov r8d, 0xc
lea rdx, str.kernel32.dll
lea rcx, [rbp + 0x1f0]
call fcn.140051240
nop
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x230]
call fcn.140053220
nop
lea r14, [0x14009d824]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [rbp + 0x230]
lea rdx, [rbp + 0x1d0]
mov rcx, rdi
call fcn.140053be0
nop
mov rdx, qword [rbp + 0x248]
cmp rdx, 7
jbe 0x1400556fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x230]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400556f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400556f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp byte [rcx + 0x15], 1
jne 0x14005561e
mov byte [rsp + 0x30], 1
jmp 0x140055623
call fcn.140084d80
nop
mov qword [rsp + 0x20], r14
lea r9, [0x14009db18]
mov r8, qword [rbp + 0x1d0]
lea rdx, [rbp + 0x250]
mov rcx, rdi
call fcn.140054060
nop
mov r14d, 0xffffffff
mov rcx, qword [rbp + 0x1d8]
test rcx, rcx
je 0x140055767
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140055767
mov rbx, qword [rbp + 0x1d8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140055767
mov rcx, qword [rbp + 0x1d8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x208]
cmp rdx, 7
jbe 0x1400557b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400557ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400557ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084d80
movdqa xmm0, xmmword [0x14009efe0]
movdqu xmmword [rbp + 0x200], xmm0
mov word [rbp + 0x1f0], r15w
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
movzx edx, byte [rcx + 0x15]
movzx eax, byte [rbp + 0x2c9]
test dl, dl
jne 0x1400557f5
test al, al
jne 0x1400557f5
mov rsi, qword [rsp + 0x38]
mov dword [rsi], 0xc0000359
mov byte [rsi + 0x18], al
jmp 0x140055f59
mov ebx, r15d
mov dword [rsp + 0x50], ebx
mov ecx, 1
test dl, dl
je 0x14005580e
test al, al
cmovne ebx, ecx
mov dword [rsp + 0x50], ebx
mov r9d, r15d
test al, al
setne r9b
mov dword [rsp + 0x20], ecx
lea r8, str.LdrLoadDll
lea rdx, [rbp + 0x170]
mov rcx, rdi
call fcn.140054e60
nop
mov eax, dword [rbp + 0x170]
test eax, eax
jns 0x14005584c
mov rsi, qword [rsp + 0x38]
mov dword [rsi], eax
mov byte [rsi + 0x18], 0
jmp 0x140055f43
cmp ebx, 1
jne 0x1400559b4
cmp byte [rdi + 0x80], 0
jne 0x1400559b4
mov eax, dword [0x1400f1b7c]
test eax, eax
je 0x1400559b4
mov rcx, qword [0x1400f1b80]
cmp eax, 6
ja 0x140055896
jb 0x1400559b4
cmp ecx, ebx
ja 0x140055896
jb 0x1400559b4
cmp word [0x1400f1c8c], 0
jbe 0x1400558aa
cmp eax, 6
ja 0x1400559b4
jb 0x1400558aa
cmp ecx, 1
ja 0x1400559b4
mov dword [rbp + 0x1d0], 0x90909090
mov word [rbp + 0x1d4], 0x9090
mov rbx, qword [0x1400eeb20]
test rbx, rbx
je 0x1400559ad
mov dword [rbp + 0x210], r15d
mov rax, qword [rdi + 8]
mov r9d, 0x40
lea rcx, [rax + 0x70]
mov r12d, 4
cmp dword [rax + 0x78], 1
jne 0x1400558f9
mov rax, qword [rcx]
cmp byte [rax + 0x18], 1
cmovne r9d, r12d
mov rax, qword [rcx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0x210]
mov qword [rsp + 0x20], rdx
mov r8d, 6
mov rdx, rbx
call qword [rax + 0x10]
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov r9d, 6
lea r8, [rbp + 0x1d0]
mov rdx, rbx
call qword [rax + 0x20]
mov rax, qword [rdi + 8]
mov dword [rbp + 0x1e0], r15d
mov r9d, dword [rbp + 0x210]
mov ecx, r9d
lea rdx, [rax + 0x70]
cmp dword [rax + 0x78], 1
jne 0x14005598b
mov rax, qword [rdx]
cmp byte [rax + 0x18], 1
je 0x14005598b
cmp ecx, 0x20
jne 0x140055977
mov r9d, 2
jmp 0x14005598b
cmp ecx, 0x40
jne 0x140055981
mov r9d, r12d
jmp 0x14005598b
cmp ecx, 0x80
cmove r9d, esi
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0x1e0]
mov qword [rsp + 0x20], rdx
mov r8d, 6
mov rdx, rbx
call qword [rax + 0x10]
mov byte [rdi + 0x80], 1
mov qword [rbp + 0x1d0], r15
mov edx, r15d
cmp byte [rbp + 0x2c9], r15b
setne dl
lea rcx, [rbp + 0x1d0]
call fcn.140049a30
nop
mov rbx, qword [rbp + 0x1d0]
mov rax, qword [rbx]
mov rsi, qword [rax + 0x18]
mov qword [rbp - 0x10], 0xffffffffffff0001
mov qword [rbp - 8], 0xff
movabs r12, 0xffffffff00000003
mov qword [rbp], r12
mov edx, 0xffffffff
mov qword [rbp + 8], rdx
mov qword [rbp + 0x18], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r15
mov dword [rbp - 0x20], 2
mov r10d, 4
mov qword [rbp - 0x18], r10
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x48], 0xffffffffffff0001
mov qword [rbp + 0x50], 0xff
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x60], rdx
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x78], r15
movdqa xmmword [rbp + 0x80], xmm0
mov dword [rbp + 0x38], 2
mov qword [rbp + 0x40], r10
mov qword [rbp + 0x68], r15
cmp byte [rbp + 0x158], 0
je 0x140056205
mov rax, qword [rbp + 0x148]
test rax, rax
je 0x140055a84
mov rcx, qword [rax]
jmp 0x140055a8a
mov rcx, r15
mov rax, r15
mov qword [rbp + 0xa0], 0xffffffffffff0001
mov qword [rbp + 0xa8], 0xff
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc8], r15
movdqa xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r15
mov dword [rbp + 0x90], 2
mov qword [rbp + 0x98], 8
mov qword [rbp + 0xc0], rcx
test rax, rax
je 0x140055aea
mov rax, qword [rax]
jmp 0x140055aed
mov rax, r15
add rax, 0x800
mov qword [rbp + 0xf8], 0xffffffffffff0001
mov qword [rbp + 0x100], 0xff
mov qword [rbp + 0x108], r12
mov qword [rbp + 0x110], rdx
mov qword [rbp + 0x120], r15
mov qword [rbp + 0x128], r15
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0xe8], 2
mov qword [rbp + 0xf0], 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp - 0x20]
lea rax, [rbp + 0x140]
movdqu xmmword [rbp + 0x1f0], xmm0
mov qword [rbp + 0x200], r15
mov qword [rbp + 0x1e0], rax
mov qword [rbp + 0x210], rcx
lea r9, [rbp + 0x1e0]
lea r8, [rbp + 0x210]
mov rdx, r10
lea rcx, [rbp + 0x1f0]
call fcn.140051050
nop
cmp byte [rbp + 0x1c8], 0
je 0x14005620b
mov qword [rbp - 0x70], 0xffffffffffff0001
mov qword [rbp - 0x68], 0xff
mov qword [rbp - 0x60], r12
mov eax, 0xffffffff
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov dword [rbp - 0x80], 2
mov qword [rbp - 0x78], 8
mov rax, qword [rbp + 0x178]
mov qword [rbp - 0x50], rax
mov r9d, 1
lea r8, [rbp + 0x1f0]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call rsi
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140055c43
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055c32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055c32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084d80
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov r8, qword [rbp + 0x1f0]
test r8, r8
je 0x140055d27
mov rsi, qword [rbp + 0x1f8]
cmp r8, rsi
je 0x140055cbc
lea rdi, [r8 + 0x50]
mov rcx, qword [rdi - 0x10]
test rcx, rcx
je 0x140055ca3
mov rdx, qword [rdi]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140055c93
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140055d06
mov rcx, r8
call fcn.140084d80
mov qword [rdi - 0x10], r15
mov qword [rdi - 8], r15
mov qword [rdi], r15
add rdi, 0x58
lea rax, [rdi - 0x50]
cmp rax, rsi
jne 0x140055c63
mov r8, qword [rbp + 0x1f0]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rbp + 0x200]
sub rcx, r8
movabs rax, 0x2e8ba2e8ba2e8ba3
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x58
mov rax, r8
cmp rdx, 0x1000
jb 0x140055d0d
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055d0d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140084d80
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1f0], xmm0
mov qword [rbp + 0x200], r15
lea r9, [0x1400498f0]
mov edx, 0x58
mov r8d, 4
lea rcx, [rbp - 0x20]
call fcn.14008532c
lea r12, [rbx + 0xa8]
mov rax, qword [r12]
lea r8, sym.example_win32_directx11.exe_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r8
mov r9, r8
mov edx, 0x21c
mov rcx, r12
call qword [rax + 0x30]
mov rcx, qword [rdi]
add rcx, 0x240
xor edx, edx
call fcn.140061310
mov rsi, qword [rdi]
mov rcx, qword [rsp + 0x58]
cmp qword [rcx], 0
je 0x140055e60
mov rax, qword [rsi + 0x268]
test rax, rax
je 0x140055da6
lock inc dword [rax + 8]
mov rbx, qword [rbp + 0x1d0]
mov r12, qword [rsi + 0x260]
mov rdi, qword [rsi + 0x268]
mov rcx, qword [rcx]
mov qword [rbp + 0x1e0], rcx
test rdi, rdi
je 0x140055df5
mov eax, r14d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140055dee
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140055dee
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rbx, qword [rbp + 0x1d0]
mov rsi, qword [rsp + 0x60]
mov rsi, qword [rsi]
mov edi, dword [rbx + 0x108]
lea rcx, [rbx + 0xa8]
sub rdi, qword [rbx + 0xf0]
mov rax, qword [rcx]
add rdi, qword [rbx + 0x100]
call qword [rax + 8]
lea r9, [rbp + 0x1e8]
mov r8, rdi
mov rdx, rax
lea rcx, [rsi + 0x240]
cmp qword [rbp + 0x1e0], r12
jne 0x140055e4b
call fcn.140060590
mov r12, qword [rsp + 0x58]
mov edi, eax
test eax, eax
jmp 0x140055ea3
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x20], r12
call fcn.140060700
mov edi, eax
test eax, eax
jmp 0x140055ea3
mov edi, dword [r12 + 0x60]
sub rdi, qword [r12 + 0x48]
add rdi, qword [r12 + 0x58]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 8]
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x20], ecx
lea r9, [rbp + 0x1e8]
mov r8, rdi
mov rdx, rax
lea rcx, [rsi + 0x240]
call fcn.14005fca0
mov edi, eax
mov r12, qword [rsp + 0x58]
test eax, eax
js 0x140055eb5
mov edi, dword [rbp + 0x1e8]
mov eax, edi
test eax, eax
jns 0x14005603f
cmp dword [rbp + 0x250], 0
jl 0x14005603f
cmp byte [rsp + 0x30], 0
je 0x14005603f
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
add rcx, 0x240
cmp byte [rbp + 0x158], 0
je 0x1400561f3
mov rax, qword [rbp + 0x148]
test rax, rax
je 0x140055efa
mov rdx, qword [rax]
jmp 0x140055efd
mov rdx, r15
mov r8, qword [rsp + 0x68]
add r8, rdx
cmp byte [rbp + 0x2a8], 0
je 0x1400561f3
mov rdx, qword [rbp + 0x258]
call fcn.140061230
test eax, eax
jne 0x14005603f
mov rsi, qword [rsp + 0x38]
mov dword [rsi], edi
mov byte [rsi + 0x18], al
test rbx, rbx
je 0x140055f43
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp byte [rbp + 0x1c8], 0
je 0x140055f59
lea rcx, [rbp + 0x178]
call fcn.140050e70
nop
cmp byte [rbp + 0x2a8], 0
je 0x140055f6f
lea rcx, [rbp + 0x258]
call fcn.140050e70
nop
cmp byte [rbp + 0x158], 0
je 0x140055fb0
mov rbx, qword [rbp + 0x150]
test rbx, rbx
je 0x140055fb0
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140055fb0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140055fb0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
lea rcx, [rbp + 0x2b0]
call fcn.140059400
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140055ffa
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140055ffa
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140055ffa
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x140055369
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140055369
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140055369
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x140055369
cmp byte [rbp + 0x2c9], 0
setne r15b
mov rdx, r13
lea rcx, [rbp + 0x230]
call fcn.140053220
nop
lea rax, [0x14009d824]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [rbp + 0x230]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140053be0
nop
mov rdx, qword [rbp + 0x248]
cmp rdx, 7
jbe 0x1400560ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x230]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400560c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400560c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084d80
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140050880
nop
test rbx, rbx
je 0x1400560f7
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp byte [rbp + 0x1c8], 0
je 0x14005610d
lea rcx, [rbp + 0x178]
call fcn.140050e70
nop
cmp byte [rbp + 0x2a8], 0
je 0x140056123
lea rcx, [rbp + 0x258]
call fcn.140050e70
nop
cmp byte [rbp + 0x158], 0
je 0x140056164
mov rbx, qword [rbp + 0x150]
test rbx, rbx
je 0x140056164
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140056164
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140056164
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
lea rcx, [rbp + 0x2b0]
call fcn.140059400
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400561ae
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400561ae
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400561ae
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x140055369
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140055369
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140055369
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
jmp 0x140055369
call fcn.140049750
nop
call fcn.140049750
int3
call fcn.140049750
nop
call fcn.140049750
nop
call fcn.140049750
int3