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

Disassembly:
lea r12, [rsp - 0x58]
cmp r12, qword [r14 + 0x10]
jbe 0x4993c6
push rbp
mov rbp, rsp
sub rsp, 0xd0
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0x70], 0
movups xmmword [rsp + 0x78], xmm15
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x40], rdx
mov rdx, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xf0]
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], rdx
jmp 0x4990ce
mov rdx, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rdx
jg 0x4990dc
jmp 0x49910f
mov rdx, qword [rsp + 0x68]
shl rdx, 2
add rdx, qword [rsp + 0xb8]
mov edx, dword [rdx]
mov dword [rsp + 0x24], edx
cmp edx, 0x10000
jge 0x4990fd
jmp 0x499104
inc qword [rsp + 0x40]
jmp 0x499106
jmp 0x499106
jmp 0x499108
inc qword [rsp + 0x68]
jmp 0x4990ce
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x40]
lea rax, [0x005aa8e0]
call sym.runtime.makeslice
mov rdx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x40], 0
mov rdx, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xf0]
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], rdx
jmp 0x499190
mov rsi, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rsi
jg 0x4991a5
nop dword [rax]
jmp 0x499345
mov rsi, qword [rsp + 0x58]
shl rsi, 2
add rsi, qword [rsp + 0xb8]
mov esi, dword [rsi]
mov dword [rsp + 0x20], esi
test esi, esi
setge byte [rsp + 0x1f]
jge 0x4991c7
jmp 0x4991d6
cmp dword [rsp + 0x20], 0xd800
setl byte [rsp + 0x1f]
jmp 0x4991d8
jmp 0x4991d8
cmp byte [rsp + 0x1f], 0
jne 0x4991e2
nop
jmp 0x4991e4
jmp 0x499211
cmp dword [rsp + 0x20], 0xe000
setge byte [rsp + 0x1e]
jge 0x4991f5
jmp 0x499204
cmp dword [rsp + 0x20], 0x10000
setl byte [rsp + 0x1e]
jmp 0x499206
jmp 0x499206
cmp byte [rsp + 0x1e], 0
jne 0x49920f
jmp 0x499245
jmp 0x499211
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov edi, dword [rsp + 0x20]
cmp rax, rcx
jb 0x499234
jmp 0x4993c0
lea rsi, [rsi + rax*2]
mov word [rsi], di
inc qword [rsp + 0x40]
jmp 0x499335
cmp dword [rsp + 0x20], 0x10000
setge byte [rsp + 0x1d]
jge 0x499256
jmp 0x499265
cmp dword [rsp + 0x20], 0x10ffff
setle byte [rsp + 0x1d]
jmp 0x499267
jmp 0x499267
cmp byte [rsp + 0x1d], 0
jne 0x499273
jmp 0x4992fe
jmp 0x499275
mov eax, dword [rsp + 0x20]
call sym.unicode_utf16.EncodeRune
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x28], ebx
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x40]
cmp rbx, rcx
jb 0x4992b5
jmp 0x4993b4
lea rsi, [rdx + rbx*2]
mov word [rsi], ax
mov rax, qword [rsp + 0x40]
lea rsi, [rax + 1]
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x28]
nop
cmp rcx, rsi
ja 0x4992ea
jmp 0x4993ac
lea rsi, [rdi + rax*2]
lea rsi, [rsi + 2]
mov word [rsi], r8w
add qword [rsp + 0x40], 2
jmp 0x499335
nop
jmp 0x499302
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
cmp rcx, rax
ja 0x499325
nop dword [rax]
jmp 0x4993a7
lea rsi, [rsi + rax*2]
mov word [rsi], 0xfffd
inc qword [rsp + 0x40]
jmp 0x499335
jmp 0x499337
inc qword [rsp + 0x58]
nop dword [rax]
jmp 0x499190
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x88]
cmp rcx, rdx
jbe 0x499362
nop
jmp 0x4993a2
jmp 0x499364
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x80], rdx
mov rax, qword [rsp + 0x70]
mov rbx, rcx
mov rcx, rdx
add rsp, 0xd0
pop rbp
ret
call sym.runtime.panicSliceAcap
call sym.runtime.panicIndex
mov rax, rsi
call sym.runtime.panicIndex
mov rax, rbx
call sym.runtime.panicIndex
nop dword [rax]
call sym.runtime.panicIndex
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.unicode_utf16.Encode