Function at 0x140054e30
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.140059080
nop
mov qword [rbp + 0x1e8], r15
mov r8b, 1
mov rdx, r13
lea rcx, [rbp + 0x2b0]
call fcn.140059300
mov rcx, qword [rbp + 0x2c0]
test rcx, rcx
je 0x140054ee7
jle 0x140054ee0
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbp + 0x2c0], r15
mov rcx, qword [rbp + 0x2b8]
test rcx, rcx
je 0x140054f02
jle 0x140054efb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x2b8], r15
mov rcx, qword [rbp + 0x2b0]
test rcx, rcx
je 0x140054f1d
jle 0x140054f16
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x2b0], r15
mov rcx, qword [rbp + 0x2f8]
test rcx, rcx
je 0x140054f38
jle 0x140054f31
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 0x140054f8b
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.140052fd0
nop
lea rax, [0x14009d834]
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.140053990
nop
mov rdx, qword [rbp + 0x208]
cmp rdx, 7
jbe 0x14005503b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055036
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055036
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084b70
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x220], xmm1
movq rax, xmm1
test rax, rax
je 0x14005513f
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rbx, xmm0
test rbx, rbx
je 0x140055077
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.140050630
nop
lea rcx, [rbp + 0x2b0]
call fcn.1400591b0
nop
mov r14d, 0xffffffff
test rbx, rbx
je 0x1400550e0
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400550e0
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 0x1400550e0
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x140055114
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140055114
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140055114
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.140084e30
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.14005f1c0
nop
mov eax, dword [rbp + 0x140]
test eax, eax
jns 0x1400551e7
mov dword [r14], eax
mov byte [r14 + 0x18], 0
mov r14d, 0xffffffff
cmp byte [rbp + 0x158], 0
je 0x1400551bf
mov rbx, qword [rbp + 0x150]
test rbx, rbx
je 0x1400551bf
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400551bf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400551bf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
lea rcx, [rbp + 0x2b0]
call fcn.1400591b0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400550e0
mov eax, r14d
lock xadd dword [rcx + 8], eax
jmp 0x1400550b5
mov esi, 8
mov rcx, qword [rbp + 0x158]
cmp byte [rbp + 0x2c9], 0
jne 0x1400552d2
test cl, cl
je 0x140055faf
mov rdx, qword [rbp + 0x148]
test rdx, rdx
je 0x14005526d
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 0x140055289
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 0x140055289
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 0x140055faf
mov r8, r13
cmp qword [r13 + 0x18], 7
jbe 0x14005529f
mov r8, qword [r13]
mov r9, qword [r13 + 0x10]
add r9, r9
test rdx, rdx
je 0x1400552c8
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 0x1400553af
mov dword [rbp + 0x1d4], r15d
test cl, cl
je 0x140055fa9
mov ebx, 0x10
mov qword [rsp + 0x68], rbx
mov rdx, qword [rbp + 0x148]
test rdx, rdx
je 0x140055353
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 0x140055370
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 0x140055370
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 0x140055fa9
mov r8, r13
cmp qword [r13 + 0x18], 7
jbe 0x140055386
mov r8, qword [r13]
mov r9, qword [r13 + 0x10]
add r9, r9
test rdx, rdx
je 0x1400553af
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 0x140055491
cmp byte [rcx + 0x15], 0
je 0x14005549b
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.140050ff0
nop
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x230]
call fcn.140052fd0
nop
lea r14, [0x14009d834]
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.140053990
nop
mov rdx, qword [rbp + 0x248]
cmp rdx, 7
jbe 0x1400554ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x230]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400554a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400554a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp byte [rcx + 0x15], 1
jne 0x1400553ce
mov byte [rsp + 0x30], 1
jmp 0x1400553d3
call fcn.140084b70
nop
mov qword [rsp + 0x20], r14
lea r9, [0x14009db28]
mov r8, qword [rbp + 0x1d0]
lea rdx, [rbp + 0x250]
mov rcx, rdi
call fcn.140053e10
nop
mov r14d, 0xffffffff
mov rcx, qword [rbp + 0x1d8]
test rcx, rcx
je 0x140055517
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140055517
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 0x140055517
mov rcx, qword [rbp + 0x1d8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x208]
cmp rdx, 7
jbe 0x140055560
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005555b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005555b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084b70
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 0x1400555a5
test al, al
jne 0x1400555a5
mov rsi, qword [rsp + 0x38]
mov dword [rsi], 0xc0000359
mov byte [rsi + 0x18], al
jmp 0x140055d09
mov ebx, r15d
mov dword [rsp + 0x50], ebx
mov ecx, 1
test dl, dl
je 0x1400555be
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.140054c10
nop
mov eax, dword [rbp + 0x170]
test eax, eax
jns 0x1400555fc
mov rsi, qword [rsp + 0x38]
mov dword [rsi], eax
mov byte [rsi + 0x18], 0
jmp 0x140055cf3
cmp ebx, 1
jne 0x140055764
cmp byte [rdi + 0x80], 0
jne 0x140055764
mov eax, dword [0x1400f1d0c]
test eax, eax
je 0x140055764
mov rcx, qword [0x1400f1d10]
cmp eax, 6
ja 0x140055646
jb 0x140055764
cmp ecx, ebx
ja 0x140055646
jb 0x140055764
cmp word [0x1400f1e1c], 0
jbe 0x14005565a
cmp eax, 6
ja 0x140055764
jb 0x14005565a
cmp ecx, 1
ja 0x140055764
mov dword [rbp + 0x1d0], 0x90909090
mov word [rbp + 0x1d4], 0x9090
mov rbx, qword [0x1400eec30]
test rbx, rbx
je 0x14005575d
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 0x1400556a9
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 0x14005573b
mov rax, qword [rdx]
cmp byte [rax + 0x18], 1
je 0x14005573b
cmp ecx, 0x20
jne 0x140055727
mov r9d, 2
jmp 0x14005573b
cmp ecx, 0x40
jne 0x140055731
mov r9d, r12d
jmp 0x14005573b
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.1400497e0
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 0x140055fb5
mov rax, qword [rbp + 0x148]
test rax, rax
je 0x140055834
mov rcx, qword [rax]
jmp 0x14005583a
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 0x14005589a
mov rax, qword [rax]
jmp 0x14005589d
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.140050e00
nop
cmp byte [rbp + 0x1c8], 0
je 0x140055fbb
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 0x1400559f3
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400559e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400559e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084b70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov r8, qword [rbp + 0x1f0]
test r8, r8
je 0x140055ad7
mov rsi, qword [rbp + 0x1f8]
cmp r8, rsi
je 0x140055a6c
lea rdi, [r8 + 0x50]
mov rcx, qword [rdi - 0x10]
test rcx, rcx
je 0x140055a53
mov rdx, qword [rdi]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140055a43
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140055ab6
mov rcx, r8
call fcn.140084b70
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 0x140055a13
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 0x140055abd
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055abd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140084b70
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1f0], xmm0
mov qword [rbp + 0x200], r15
lea r9, [0x1400496a0]
mov edx, 0x58
mov r8d, 4
lea rcx, [rbp - 0x20]
call fcn.14008511c
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.1400610c0
mov rsi, qword [rdi]
mov rcx, qword [rsp + 0x58]
cmp qword [rcx], 0
je 0x140055c10
mov rax, qword [rsi + 0x268]
test rax, rax
je 0x140055b56
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 0x140055ba5
mov eax, r14d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140055b9e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140055b9e
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 0x140055bfb
call fcn.140060340
mov r12, qword [rsp + 0x58]
mov edi, eax
test eax, eax
jmp 0x140055c53
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x20], r12
call fcn.1400604b0
mov edi, eax
test eax, eax
jmp 0x140055c53
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.14005fa50
mov edi, eax
mov r12, qword [rsp + 0x58]
test eax, eax
js 0x140055c65
mov edi, dword [rbp + 0x1e8]
mov eax, edi
test eax, eax
jns 0x140055def
cmp dword [rbp + 0x250], 0
jl 0x140055def
cmp byte [rsp + 0x30], 0
je 0x140055def
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
add rcx, 0x240
cmp byte [rbp + 0x158], 0
je 0x140055fa3
mov rax, qword [rbp + 0x148]
test rax, rax
je 0x140055caa
mov rdx, qword [rax]
jmp 0x140055cad
mov rdx, r15
mov r8, qword [rsp + 0x68]
add r8, rdx
cmp byte [rbp + 0x2a8], 0
je 0x140055fa3
mov rdx, qword [rbp + 0x258]
call fcn.140060fe0
test eax, eax
jne 0x140055def
mov rsi, qword [rsp + 0x38]
mov dword [rsi], edi
mov byte [rsi + 0x18], al
test rbx, rbx
je 0x140055cf3
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp byte [rbp + 0x1c8], 0
je 0x140055d09
lea rcx, [rbp + 0x178]
call fcn.140050c20
nop
cmp byte [rbp + 0x2a8], 0
je 0x140055d1f
lea rcx, [rbp + 0x258]
call fcn.140050c20
nop
cmp byte [rbp + 0x158], 0
je 0x140055d60
mov rbx, qword [rbp + 0x150]
test rbx, rbx
je 0x140055d60
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140055d60
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140055d60
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
lea rcx, [rbp + 0x2b0]
call fcn.1400591b0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140055daa
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140055daa
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 0x140055daa
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x140055119
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140055119
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140055119
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x140055119
cmp byte [rbp + 0x2c9], 0
setne r15b
mov rdx, r13
lea rcx, [rbp + 0x230]
call fcn.140052fd0
nop
lea rax, [0x14009d834]
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.140053990
nop
mov rdx, qword [rbp + 0x248]
cmp rdx, 7
jbe 0x140055e7e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x230]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055e79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055e79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084b70
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140050630
nop
test rbx, rbx
je 0x140055ea7
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp byte [rbp + 0x1c8], 0
je 0x140055ebd
lea rcx, [rbp + 0x178]
call fcn.140050c20
nop
cmp byte [rbp + 0x2a8], 0
je 0x140055ed3
lea rcx, [rbp + 0x258]
call fcn.140050c20
nop
cmp byte [rbp + 0x158], 0
je 0x140055f14
mov rbx, qword [rbp + 0x150]
test rbx, rbx
je 0x140055f14
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140055f14
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140055f14
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
lea rcx, [rbp + 0x2b0]
call fcn.1400591b0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140055f5e
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140055f5e
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 0x140055f5e
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x140055119
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140055119
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140055119
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
jmp 0x140055119
call fcn.140049500
nop
call fcn.140049500
int3
call fcn.140049500
nop
call fcn.140049500
nop
call fcn.140049500
int3