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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2a8
mov rax, qword [0x1402ddc80]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rax, qword [0x1402e3320]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x2c0]
mov rax, qword [rax + 0x1a0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x2c0]
movsx eax, byte [rax + 0x202]
test eax, eax
jle 0x1401a4a6d
mov byte [rsp + 0x31], 1
jmp 0x1401a4a72
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x2c0]
movsx eax, byte [rax + 0x204]
test eax, eax
jle 0x1401a4a95
mov byte [rsp + 0x32], 1
jmp 0x1401a4a9a
mov byte [rsp + 0x32], 0
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x34], al
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0
je 0x1401a4ac9
mov r8d, 0x922
lea rdx, [0x14028add0]
lea rcx, str.splitter___Current__0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
mov dword [rsp + 0x7c], 0
lea r9, [0x14019a330]
mov r8d, 4
mov edx, 0x28
lea rcx, [rsp + 0x1f0]
call fcn.1400088a0
mov dword [rsp + 0x3c], 0
jmp 0x1401a4b04
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x2c0]
mov eax, dword [rax + 0x74]
cmp dword [rsp + 0x3c], eax
jge 0x1401a4ee4
mov eax, dword [rsp + 0x3c]
mov ecx, 1
mov qword [rsp + 0xd0], rcx
movzx ecx, al
mov rax, qword [rsp + 0xd0]
shl rax, cl
mov rcx, qword [rsp + 0x2c0]
mov rcx, qword [rcx + 0x58]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x1401a4b51
jmp 0x1401a4afa
mov rax, qword [rsp + 0x2c0]
add rax, 0x18
mov qword [rsp + 0xd8], rax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xd8]
call fcn.1400f71f0
mov qword [rsp + 0x60], rax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1401a4b91
mov dword [rsp + 0x90], 2
jmp 0x1401a4b9c
mov dword [rsp + 0x90], 1
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0xc4], eax
mov dword [rsp + 0x40], 0
jmp 0x1401a4bbe
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xc4]
cmp dword [rsp + 0x40], eax
jge 0x1401a4ed6
cmp dword [rsp + 0x40], 0
jne 0x1401a4be5
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x58]
mov byte [rsp + 0x33], al
jmp 0x1401a4bf2
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x59]
mov byte [rsp + 0x33], al
movzx eax, byte [rsp + 0x33]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0xe0], rax
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0xe0]
call fcn.14016ec40
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jle 0x1401a4c6f
mov rax, qword [rsp + 0x80]
mov rcx, rax
call fcn.1401467a0
cmp dword [rax + 0x20], 0
jne 0x1401a4c6f
mov rax, qword [rsp + 0x80]
mov rcx, rax
call fcn.1401467a0
cmp qword [rax + 0x28], 0
je 0x1401a4c6f
mov rax, qword [rsp + 0x80]
mov rcx, rax
call fcn.140148ab0
mov rax, qword [rsp + 0x80]
cmp dword [rax], 1
je 0x1401a4c81
jmp 0x1401a4bb4
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
and eax, 0x100
test eax, eax
jne 0x1401a4d09
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1401a4cbb
mov rax, qword [rsp + 0x60]
movss xmm1, dword [rax + 0x48]
mov rax, qword [rsp + 0x60]
movss xmm0, dword [rax + 0x44]
call fcn.140199bb0
movss dword [rsp + 0x74], xmm0
jmp 0x1401a4cf3
cmp dword [rsp + 0x40], 0
jne 0x1401a4ce3
mov rax, qword [rsp + 0x60]
movss xmm1, dword [rax + 0x48]
mov rax, qword [rsp + 0x60]
movss xmm0, dword [rax + 0x40]
call fcn.140199bb0
movss dword [rsp + 0x74], xmm0
jmp 0x1401a4cf3
mov rax, qword [rsp + 0x60]
movss xmm0, dword [rax + 0x44]
movss dword [rsp + 0x74], xmm0
mov rax, qword [rsp + 0x60]
movss xmm0, dword [rsp + 0x74]
comiss xmm0, dword [rax + 0x28]
jbe 0x1401a4d09
jmp 0x1401a4bb4
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x1401a4d34
mov rax, qword [rsp + 0x2c0]
movsx eax, byte [rax + 0x204]
cmp dword [rsp + 0x3c], eax
jge 0x1401a4d34
mov dword [rsp + 0x98], 0
jmp 0x1401a4d3f
mov dword [rsp + 0x98], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1401a4d5c
cmp dword [rsp + 0x40], 0
jne 0x1401a4d5c
mov dword [rsp + 0x94], 0
jmp 0x1401a4d67
mov dword [rsp + 0x94], 2
mov eax, dword [rsp + 0x94]
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x9c], eax
cmp dword [rsp + 0x78], 0x84
jl 0x1401a4da6
mov r8d, 0x953
lea rdx, [0x14028ae90]
lea rcx, str.channel_no____4__64__2_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
movsxd rax, dword [rsp + 0x9c]
imul rax, rax, 0x28
lea rax, [rsp + rax + 0x1f0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
cmp dword [rax + 0x10], 0
jne 0x1401a4e15
movss xmm0, dword [0x140264548]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x140264548]
movss xmm2, dword [0x140264530]
movss xmm1, dword [0x140264530]
lea rcx, [rsp + 0x180]
call fcn.1400f5d10
mov rdi, qword [rsp + 0x88]
mov rsi, rax
mov ecx, select
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x88]
add rax, 0x14
mov qword [rsp + 0xe8], rax
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0xe8]
call fcn.14019fd20
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x10]
inc eax
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf0], rax
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.1400f7680
mov rdx, rax
lea rcx, [rsp + 0x160]
call fcn.1400f5ca0
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0xf8]
call fcn.1400f8a10
mov eax, dword [rsp + 0x9c]
mov ecx, 1
mov dword [rsp + 0xc0], ecx
movzx ecx, al
mov eax, dword [rsp + 0xc0]
shl eax, cl
mov ecx, dword [rsp + 0x7c]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
jmp 0x1401a4bb4
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x57], 0xff
jmp 0x1401a4afa
cmp dword [rsp + 0x7c], 0
je 0x1401a5523
mov dword [rsp + 0xc8], 2
mov rax, qword [rsp + 0xb0]
add rax, 0x4510
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
sub eax, 2
mov edx, eax
mov rcx, qword [rsp + 0x100]
call fcn.1401853f0
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x4518]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x1d0]
call fcn.140199ca0
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax + 4]
mov edx, 2
lea rcx, [rsp + 0x1d0]
call fcn.14019fd80
mov rax, qword [rsp + 0x2c0]
movzx eax, byte [rax + 0x208]
mov edx, eax
lea rcx, [rsp + 0x1d0]
call fcn.14019c2a0
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1401a4fbd
mov rax, qword [rsp + 0x2c0]
movzx eax, byte [rax + 0x208]
cmp eax, 1
jne 0x1401a4fbd
mov r8d, 0x97e
lea rdx, [0x14028af60]
lea rcx, str.has_freeze_v__false__table__Bg2DrawChannelUnfrozen___TABLE_DRAW_CHANNEL_BG2_FROZEN
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1401a4fd3
mov dword [rsp + 0xa0], 3
jmp 0x1401a4fde
mov dword [rsp + 0xa0], 2
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0xa0]
mov eax, dword [rax + 4]
sub eax, ecx
mov dword [rsp + 0x5c], eax
lea rax, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x2c0]
mov rdi, rax
lea rsi, [rcx + 0x15c]
mov ecx, select
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x38], 0
jmp 0x1401a5028
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 4
jge 0x1401a53ef
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov eax, dword [rsp + rax + 0x200]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x1401a537a
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 0x28
lea rax, [rsp + rax + 0x1f0]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x1b0]
mov rdi, rax
mov rsi, qword [rsp + 0xa8]
mov ecx, select
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x1401a5099
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x1401a50b9
movss xmm1, dword [rsp + 0x1c0]
movss xmm0, dword [rsp + 0x1b0]
call fcn.140199c20
movss dword [rsp + 0x1b0], xmm0
mov eax, dword [rsp + 0x38]
and eax, 2
test eax, eax
je 0x1401a50cd
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1401a50ed
movss xmm1, dword [rsp + 0x1c4]
movss xmm0, dword [rsp + 0x1b4]
call fcn.140199c20
movss dword [rsp + 0x1b4], xmm0
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x1401a5118
movss xmm1, dword [rsp + 0x1c8]
movss xmm0, dword [rsp + 0x1b8]
call fcn.140199bb0
movss dword [rsp + 0x1b8], xmm0
mov eax, dword [rsp + 0x38]
and eax, 2
test eax, eax
je 0x1401a5157
mov rax, qword [rsp + 0x2c0]
mov eax, dword [rax + 4]
and eax, 0x20000
test eax, eax
jne 0x1401a5157
movss xmm1, dword [rsp + 0x1cc]
movss xmm0, dword [rsp + 0x1bc]
call fcn.140199bb0
movss dword [rsp + 0x1bc], xmm0
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x10]
mov ecx, dword [rsp + 0x5c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x44], 0
jmp 0x1401a5182
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 5
jge 0x1401a51ba
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rcx + rax*4 + 0x14]
not eax
movsxd rcx, dword [rsp + 0x44]
mov ecx, dword [rsp + rcx*4 + 0x1d0]
and ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x44]
mov dword [rsp + rcx*4 + 0x1d0], eax
jmp 0x1401a5178
mov dword [rsp + 0x48], 0
jmp 0x1401a51ce
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x48], eax
jge 0x1401a537a
cmp dword [rsp + 0x70], 0
je 0x1401a537a
mov rax, qword [rsp + 0xa8]
add rax, 0x14
mov qword [rsp + 0x108], rax
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x108]
call fcn.1401ab1a0
movzx eax, al
test eax, eax
jne 0x1401a5219
jmp 0x1401a51c4
mov rax, qword [rsp + 0xa8]
add rax, 0x14
mov qword [rsp + 0x110], rax
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x110]
call fcn.14019c2a0
mov eax, dword [rsp + 0x70]
dec eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0x118], rax
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x118]
call fcn.14016ec40
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
cmp dword [rax], 1
jne 0x1401a52c5
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x120], rax
xor edx, edx
mov rcx, qword [rsp + 0x120]
call fcn.1400f7680
mov rdx, rax
lea rcx, [rsp + 0x190]
call fcn.1400f5ca0
mov rdx, rax
lea rcx, [rsp + 0x1b0]
call fcn.1401048d0
movzx eax, al
test eax, eax
jne 0x1401a52e1
mov r8d, 0x9a9
lea rdx, [0x14028b0a0]
lea rcx, str.channel___CmdBuffer.Size__1__merge_clip_rect.Contains_ImRect_channel___CmdBuffer_0_.ClipRect__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x1b0]
call fcn.14013e4f0
lea rcx, [rsp + 0x170]
mov rdi, rcx
mov rsi, rax
mov ecx, select
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x128], rax
xor edx, edx
mov rcx, qword [rsp + 0x128]
call fcn.1400f7680
lea rcx, [rsp + 0x170]
mov rdi, rax
mov rsi, rcx
mov ecx, select
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x68]
add rax, 0x20
mov qword [rsp + 0x68], rax
mov r8d, 0x20
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x130]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1401a51c4
cmp dword [rsp + 0x38], 1
jne 0x1401a53ea
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1401a53ea
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x68]
add rax, 0x20
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x2c0]
movzx eax, byte [rax + 0x208]
mov edx, eax
mov rcx, qword [rsp + 0x138]
call fcn.14016ec40
mov r8d, 0x20
mov rdx, rax
mov rcx, qword [rsp + 0x140]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1401a501e
mov dword [rsp + 0x58], 0
jmp 0x1401a5403
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x58], eax
jge 0x1401a54a9
cmp dword [rsp + 0x5c], 0
je 0x1401a54a9
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x1d0]
call fcn.1401ab1a0
movzx eax, al
test eax, eax
jne 0x1401a543a
jmp 0x1401a53f9
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0x148], rax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x148]
call fcn.14016ec40
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x68]
add rax, 0x20
mov qword [rsp + 0x68], rax
mov r8d, 0x20
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x158]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x5c]
dec eax
mov dword [rsp + 0x5c], eax
jmp 0x1401a53f9
mov rax, qword [rsp + 0xb0]
movsxd rax, dword [rax + 0x4510]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb0]
add rax, qword [rcx + 0x4518]
cmp qword [rsp + 0x68], rax
je 0x1401a54ee
mov r8d, 0x9bd
lea rdx, [0x14028b200]
lea rcx, str.dst_tmp__g.DrawChannelsTempMergeBuffer.Data__g.DrawChannelsTempMergeBuffer.Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
sub eax, 2
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
add rcx, 0x40
mov r8, rax
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax + 0x4518]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1401f4e50
add rsp, 0x2a8
pop rdi
pop rsi
ret