Function at 0x140045930
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rbp
mov ebp, r9d
mov r12, r8
mov rdi, rdx
mov r15, rcx
mov r14, qword [rsp + 0x98]
mov rsi, qword [r14 + 8]
mov rbx, qword [r14]
cmp rbx, rsi
je 0x140045994
nop dword [rax]
mov rcx, rbx
call fcn.140045420
add rbx, 0x20
cmp rbx, rsi
jne 0x140045980
mov rbx, qword [r14]
mov qword [r14 + 8], rbx
mov dword [r15 + 0x38], ebp
lea rcx, [r15 + 0x40]
mov rdx, r12
call fcn.1400063d0
mov eax, dword [rsp + 0x80]
mov dword [r15 + 0x48], eax
mov eax, dword [rsp + 0x88]
mov dword [r15 + 0x4c], eax
mov eax, dword [rsp + 0x90]
mov dword [r15 + 0x50], eax
lea rcx, [r15 + 8]
mov rdx, rdi
call fcn.140045610
lea rsi, [r15 + 0x350]
mov rbp, qword [rsi + 8]
mov rbx, qword [rsi]
cmp rbx, rbp
je 0x1400459fc
mov rcx, rbx
call fcn.140045420
add rbx, 0x20
cmp rbx, rbp
jne 0x1400459e8
mov rbx, qword [rsi]
mov qword [rsi + 8], rbx
mov rcx, r15
call qword [sym.imp.USER32.dll_GetCursorPos]
lea rcx, [r15 + 0x20]
mov dword [rcx], 0x18
call qword [sym.imp.USER32.dll_GetCursorInfo]
mov r9, r15
lea r8, [0x140045ae0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
cmp r14, rsi
je 0x140045a4b
movzx r9d, byte [rsp + 0x80]
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
mov rcx, r14
call fcn.140044970
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140045a91
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x140045a7f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140045ad9
mov rcx, r8
call fcn.1400bf5e4
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov rcx, qword [r12]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x140045abd
mov eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140045abd
mov rcx, qword [r12]
sub rcx, 0xc
call fcn.1400bf5e4
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x218], rbx
mov rax, qword [0x140104508]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rsi, r9
mov r14, r8
xor eax, eax
mov qword [rbp - 0x78], rax
mov r13d, eax
mov qword [rsp + 0x60], rax
mov rax, qword [0x140104018]
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov r12d, dword [r8 + 8]
sub r12d, dword [r8]
mov r15d, dword [r8 + 0xc]
sub r15d, dword [r8 + 4]
mov dword [rsp + 0x58], r15d
mov dword [rbp + 0x50], 0x68
lea rdx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x78]
lea rcx, [0x1400d47f8]
call qword [sym.imp.GDI32.dll_CreateDCW]
mov qword [rbp - 0x60], rax
lea ebx, [r13 - 1]
lea edi, [rbx + 2]
test rax, rax
je 0x140046571
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140046530
mov r8d, r15d
mov edx, r12d
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rbp - 0x78], rax
test rax, rax
je 0x140046530
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
xor ebx, ebx
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
sub rcx, rdx
sar rcx, 4
test ecx, ecx
jle 0x140045c93
xor edi, edi
nop word [rax + rax]
movups xmm0, xmmword [rdi + rdx]
movups xmmword [rbp - 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x38], xmm1
lea r8, [rbp - 8]
mov rdx, r14
lea rcx, [rbp + 0x38]
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x140045c71
mov eax, dword [rbp + 4]
mov r8d, dword [rbp - 4]
sub eax, r8d
mov r9d, dword [rbp]
mov edx, dword [rbp - 8]
sub r9d, edx
sub r8d, dword [r14 + 4]
sub edx, dword [r14]
mov dword [rsp + 0x40], 0x40cc0020
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edx
mov rcx, qword [rbp - 0x60]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x14004652b
inc ebx
add rdi, 0x10
mov rdx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
sub rax, rdx
sar rax, 4
cmp ebx, eax
jl 0x140045c00
mov rdi, qword [rsp + 0x68]
mov rdx, qword [rsi]
mov rcx, r14
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x140045cec
cmp dword [rsi + 0x24], 1
jne 0x140045cec
lea rdx, [rbp - 0x50]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.USER32.dll_GetIconInfo]
mov edx, dword [rsi]
sub edx, dword [r14]
sub edx, dword [rbp - 0x4c]
mov r8d, dword [rsi + 4]
sub r8d, dword [r14 + 4]
sub r8d, dword [rbp - 0x48]
mov r9, qword [rsi + 0x28]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DrawIcon]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [rsi + 0x48]
test eax, eax
jne 0x140045d7e
mov r9d, dword [rsi + 0x38]
lea eax, [r9 + 1]
mov dword [rsi + 0x38], eax
mov r8, qword [rsi + 0x40]
lea rdx, [0x1400d4808]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0xc], 0
jl 0x140045d2d
mov qword [rsp + 0x70], rbx
lock inc dword [rbx - 0xc]
jmp 0x140045d55
mov rax, qword [0x140104018]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001a10
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + 0x50]
mov r8d, r15d
mov edx, r12d
mov rcx, rsi
call fcn.140046a40
test eax, eax
je 0x14004652b
jmp 0x140045ee5
cmp eax, 1
jne 0x140046010
mov r9d, dword [rsi + 0x38]
lea eax, [r9 + 1]
mov dword [rsi + 0x38], eax
mov r8, qword [rsi + 0x40]
lea rdx, [0x1400d4830]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0xc], 0
jl 0x140045dbd
mov qword [rsp + 0x78], rbx
lock inc dword [rbx - 0xc]
jmp 0x140045de5
mov rax, qword [0x140104018]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.140001a10
mov r13d, dword [rsi + 0x4c]
mov r15d, dword [rsi + 0x50]
lea rcx, [rsi + 0x2a8]
call fcn.1400559e0
mov qword [rsi + 0x70], rax
mov edx, VarR8FromDisp
mov r8d, 0x238
lea rcx, [rsi + 0x70]
call fcn.140056500
lea r8, [0x1400d0aec]
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
lea rcx, [rsi + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov rdx, qword [rsi + 0x58]
test rdx, rdx
jne 0x140045e5d
lea rcx, [rbx - 0xc]
lea ebx, [rdx - 1]
cmp rcx, qword [0x140104010]
je 0x140045e53
mov eax, ebx
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140045e53
call fcn.1400bf5e4
mov r13, qword [rsp + 0x60]
jmp 0x140046530
lea rcx, [rsi + 0x70]
call fcn.140056900
mov dword [rsi + 0xa0], r12d
mov eax, dword [rsp + 0x58]
mov dword [rsi + 0xa4], eax
mov eax, 3
test r15d, r15d
mov r8d, 1
cmovne eax, r8d
mov dword [rsi + 0xa8], eax
neg r15d
sbb eax, eax
add eax, 2
mov dword [rsi + 0xac], eax
lea rcx, [rsi + 0x70]
call fcn.140057710
mov r8b, 1
mov edx, r13d
lea rcx, [rsi + 0x70]
call fcn.1400578e0
mov dl, 1
lea rcx, [rsi + 0x70]
call fcn.140057970
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x140045ee0
mov eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140045ee0
call fcn.1400bf5e4
mov r15d, dword [rsp + 0x58]
lea edi, [r12 + r12*2]
mov eax, edi
and eax, 0x80000003
jge 0x140045ef9
dec eax
or eax, 0xfffffffc
inc eax
add edi, eax
mov dword [rbp - 0x68], edi
movsxd rbx, edi
mov qword [rsp + 0x60], rbx
mov rcx, rbx
call fcn.1400bf5ec
mov r13, rax
test rax, rax
je 0x14004652b
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x18], xmm0
xor edx, edx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 8], 0x28
mov dword [rbp + 0xc], r12d
mov ecx, r15d
neg ecx
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x14], 0x180001
lea r9d, [rdx + 1]
lea eax, [r15 - 1]
mov r15d, edx
cmp dword [rsi + 0x48], 2
cmovne r15d, eax
mov dword [rsp + 0x30], edx
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r8d, r15d
mov rdx, qword [rbp - 0x78]
mov r14, qword [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDIBits]
cmp eax, 1
jne 0x1400462bc
nop word [rax + rax]
mov r12d, r15d
mov eax, dword [rsi + 0x48]
test eax, eax
jne 0x1400460ec
mov r14d, dword [rsi + 0x50]
test r14d, r14d
je 0x14004609c
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
movsxd rdi, edx
mov rcx, rdi
call fcn.1400bf5ec
mov rbx, rax
xor r9d, r9d
test rdi, rdi
jle 0x14004609f
lea r8, [r13 + 1]
nop word [rax + rax]
movzx edx, byte [r8 - 1]
movzx ecx, byte [r8 + 1]
add edx, ecx
movzx ecx, byte [r8]
add edx, ecx
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
mov byte [r9 + rbx], dl
inc r9
lea r8, [r8 + 3]
cmp r9, rdi
jl 0x140045fe0
jmp 0x14004609f
cmp eax, 2
jne 0x140045ee5
mov r9d, dword [rsi + 0x38]
lea eax, [r9 + 1]
mov dword [rsi + 0x38], eax
mov r8, qword [rsi + 0x40]
lea rdx, [0x1400d4858]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0xc], 0
jl 0x14004604e
mov qword [rbp - 0x80], rbx
lock inc dword [rbx - 0xc]
jmp 0x140046074
mov rax, qword [0x140104018]
mov qword [rbp - 0x80], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x50]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.140001a10
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + 0x50]
mov r8d, r15d
mov edx, r12d
mov rcx, rsi
call fcn.140045780
test eax, eax
je 0x14004652b
jmp 0x140045ee5
mov rbx, r13
mov qword [rbp - 0x58], rbx
mov r8d, 1
lea rdx, [rbp - 0x58]
mov rcx, qword [rsi + 0x60]
call fcn.140091690
test r14d, r14d
je 0x1400460c3
mov rcx, rbx
call fcn.1400bf5e4
mov r14, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov eax, dword [rsi + 0x48]
cmp eax, 2
jne 0x14004627c
inc r15d
cmp r15d, dword [rsp + 0x58]
je 0x1400463cd
jmp 0x140046284
cmp eax, 1
jne 0x1400461d4
cmp dword [rsi + 0x50], 0
je 0x14004615d
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
movsxd rdi, edx
mov rcx, rdi
call fcn.1400bf5ec
mov rbx, rax
xor r9d, r9d
test rdi, rdi
jle 0x1400461b0
lea r8, [r13 + 1]
nop word [rax + rax]
movzx edx, byte [r8 - 1]
movzx ecx, byte [r8 + 1]
add edx, ecx
movzx ecx, byte [r8]
add edx, ecx
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
mov byte [r9 + rbx], dl
inc r9
lea r8, [r8 + 3]
cmp r9, rdi
jl 0x140046130
jmp 0x1400461b0
mov rcx, rbx
call fcn.1400bf5ec
mov rbx, rax
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
movsxd r8, edx
test edx, edx
jle 0x1400461b0
lea rcx, [r13 + 1]
mov rdx, rbx
sub rdx, r13
nop word [rax + rax]
movzx eax, byte [rcx + 1]
mov byte [rdx + rcx - 1], al
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
movzx eax, byte [rcx - 1]
mov byte [rdx + rcx + 1], al
lea rcx, [rcx + 3]
sub r8, 1
jne 0x140046190
mov qword [rbp - 0x70], rbx
lea rcx, [rsi + 0x70]
mov r8d, 1
lea rdx, [rbp - 0x70]
call fcn.140057a00
mov rcx, rbx
call fcn.1400bf5e4
jmp 0x1400460c8
cmp eax, 2
jne 0x14004627c
cmp dword [rsi + 0x50], 0
je 0x140046261
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
movsxd rbx, edx
mov rcx, rbx
call fcn.1400bf5ec
mov rdi, rax
xor r10d, r10d
test rbx, rbx
jle 0x14004623e
lea r9, [r13 + 1]
nop
movzx r8d, byte [r9 - 1]
movzx ecx, byte [r9 + 1]
add r8d, ecx
movzx ecx, byte [r9]
add r8d, ecx
mov eax, 0xaaaaaaab
mul r8d
shr edx, 1
mov byte [r10 + rdi], dl
inc r10
lea r9, [r9 + 3]
cmp r10, rbx
jl 0x140046210
mov r9, qword [rsi + 0x58]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call fcn.1400bf5e4
jmp 0x1400460c8
mov r9, qword [rsi + 0x58]
mov r8d, 1
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400460cd
dec r15d
test r12d, r12d
jle 0x1400462bf
mov dword [rsp + 0x30], 0
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 1
mov r8d, r15d
mov rdx, qword [rbp - 0x78]
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDIBits]
cmp eax, 1
mov edi, dword [rbp - 0x68]
je 0x140045f90
mov eax, dword [rsi + 0x48]
test eax, eax
jne 0x140046392
mov rdx, qword [rsi + 0x68]
mov rcx, qword [rsi + 0x60]
call fcn.140090eb0
lea rdx, [rsi + 0x68]
lea rcx, [rsi + 0x60]
call fcn.1400903b0
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x1400462f0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r14d, r14d
lea rdx, [rbp + 0x54]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_CopyRect]
lea rcx, [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
mov rcx, qword [rbp - 0x28]
lea rdx, [rcx - 0xc]
cmp dword [rdx], 1
jg 0x140046320
cmp ebx, dword [rcx - 4]
jle 0x140046366
cmp rdx, qword [0x140104010]
je 0x14004634f
mov eax, 0xffffffff
lock xadd dword [rdx], eax
sub eax, 1
jg 0x140046344
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
mov rax, qword [0x140104018]
mov qword [rbp - 0x28], rax
mov edx, ebx
lea rcx, [rbp - 0x28]
call fcn.140001970
test eax, eax
je 0x14004640d
mov rcx, qword [rbp - 0x28]
lea rdi, [rbx + rbx]
lea eax, [rbx + 1]
movsxd r8, eax
add r8, r8
test rdi, rdi
je 0x140046401
test rcx, rcx
jne 0x1400463e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x140046623
cmp eax, 1
jne 0x1400463c4
lea rcx, [rsi + 0x70]
call fcn.140056670
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x1400463af
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r14d, r14d
mov qword [rsi + 0x58], r14
lea rcx, [rsi + 0x70]
call fcn.140055e30
jmp 0x1400462f3
cmp eax, 2
jne 0x14004652b
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x1400463dc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r14d, r14d
mov qword [rsi + 0x58], r14
jmp 0x1400462f3
cmp r8, rdi
jb 0x140046610
mov r8, rdi
lea rdx, [rbp + 0x78]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp - 0x28]
mov dword [rcx - 8], ebx
mov rax, qword [rbp - 0x28]
mov word [rdi + rax], r14w
mov r10, qword [rbp - 0x10]
cmp r10, qword [rsp + 0x50]
je 0x1400464f2
lea rcx, [r10 - 0xc]
mov r8d, dword [rcx]
mov rdx, qword [0x140104010]
test r8d, r8d
jns 0x140046434
cmp rcx, rdx
jne 0x140046443
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0xc], 0
jge 0x1400464c5
mov rax, qword [rsp + 0x50]
movsxd rdi, dword [rax - 8]
cmp r8d, 1
jg 0x140046458
cmp edi, dword [r10 - 4]
jle 0x140046496
cmp rcx, rdx
je 0x140046483
mov eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140046478
mov rcx, qword [rbp - 0x10]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
mov rax, qword [0x140104018]
mov qword [rbp - 0x10], rax
mov edx, edi
lea rcx, [rbp - 0x10]
call fcn.140001970
test eax, eax
je 0x1400464f2
mov r10, qword [rbp - 0x10]
lea rbx, [rdi + rdi]
lea eax, [rdi + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rbx
mov r8, qword [rsp + 0x50]
mov rcx, r10
call fcn.1400029b0
mov rax, qword [rbp - 0x10]
mov dword [rax - 8], edi
mov rax, qword [rbp - 0x10]
mov word [rbx + rax], r14w
jmp 0x1400464f2
cmp rcx, rdx
je 0x1400464e5
mov eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x1400464e5
mov rcx, qword [rbp - 0x10]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x10], rax
lock inc dword [rbx - 0xc]
mov rax, qword [rsi + 0x358]
cmp qword [rsi + 0x360], rax
je 0x140046518
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.1400451d0
add qword [rsi + 0x358], 0x20
jmp 0x14004652b
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [rsi + 0x350]
call fcn.140044b00
mov ebx, 0xffffffff
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14004654d
mov rcx, rax
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x14004655f
mov rcx, rax
call qword [sym.imp.GDI32.dll_DeleteObject]
test r13, r13
je 0x14004656c
mov rcx, r13
call fcn.1400bf5e4
mov edi, 1
mov rcx, qword [rbp - 0x10]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14004659a
mov eax, ebx
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14004659a
mov rcx, qword [rbp - 0x10]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x1400465c4
mov eax, ebx
lock xadd dword [rcx], eax
sub eax, 1
jg 0x1400465c4
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x1400465e4
lock xadd dword [rcx], ebx
sub ebx, 1
jg 0x1400465e4
call fcn.1400bf5e4
mov eax, edi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400bf680
mov rbx, qword [rsp + 0x218]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140001ac0
int3