Function at 0x14003f8e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14011b040]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r13, r8
mov qword [rbp + 0x80], r8
mov rbx, rcx
mov qword [rbp + 0xf0], r8
mov rax, qword [rcx + 0x20]
mov ecx, dword [rax + 0x17c]
mov dword [rbp - 0x78], ecx
xor r14d, r14d
mov r12d, r14d
mov dword [rsp + 0x34], r14d
mov esi, dword [rbx + 0x60]
mov dword [rsp + 0x30], esi
mov r8, rax
cmp qword [rax + 0x148], r12
je 0x14003fa54
test dword [rax + 0x1ec], 0xff000000
je 0x14003fa54
mov qword [rbp - 0x60], r14
mov rax, qword [rbx]
mov rdi, qword [rax + 0x90]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov rax, qword [r13 + 8]
test rax, rax
je 0x14003f994
lock inc dword [rax + 8]
mov r12d, dword [rsp + 0x34]
mov esi, dword [rsp + 0x30]
mov rcx, qword [r13]
mov qword [rbp - 0x10], rcx
mov rax, qword [r13 + 8]
mov qword [rbp - 8], rax
mov rcx, qword [rcx + 0x28]
mov qword [rbp - 0x18], rcx
test rcx, rcx
je 0x14003f9b8
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rbx + 0x20]
mov r8, qword [rax + 0x148]
lea rcx, [rax + 0x138]
cmp qword [rax + 0x150], 7
jbe 0x14003f9db
mov rcx, qword [rax + 0x138]
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x98], r8
movaps xmm0, xmmword [rbp + 0x90]
movdqa xmmword [rbp + 0x110], xmm0
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x18]
lea rdx, [rbp + 0x110]
mov rcx, rbx
call rdi
mov ecx, dword [rbp - 0x60]
mov dword [rbx + 0x10], ecx
mov eax, dword [rbp - 0x5c]
mov dword [rbx + 0x18], eax
mov r8, qword [rbx + 0x20]
cmp qword [r8 + 0x148], 0
jne 0x14003fa4a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [rbx + 0x10], eax
cmp qword [r8 + 0x148], 0
je 0x14003fa51
add ecx, dword [r8 + 0x17c]
mov dword [rbx + 0x14], ecx
test dword [r8 + 0x1ec], 0xff000000
je 0x14003fa6a
mov ecx, dword [rbx + 0x14]
mov dword [rsp + 0x70], ecx
jmp 0x14003fa6f
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r14
mov rax, qword [rbx]
mov rdi, qword [rax + 0x90]
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov rax, qword [r13 + 8]
test rax, rax
je 0x14003faa0
lock inc dword [rax + 8]
mov r12d, dword [rsp + 0x34]
mov esi, dword [rsp + 0x30]
mov rcx, qword [r13]
mov qword [rbp], rcx
mov rax, qword [r13 + 8]
mov qword [rbp + 8], rax
mov rcx, qword [rcx + 0x20]
mov qword [rbp - 0x50], rcx
test rcx, rcx
je 0x14003fac4
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbx + 0x1bf8]
cmp qword [rbx + 0x1c10], 7
jbe 0x14003fadc
mov rcx, qword [rbx + 0x1bf8]
mov rax, qword [rbx + 0x1c08]
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0xa8], rax
movaps xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp + 0x120], xmm0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov r8, qword [rbx + 0x1c08]
lea rdx, [rbp + 0x120]
mov rcx, rbx
call rdi
mov rax, qword [rbx]
mov rdi, qword [rax + 0x90]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
mov rax, qword [r13 + 8]
test rax, rax
je 0x14003fb52
lock inc dword [rax + 8]
mov r12d, dword [rsp + 0x34]
mov esi, dword [rsp + 0x30]
mov rcx, qword [r13]
mov qword [rbp + 0x10], rcx
mov rax, qword [r13 + 8]
mov qword [rbp + 0x18], rax
mov rcx, qword [rcx + 0x20]
mov qword [rbp - 0x48], rcx
test rcx, rcx
je 0x14003fb76
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbx + 0x1c18]
cmp qword [rbx + 0x1c30], 7
jbe 0x14003fb8e
mov rcx, qword [rbx + 0x1c18]
mov rax, qword [rbx + 0x1c28]
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rax
movaps xmm0, xmmword [rbp + 0xb0]
movdqa xmmword [rbp + 0x130], xmm0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x48]
mov r8, qword [rbx + 0x1c28]
lea rdx, [rbp + 0x130]
mov rcx, rbx
call rdi
mov rax, qword [rbx + 0x20]
test dword [rax + 0x1f0], 0xff000000
je 0x14003fc28
test dword [rax + 0x1f4], 0xff000000
je 0x14003fc28
mov byte [rsp + 0x40], 1
mov ecx, dword [rax + 0x180]
mov eax, dword [rax + 0x17c]
lea r15d, [rax + rcx*2]
add r15d, dword [rbp - 0x80]
add r15d, dword [rsp + 0x78]
mov dword [rsp + 0x74], r15d
mov edi, dword [rbp - 0x7c]
cmp dword [rsp + 0x7c], edi
cmovg edi, dword [rsp + 0x7c]
jmp 0x14003fc35
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x74], r14d
mov edi, r14d
mov qword [rsp + 0x38], r14
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
test al, al
jne 0x14003fd8d
mov rax, qword [rbx + 0x28]
cmp qword [rax + 0x10], 0
je 0x14003fd8d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x20], xmm0
mov rax, qword [r13 + 8]
test rax, rax
je 0x14003fc7b
lock inc dword [rax + 8]
mov r12d, dword [rsp + 0x34]
mov esi, dword [rsp + 0x30]
mov rcx, qword [r13]
mov qword [rbp + 0x20], rcx
mov rax, qword [r13 + 8]
mov qword [rbp + 0x28], rax
mov rcx, qword [rcx + 0x20]
mov qword [rbp - 0x40], rcx
test rcx, rcx
je 0x14003fc9f
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx + 0x28]
mov r8, qword [rbp + 0x1c8]
lea rdx, [rbp + 0xf8]
mov rcx, rbx
call fcn.14003e730
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
shr rcx, 0x20
cmp ecx, edi
cmovg edi, ecx
cmp dword [0x1401234ec], edi
jl 0x14003fd06
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x88]
test al, al
je 0x14003fd06
mov eax, dword [0x1401234ec]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
mov r15d, eax
jmp 0x14003fd09
mov r15d, r14d
mov ecx, dword [rsp + 0x3c]
add ecx, r15d
add ecx, esi
mov edx, dword [rbx + 0x5c]
mov r9d, dword [rsp + 0x38]
add r9d, edx
lea r8d, [r15 + rsi]
mov dword [rsp + 0x20], ecx
lea rcx, [rbx + 0x78]
call qword [sym.imp.USER32.dll_SetRect]
mov rax, qword [rbx + 0x20]
mov eax, dword [rax + 0x174]
dec eax
lea eax, [rax + r15*2]
add eax, edi
add esi, eax
mov dword [rsp + 0x30], esi
mov ecx, dword [rbx + 0x5c]
mov eax, dword [rsp + 0x38]
lea ecx, [rax + rcx*2]
mov eax, dword [rsp + 0x74]
add eax, ecx
cmovns r12d, eax
mov dword [rsp + 0x34], r12d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x88]
test al, al
je 0x14003fd7c
add r12d, dword [0x1401234ec]
mov dword [rsp + 0x34], r12d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
lea rcx, [rbx + 0x78]
call qword [sym.imp.USER32.dll_OffsetRect]
mov rax, qword [rbx + 0x28]
cmp qword [rax + 0x48], 0
je 0x14003feb9
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
mov rax, qword [r13 + 8]
test rax, rax
je 0x14003fdba
lock inc dword [rax + 8]
mov r12d, dword [rsp + 0x34]
mov esi, dword [rsp + 0x30]
mov rcx, qword [r13]
mov qword [rbp + 0x30], rcx
mov rax, qword [r13 + 8]
mov qword [rbp + 0x38], rax
mov rcx, qword [rcx + 0x20]
mov qword [rbp - 0x38], rcx
test rcx, rcx
je 0x14003fdde
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov r9, qword [rbx + 0x28]
add r9, 0x38
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r8, qword [rbp + 0x1c8]
lea rdx, [rbp + 0x100]
mov rcx, rbx
call fcn.14003e730
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
shr rcx, 0x20
cmp dword [0x1401234ec], ecx
jl 0x14003fe48
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x88]
test al, al
je 0x14003fe48
mov eax, dword [0x1401234ec]
mov ecx, dword [rsp + 0x3c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov r15d, eax
jmp 0x14003fe4f
mov r15d, r14d
mov ecx, dword [rsp + 0x3c]
add ecx, r15d
add ecx, esi
mov edx, dword [rbx + 0x5c]
mov r9d, dword [rsp + 0x38]
add r9d, edx
lea r8d, [r15 + rsi]
mov dword [rsp + 0x20], ecx
lea rcx, [rbx + 0x88]
call qword [sym.imp.USER32.dll_SetRect]
mov rax, qword [rbx + 0x20]
mov eax, dword [rax + 0x174]
dec eax
lea eax, [rax + r15*2]
add eax, dword [rsp + 0x3c]
add esi, eax
mov dword [rsp + 0x30], esi
mov edx, dword [rbx + 0x5c]
mov eax, dword [rsp + 0x38]
lea r8d, [rax + rdx*2]
cmp r12d, r8d
cmovle r12d, r8d
mov dword [rsp + 0x34], r12d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
lea rcx, [rbx + 0x88]
call qword [sym.imp.USER32.dll_OffsetRect]
mov eax, r14d
mov dword [rsp + 0x58], eax
mov ecx, r14d
mov dword [rsp + 0x6c], ecx
mov r8d, r14d
mov dword [rsp + 0x68], r14d
mov edi, r14d
mov dword [rsp + 0x48], r14d
mov edx, dword [rbx + 0x58]
test edx, edx
jle 0x14004059b
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
lea r15, [rbx + 0xd34]
cmp edi, 0x64
jge 0x14004058e
test edi, edi
jle 0x14003ff0c
mov rax, qword [rbx + 0x20]
add esi, dword [rax + 0x178]
mov dword [rsp + 0x30], esi
mov ecx, dword [rsp + 0x70]
add ecx, dword [rbx + 0x5c]
mov dword [rsp + 0x44], ecx
mov rax, qword [rbx]
mov r10, qword [rax + 0x78]
mov rax, qword [rbx + 0x20]
add rax, 0x118
cmp qword [rax + 0x18], 7
jbe 0x14003ff32
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, qword [rbx + 0x48]
lea rdx, [rbp + 0x150]
mov rcx, rbx
call r10
nop
mov rax, qword [rbx]
mov rax, qword [rax + 0x90]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
mov rax, qword [r13 + 8]
test rax, rax
je 0x14003ff79
lock inc dword [rax + 8]
mov r12d, dword [rsp + 0x34]
mov esi, dword [rsp + 0x30]
mov rcx, qword [r13]
mov qword [rbp + 0x40], rcx
mov rax, qword [r13 + 8]
mov qword [rbp + 0x48], rax
mov rcx, qword [rcx + 0x30]
mov qword [rbp - 0x30], rcx
test rcx, rcx
je 0x14003ff9d
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rax, [rbp + 0x150]
cmp qword [rbp + 0x168], 7
cmova rax, qword [rbp + 0x150]
mov qword [rbp + 0xc0], rax
mov r8, qword [rbp + 0x160]
mov qword [rbp + 0xc8], r8
movaps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x140], xmm0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
lea rdx, [rbp + 0x140]
mov rcx, rbx
call qword [rsp + 0x60]
movsxd rax, edi
shl rax, 4
mov qword [rsp + 0x50], rax
lea rdi, [rbx + rax]
mov edx, dword [rsp + 0x3c]
add edx, esi
mov r9d, dword [rsp + 0x38]
imul r9d, dword [rbx + 0x64]
add r9d, dword [rsp + 0x44]
mov dword [rsp + 0x20], edx
mov r8d, esi
mov edx, dword [rsp + 0x44]
lea rcx, [rdi + 0x6e8]
call qword [sym.imp.USER32.dll_SetRect]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
lea rcx, [rdi + 0x6e8]
call qword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [rbp - 0x78]
add ecx, dword [rsp + 0x38]
imul ecx, dword [rbx + 0x64]
add dword [rsp + 0x44], ecx
mov eax, dword [rsp + 0x3c]
test eax, eax
cmovs eax, r14d
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x70]
add eax, ecx
mov dword [rsp + 0x60], eax
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, rdx
sar rcx, 3
movabs rax, 0x6db6db6db6db6db7
imul rcx, rax
cmp rcx, qword [rbp - 0x70]
jbe 0x140040965
mov rax, qword [rbp - 0x68]
add rax, rdx
mov rdi, rax
cmp qword [rax + 0x18], 7
jbe 0x1400400b3
mov rdi, qword [rax]
mov rdx, qword [rax + 0x10]
mov qword [rbp + 0x78], rdx
mov rax, qword [rbx]
mov rax, qword [rax + 0x90]
mov qword [rbp + 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov rax, qword [r13 + 8]
test rax, rax
je 0x1400400e7
lock inc dword [rax + 8]
mov r12d, dword [rsp + 0x34]
mov esi, dword [rsp + 0x30]
mov rcx, qword [r13]
mov qword [rbp + 0x50], rcx
mov rax, qword [r13 + 8]
mov qword [rbp + 0x58], rax
mov rcx, qword [rcx + 0x28]
mov qword [rbp - 0x28], rcx
test rcx, rcx
je 0x14004010e
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp + 0x78]
mov qword [rbp + 0xd0], rdi
mov qword [rbp + 0xd8], rdx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
mov r8, rdx
lea rdx, [rbp + 0xd0]
mov rcx, rbx
call qword [rbp + 0x70]
mov rdi, qword [rsp + 0x50]
mov edx, dword [rsp + 0x3c]
add edx, esi
mov r9d, dword [rsp + 0x38]
imul r9d, dword [rbx + 0x68]
add r9d, dword [rsp + 0x44]
mov dword [rsp + 0x20], edx
mov r8d, esi
mov edx, dword [rsp + 0x44]
lea rcx, [rdi + 0xd28]
add rcx, rbx
call qword [sym.imp.USER32.dll_SetRect]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
lea rcx, [rdi + 0xd28]
add rcx, rbx
call qword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [rsp + 0x38]
imul eax, dword [rbx + 0x68]
mov edi, dword [rsp + 0x44]
add edi, eax
mov r9d, dword [rsp + 0x3c]
cmp dword [rsp + 0x5c], r9d
cmovg r9d, dword [rsp + 0x5c]
mov dword [rsp + 0x5c], r9d
mov ecx, dword [rsp + 0x60]
add ecx, eax
cmp dword [rsp + 0x6c], ecx
cmovg ecx, dword [rsp + 0x6c]
mov dword [rsp + 0x6c], ecx
mov rcx, qword [rbx + 0x20]
mov rax, qword [rbx + 0x50]
mov r8d, dword [rsp + 0x48]
cmp r8d, dword [rax]
jne 0x1400403d9
test dword [rcx + 0x1e8], 0xff000000
jne 0x1400403e9
xor dl, dl
mov rax, qword [rbx + 0x40]
mov r10, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, r10
sar rcx, 3
movabs rax, 0x6db6db6db6db6db7
imul rcx, rax
cmp rcx, qword [rbp - 0x70]
jbe 0x140040965
mov rcx, qword [rbp - 0x68]
add rcx, r10
mov qword [rsp + 0x60], rcx
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x50], r10
test r10, r10
je 0x140040372
cmp dword [rbx + 0x6c], 0
je 0x140040372
test dl, dl
je 0x140040372
add edi, dword [rbp - 0x78]
mov dword [rsp + 0x44], edi
mov eax, edi
cmp dword [rsp + 0x58], edi
cmovg eax, dword [rsp + 0x58]
mov dword [rsp + 0x58], eax
cmp qword [rcx + 0x18], 7
jbe 0x14004026c
mov rcx, qword [rcx]
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx]
mov rdi, qword [rax + 0x90]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov rax, qword [r13 + 8]
test rax, rax
je 0x140040294
lock inc dword [rax + 8]
mov r12d, dword [rsp + 0x34]
mov esi, dword [rsp + 0x30]
mov rcx, qword [r13]
mov qword [rbp + 0x60], rcx
mov rax, qword [r13 + 8]
mov qword [rbp + 0x68], rax
mov rcx, qword [rcx + 0x38]
mov qword [rbp - 0x20], rcx
test rcx, rcx
je 0x1400402bc
mov rax, qword [rcx]
call qword [rax + 8]
mov r10, qword [rsp + 0x50]
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], r10
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
mov r8, r10
lea rdx, [rbp + 0xe0]
mov rcx, rbx
call rdi
movsxd rdi, dword [rsp + 0x48]
shl rdi, 4
mov edx, dword [rsp + 0x3c]
add edx, esi
mov r9d, dword [rsp + 0x38]
imul r9d, dword [rbx + 0x6c]
mov dword [rsp + 0x20], edx
mov r8d, esi
xor edx, edx
lea rcx, [rdi + 0x1368]
add rcx, rbx
call qword [sym.imp.USER32.dll_SetRect]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
lea rcx, [rdi + 0x1368]
add rcx, rbx
call qword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [rsp + 0x38]
imul ecx, dword [rbx + 0x6c]
mov edi, dword [rsp + 0x44]
add edi, ecx
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x5c], eax
cmovg eax, dword [rsp + 0x5c]
mov r9d, eax
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x68], ecx
cmovg ecx, dword [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov r8d, dword [rsp + 0x48]
mov r10d, r14d
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x30], r14d
mov rax, qword [rbx + 0x20]
mov ecx, dword [rax + 4]
cmp ecx, 1
jne 0x1400403f0
mov ecx, dword [r15 - 0x640]
sub ecx, dword [r15 - 0x648]
mov eax, r9d
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov r10d, eax
mov ecx, dword [r15]
sub ecx, dword [r15 - 8]
mov eax, r9d
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x44], eax
mov ecx, dword [r15 + 0x640]
sub ecx, dword [r15 + 0x638]
mov eax, r9d
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x30], eax
jmp 0x14004042f
test dword [rcx + 0x1b8], 0xff000000
je 0x1400401eb
mov dl, 1
jmp 0x1400401ed
test ecx, ecx
jne 0x14004042f
mov eax, dword [r15 - 0x640]
sub eax, dword [r15 - 0x648]
mov r10d, r9d
sub r10d, eax
mov eax, dword [r15]
sub eax, dword [r15 - 8]
mov ecx, r9d
sub ecx, eax
mov dword [rsp + 0x44], ecx
mov eax, dword [r15 + 0x640]
sub eax, dword [r15 + 0x638]
mov ecx, r9d
sub ecx, eax
mov dword [rsp + 0x30], ecx
movsxd rcx, r8d
shl rcx, 4
add rcx, 0x6e8
add rcx, rbx
mov r8d, r10d
xor edx, edx
call qword [sym.imp.USER32.dll_OffsetRect]
movsxd rcx, dword [rsp + 0x48]
shl rcx, 4
add rcx, 0xd28
add rcx, rbx
mov r8d, dword [rsp + 0x44]
xor edx, edx
call qword [sym.imp.USER32.dll_OffsetRect]
movsxd rcx, dword [rsp + 0x48]
shl rcx, 4
add rcx, 0x1368
add rcx, rbx
mov r8d, dword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_OffsetRect]
mov r8d, dword [r15 - 8]
mov r10d, dword [r15]
mov edx, dword [r15 - 0x640]
mov ecx, dword [r15 - 0x648]
mov eax, edx
sub eax, ecx
test eax, eax
jle 0x1400404ba
cmp ecx, r8d
cmovge ecx, r8d
mov r8d, ecx
cmp edx, r10d
jle 0x1400404ba
mov r10d, edx
mov edx, dword [r15 + 0x640]
mov ecx, dword [r15 + 0x638]
mov eax, edx
sub eax, ecx
test eax, eax
jle 0x1400404e2
cmp r8d, ecx
cmovl ecx, r8d
mov r8d, ecx
cmp r10d, edx
jg 0x1400404e2
mov r10d, edx
movsxd rcx, dword [rsp + 0x48]
shl rcx, 4
add rcx, 0xa8
add rcx, rbx
mov edx, dword [rbx + 0x5c]
mov r9d, dword [rbx + 8]
sub r9d, edx
add r9d, r12d
add edx, dword [rbx + 8]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_SetRect]
cmp r12d, edi
cmovg edi, r12d
mov r12d, edi
mov dword [rsp + 0x34], edi
add esi, dword [rsp + 0x5c]
mov dword [rsp + 0x30], esi
mov rdx, qword [rbp + 0x168]
cmp rdx, 7
jbe 0x14004056c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040567
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004096b
call fcn.14006d178
mov edi, dword [rsp + 0x48]
inc edi
mov dword [rsp + 0x48], edi
inc qword [rbp - 0x70]
add qword [rbp - 0x68], 0x38
add r15, 0x10
mov edx, dword [rbx + 0x58]
cmp edi, edx
jl 0x14003fef1
mov r8d, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x58]
add eax, r8d
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [rbx + 0x5c]
lea ecx, [rcx + rax*2]
cmp r12d, ecx
cmovle r12d, ecx
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x60], r14d
test edx, edx
jle 0x1400406ac
lea r15, [rbx + 0x6ec]
mov r13d, r14d
mov r14d, dword [rsp + 0x58]
cmp r13d, 0x64
jge 0x1400406a0
mov edi, dword [r15 + 0x640]
mov eax, dword [r15 + 0x648]
mov dword [rsp + 0x60], eax
movsxd rax, r13d
shl rax, 4
add rax, rbx
mov qword [rsp + 0x50], rax
lea rcx, [rax + 0x1368]
mov edx, dword [rbx + 0x5c]
add edx, r14d
xor r8d, r8d
call qword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [r15 + 8]
mov ecx, dword [r15]
mov eax, edx
sub eax, ecx
test eax, eax
jle 0x140040639
cmp ecx, edi
cmovge ecx, edi
mov edi, ecx
mov r8d, dword [r15 + 0x648]
cmp edx, r8d
jle 0x14004063e
mov r8d, edx
jmp 0x14004063e
mov r8d, dword [rsp + 0x60]
mov edx, dword [r15 + 0xc88]
mov ecx, dword [r15 + 0xc80]
mov eax, edx
sub eax, ecx
test eax, eax
jle 0x140040663
cmp edi, ecx
cmovl ecx, edi
mov edi, ecx
cmp r8d, edx
jg 0x140040663
mov r8d, edx
mov rcx, qword [rsp + 0x50]
add rcx, 0xa8
mov edx, dword [rbx + 0x5c]
mov r9d, dword [rbx + 8]
sub r9d, edx
add r9d, r12d
add edx, dword [rbx + 8]
mov dword [rsp + 0x20], r8d
mov r8d, edi
call qword [sym.imp.USER32.dll_SetRect]
inc r13d
add r15, 0x10
mov edx, dword [rbx + 0x58]
cmp r13d, edx
jl 0x1400405d1
xor r14d, r14d
mov r13, qword [rbp + 0x80]
test edx, edx
mov r8, qword [rbx + 0x20]
jne 0x1400406b9
sub esi, dword [r8 + 0x174]
mov ecx, dword [rbx + 0x60]
add ecx, esi
mov dword [rsp + 0x30], ecx
mov rax, qword [rbx + 0x28]
cmp qword [rax + 0x10], 0
je 0x1400406f4
test edx, edx
je 0x1400406f4
mov eax, dword [r8 + 0x158]
cmp r12d, eax
cmovle r12d, eax
mov dword [rsp + 0x34], r12d
mov eax, dword [r8 + 0x160]
cmp ecx, eax
cmovle ecx, eax
mov dword [rsp + 0x30], ecx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.14003f530
mov r9d, dword [rsp + 0x34]
cmp dword [rbx + 0x58], 0
jle 0x140040745
lea r8, [rbx + 0xb0]
cmp r14d, 0x64
jge 0x140040745
mov edx, dword [r8]
mov ecx, dword [rbx + 0x5c]
add ecx, ecx
mov eax, dword [r8 - 8]
sub eax, ecx
lea ecx, [rax + r9]
cmp edx, ecx
cmovle edx, ecx
mov dword [r8], edx
inc r14d
add r8, 0x10
cmp r14d, dword [rbx + 0x58]
jl 0x140040718
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x30]
lea edx, [rax + rcx*2]
mov eax, dword [rbx + 8]
lea r8d, [r9 + rax*2]
mov dword [rbx + 0x70], r8d
mov dword [rbx + 0x74], edx
mov rax, qword [rbx + 0x50]
movsxd rcx, dword [rax]
add rcx, rcx
movups xmm0, xmmword [rbx + rcx*8 + 0xa8]
movups xmmword [rbx + 0x98], xmm0
cmp byte [rsp + 0x40], 0
je 0x140040865
cmp dword [rbx + 0x58], 0
je 0x140040865
mov r10, qword [rbx + 0x20]
cmp byte [r10 + 0x8c], 0
jne 0x140040865
mov r10d, dword [r10 + 0x180]
sub r10d, dword [rbx + 0x5c]
sub r10d, dword [rbx + 8]
sub r10d, dword [rsp + 0x74]
add r10d, r8d
mov eax, dword [rbx + 0x84]
add eax, dword [rbx + 0x7c]
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov ecx, dword [rsp + 0x7c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub edi, eax
add ecx, edi
mov r9d, dword [rsp + 0x78]
add r9d, r10d
mov dword [rsp + 0x20], ecx
mov r8d, edi
mov edx, r10d
lea rcx, [rbx + 0x1bd4]
call qword [sym.imp.USER32.dll_SetRect]
mov r10d, dword [rbp - 0x7c]
add r10d, edi
mov rax, qword [rbx + 0x20]
mov edx, dword [rax + 0x17c]
add edx, dword [rbx + 0x1bdc]
mov r9d, dword [rbp - 0x80]
add r9d, edx
mov dword [rsp + 0x20], r10d
mov r8d, edi
lea rcx, [rbx + 0x1be4]
call qword [sym.imp.USER32.dll_SetRect]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x88]
test al, al
je 0x140040865
mov edx, dword [0x1401234ec]
neg edx
xor r8d, r8d
lea rcx, [rbx + 0x1bd4]
call qword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [0x1401234ec]
neg edx
xor r8d, r8d
lea rcx, [rbx + 0x1be4]
call qword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [rbx + 0x74]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbx + 0x70]
xor r8d, r8d
xor edx, edx
lea rcx, [rbx + 0x19c8]
call qword [sym.imp.USER32.dll_SetRect]
lea rdx, [rbx + 0x19c8]
lea rcx, [rbx + 0x19b8]
call qword [sym.imp.USER32.dll_CopyRect]
mov r8d, dword [rbx + 0xc]
not r8d
mov edx, dword [rbx + 8]
not edx
lea rcx, [rbx + 0x19b8]
call qword [sym.imp.USER32.dll_InflateRect]
lea rdx, [rbp + 0x1c8]
mov rcx, rbx
call fcn.14003f080
mov rax, qword [rbx + 0x20]
mov eax, dword [rax + 0x168]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
sub r8d, dword [rbx + 0xc]
sub eax, dword [rbx + 8]
mov edx, eax
lea rcx, [rbx + 0x19c8]
call qword [sym.imp.USER32.dll_InflateRect]
mov rax, qword [rbx + 0x20]
mov edi, 0xffffffff
test byte [rax + 0x168], 1
jne 0x14004090b
mov r8d, edi
mov edx, edi
lea rcx, [rbx + 0x19c8]
call qword [sym.imp.USER32.dll_InflateRect]
nop
mov rbx, qword [r13 + 8]
test rbx, rbx
je 0x14004093b
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004093b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14004093b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14006ce40
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140024910
nop
call fcn.1400a5664
int3