Function at 0x14005af40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [rcx + 0xc0]
lea rdi, [rcx + 0xb8]
mov r15, qword [rdi]
lea r14, [rcx + 0x30]
xor esi, esi
mov rbx, rcx
cmp r15, rax
jb 0x14005afc0
cmp dword [r14], esi
je 0x14005afea
mov r8d, dword [rcx + 0x34]
lea r15, [rcx + 0x38]
mov rcx, qword [rcx + 0x28]
mov rdx, r15
call qword [rbx + reloc.WS2_32.dll_recv]
mov qword [rdi], r15
test eax, eax
jne 0x14005afb0
lea rax, [rbx + 0x39]
mov dword [r14], esi
mov qword [rbx + 0xc0], rax
mov byte [r15], sil
jmp 0x14005afc0
cdqe
add rax, 0x38
add rax, rbx
mov qword [rbx + 0xc0], rax
movzx r8d, byte [r15]
mov rdx, rdi
inc r15
mov byte [rsp + 0x110], r8b
mov rcx, r15
mov rbp, r14
mov qword [rdx], rcx
movzx ecx, r8b
mov dword [rsp + 0x30], ecx
cmp r15, rax
jae 0x14005aff9
jmp 0x14005b03a
mov byte [rsp + 0x110], sil
mov rbp, r14
mov dword [rsp + 0x30], esi
cmp dword [rbp], esi
je 0x14005b064
mov r8d, dword [rbx + 0x34]
lea r15, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, r15
call qword [rbx + reloc.WS2_32.dll_recv]
mov qword [rdi], r15
test eax, eax
jne 0x14005b02a
lea rax, [rbx + 0x39]
mov dword [rbp], esi
mov qword [rbx + 0xc0], rax
mov byte [r15], sil
jmp 0x14005b03a
cdqe
add rax, 0x38
add rax, rbx
mov qword [rbx + 0xc0], rax
movzx r13d, byte [r15]
mov rdx, rdi
inc r15
mov rcx, r15
mov qword [rdx], rcx
movzx ecx, r13b
mov dword [rsp + 0x58], ecx
cmp r15, rax
jae 0x14005b06b
movzx ecx, byte [r15]
lea rax, [r15 + 1]
mov qword [rdi], rax
jmp 0x14005b0c7
xor r13b, r13b
mov dword [rsp + 0x58], esi
cmp dword [rbp], esi
je 0x14005b0c5
mov r8d, dword [rbx + 0x34]
lea r15, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, r15
call qword [rbx + reloc.WS2_32.dll_recv]
mov qword [rdi], r15
test eax, eax
jne 0x14005b0a7
lea rax, [rbx + 0x39]
mov dword [rbp], esi
mov qword [rbx + 0xc0], rax
movzx ecx, sil
lea rax, [r15 + 1]
mov byte [r15], sil
mov qword [rdi], rax
jmp 0x14005b0c7
movsxd rcx, eax
lea rax, [r15 + 1]
add rcx, 0x38
add rcx, rbx
mov qword [rbx + 0xc0], rcx
movzx ecx, byte [r15]
mov qword [rdi], rax
jmp 0x14005b0c7
xor cl, cl
movzx eax, cl
mov rcx, rbx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0xf0], eax
call fcn.14004ed10
mov rcx, rbx
mov dword [rsp + 0x50], eax
call fcn.14004ed10
mov rcx, qword [rdi]
mov dword [rsp + 0x48], eax
cmp rcx, qword [rbx + 0xc0]
jae 0x14005b104
movzx edx, byte [rcx]
inc rcx
mov qword [rdi], rcx
jmp 0x14005b160
cmp dword [r14], esi
je 0x14005b15e
mov r8d, dword [rbx + 0x34]
lea r15, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, r15
call qword [rbx + reloc.WS2_32.dll_recv]
mov qword [rdi], r15
test eax, eax
jne 0x14005b140
lea rax, [rbx + 0x39]
mov dword [r14], esi
mov qword [rbx + 0xc0], rax
movzx edx, sil
lea rax, [r15 + 1]
mov byte [r15], sil
mov qword [rdi], rax
jmp 0x14005b160
movsxd rcx, eax
lea rax, [r15 + 1]
add rcx, 0x38
add rcx, rbx
mov qword [rbx + 0xc0], rcx
movzx edx, byte [r15]
mov qword [rdi], rax
jmp 0x14005b160
xor dl, dl
movzx ecx, dl
mov dword [rsp + 0x108], ecx
mov rcx, rbx
mov qword [rsp + 0xa8], r12
call fcn.14004ed10
mov rcx, rbx
call fcn.14004ed10
mov rcx, rbx
call fcn.14004ed10
mov rcx, rbx
mov dword [rsp + 0x34], eax
call fcn.14004ed10
mov rcx, qword [rbx + 0xc0]
mov dword [rsp + 0x4c], eax
mov rax, qword [rdi]
cmp rax, rcx
jae 0x14005b1b1
movzx edx, byte [rax]
inc rax
jmp 0x14005b1fb
cmp dword [r14], esi
je 0x14005b21b
mov r8d, dword [rbx + 0x34]
lea r15, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, r15
call qword [rbx + reloc.WS2_32.dll_recv]
mov qword [rdi], r15
test eax, eax
jne 0x14005b1e2
lea rcx, [rbx + 0x39]
mov dword [r14], esi
mov qword [rbx + 0xc0], rcx
mov byte [r15], sil
jmp 0x14005b1f3
movsxd rcx, eax
add rcx, 0x38
add rcx, rbx
mov qword [rbx + 0xc0], rcx
movzx edx, byte [r15]
lea rax, [r15 + 1]
movzx r12d, dl
mov r9, rdi
mov qword [rdi], rax
mov ebp, r12d
mov r8, rax
cmp rax, rcx
jae 0x14005b220
movzx ecx, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x14005b27c
mov r12d, esi
mov ebp, esi
cmp dword [r14], esi
je 0x14005b27a
mov r8d, dword [rbx + 0x34]
lea r15, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, r15
call qword [rbx + reloc.WS2_32.dll_recv]
mov qword [rdi], r15
test eax, eax
jne 0x14005b25c
lea rax, [rbx + 0x39]
mov dword [r14], esi
mov qword [rbx + 0xc0], rax
movzx ecx, sil
lea rax, [r15 + 1]
mov byte [r15], sil
mov qword [rdi], rax
jmp 0x14005b27c
movsxd rcx, eax
lea rax, [r15 + 1]
add rcx, 0x38
add rcx, rbx
mov qword [rbx + 0xc0], rcx
movzx ecx, byte [r15]
mov qword [rdi], rax
jmp 0x14005b27c
xor cl, cl
cmp dword [rsp + 0x38], 8
mov r15d, 1
movzx eax, cl
mov ecx, dword [rsp + 0xf0]
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x118], esi
jb 0x14005b2a2
sub ecx, 8
mov r8d, dword [rsp + 0x58]
mov edx, r15d
shr eax, 5
and eax, r15d
mov dword [rsp + 0xf0], esi
sub edx, eax
mov dword [rsp + 0x60], edx
test r8d, r8d
je 0x14005b2fd
mov edx, dword [rsp + 0x108]
mov ecx, edx
sub ecx, 8
je 0x14005b355
sub ecx, 7
je 0x14005b340
sub ecx, r15d
je 0x14005b340
sub ecx, 8
je 0x14005b2f1
cmp ecx, 8
je 0x14005b2f1
mov dword [rsp + 0x108], esi
jmp 0x14005b35d
shr edx, 3
mov dword [rsp + 0x108], edx
jmp 0x14005b35d
sub ebp, 8
je 0x14005b355
sub ebp, 7
je 0x14005b340
sub ebp, r15d
je 0x14005b32e
sub ebp, 8
je 0x14005b31f
cmp ebp, 8
je 0x14005b31f
mov dword [rsp + 0x108], esi
jmp 0x14005b35d
mov eax, r12d
shr eax, 3
mov dword [rsp + 0x108], eax
jmp 0x14005b35d
cmp ecx, 3
jne 0x14005b340
mov dword [rsp + 0x108], 2
jmp 0x14005b35d
mov dword [rsp + 0x108], 3
mov dword [rsp + 0xf0], r15d
jmp 0x14005b35d
mov dword [rsp + 0x108], r15d
mov r9d, dword [rsp + 0x108]
test r9d, r9d
jne 0x14005b382
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_format
jmp 0x14005bc61
mov rax, qword [rsp + 0xf8]
mov r11d, dword [rsp + 0x34]
mov r10d, dword [rsp + 0x4c]
mov dword [rax], r11d
mov rax, qword [rsp + 0x100]
mov dword [rax], r10d
test r11d, r11d
js 0x14005bc4e
test r10d, r10d
js 0x14005bc4e
je 0x14005b3c8
mov eax, 0x7fffffff
cdq
idiv r10d
cmp r11d, eax
jg 0x14005bc4e
mov ecx, r10d
imul ecx, r11d
test ecx, ecx
js 0x14005bc4e
xor edx, edx
mov eax, 0x7fffffff
div r9d
cmp ecx, eax
jg 0x14005bc4e
test r10d, r10d
je 0x14005b40d
mov eax, 0x7fffffff
cdq
idiv r10d
cmp r11d, eax
jg 0x14005bc39
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x58], r8d
movzx r14d, byte [rsp + 0x110]
mov eax, r10d
imul eax, r9d
imul eax, r11d
movsxd rcx, eax
call fcn.1400de01c
mov qword [rsp + 0x40], rax
mov r9, rax
mov rbp, rax
test rax, rax
je 0x14005bc39
cmp qword [rbx + 0x10], rsi
je 0x14005b46b
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rdi]
mov edx, dword [rsp + 0x30]
cmp ecx, edx
jge 0x14005b46b
mov rax, qword [rbx + 0xc0]
sub edx, ecx
mov rcx, qword [rbx + 0x28]
mov qword [rdi], rax
call qword [rbx + 0x18]
mov r9, rbp
jmp 0x14005b472
movzx eax, r14b
add qword [rdi], rax
cmp dword [rsp + 0x58], esi
jne 0x14005b53e
mov edx, dword [rsp + 0x38]
mov qword [rsp + 0x50], r9
mov dword [rsp + 0x30], r12d
mov byte [rsp + 0x110], r13b
cmp edx, 8
jae 0x14005b6e0
mov eax, dword [rsp + 0xf0]
mov qword [rsp + 0x50], r9
mov dword [rsp + 0x30], r12d
mov byte [rsp + 0x110], r13b
test eax, eax
jne 0x14005b6e0
mov r13d, dword [rsp + 0x4c]
mov r12, r9
mov r15d, dword [rsp + 0x34]
test r13d, r13d
jle 0x14005bbc6
mov ecx, dword [rsp + 0x108]
mov ebp, r15d
imul ebp, ecx
mov edi, r13d
cmp dword [rsp + 0x60], esi
je 0x14005b51c
mov eax, ebp
neg eax
movsxd r14, eax
lea eax, [r13 - 1]
imul eax, ecx
imul eax, r15d
movsxd rsi, eax
add rsi, r9
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
call fcn.14004eb20
add rsi, r14
sub rdi, 1
jne 0x14005b500
jmp 0x14005bbba
movsxd r14, ebp
mov rsi, r9
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
call fcn.14004eb20
add rsi, r14
sub rdi, 1
jne 0x14005b522
jmp 0x14005bbba
movsxd rdx, dword [rsp + 0x50]
test edx, edx
jns 0x14005b553
mov rax, qword [rbx + 0xc0]
mov qword [rdi], rax
jmp 0x14005b585
cmp qword [rbx + 0x10], rsi
je 0x14005b57e
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rdi]
cmp ecx, edx
jge 0x14005b57e
mov rax, qword [rbx + 0xc0]
sub edx, ecx
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
jmp 0x14005b585
add qword [rbx + 0xb8], rdx
mov r8d, dword [rsp + 0x48]
test r8d, r8d
js 0x14005bc2e
mov r14d, dword [rsp + 0x108]
xor edx, edx
mov eax, 0x7fffffff
div r14d
cmp r8d, eax
jg 0x14005bc2e
mov eax, r14d
mov rdi, rbp
imul eax, r8d
movsxd rcx, eax
call fcn.1400de01c
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14005bc31
cmp dword [rsp + 0xf0], esi
je 0x14005b774
mov r14, rax
mov eax, dword [rsp + 0x108]
cmp eax, 3
je 0x14005b60a
mov r8d, 0x1689
lea rdx, str.C:UsersOpchiDesktoppecesinclude_stb_image.h
lea rcx, str.tga_comp__STBI_rgb
call fcn.1400ddfa8
mov eax, dword [rsp + 0x108]
mov ecx, dword [rsp + 0x48]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x30], r12d
mov byte [rsp + 0x110], r13b
test ecx, ecx
jle 0x14005b6dc
mov r15d, eax
mov ebp, ecx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x30], r12d
mov byte [rsp + 0x110], r13b
nop dword [rax]
mov rcx, rbx
call fcn.14004ed10
movzx r8d, ax
mov eax, r8d
shr eax, 0xa
and eax, 0x1f
imul ecx, eax, 0xff
mov eax, 0x84210843
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
shr eax, 5
and r8d, 0x1f
and eax, 0x1f
mov byte [r14], dl
imul ecx, eax, 0xff
mov eax, 0x84210843
imul ecx
add edx, ecx
imul ecx, r8d, 0xff
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x84210843
mov byte [r14 + 1], dl
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [r14 + 2], dl
add r14, r15
sub rbp, 1
jne 0x14005b650
mov r15d, 1
mov edx, dword [rsp + 0x38]
mov r13d, dword [rsp + 0x4c]
mov eax, r13d
imul eax, dword [rsp + 0x34]
mov edi, dword [rsp + 0x108]
mov ebp, edi
test eax, eax
je 0x14005bb38
mov r13, qword [rsp + 0x50]
lea r8, [rsp + 0x118]
movaps xmmword [rsp + 0x90], xmm6
sub r13, r8
movdqa xmm6, xmmword [0x1401377e0]
mov ecx, edi
movaps xmmword [rsp + 0x80], xmm7
mov r14d, esi
movdqa xmm7, xmmword [0x1401377d0]
mov r12d, esi
mov qword [rsp + 0x58], rax
nop dword [rax + rax]
cmp edx, 8
jb 0x14005b866
test r14d, r14d
jne 0x14005b858
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x14005b7d1
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14005b844
mov r8d, r14d
mov qword [rsp + 0x50], rdi
imul r8d, dword [rsp + 0x48]
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x30], r12d
mov byte [rsp + 0x110], r13b
call fcn.14004eb20
test eax, eax
jne 0x14005b6dc
mov rcx, rdi
call fcn.1400d7f68
mov rcx, qword [rsp + 0x68]
call fcn.1400d7f68
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_palette
jmp 0x14005bc61
cmp dword [rbx + 0x30], esi
je 0x14005b842
mov r8d, dword [rbx + 0x34]
lea rdx, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
call qword [rbx + reloc.WS2_32.dll_recv]
test eax, eax
jne 0x14005b80d
movq xmm0, rbx
mov dword [rbx + 0x30], esi
punpcklqdq xmm0, xmm0
paddq xmm0, xmm6
movdqu xmmword [rbx + 0xb8], xmm0
mov rax, qword [rbx + 0xb8]
mov byte [rax], sil
jmp 0x14005b82c
cdqe
movq xmm1, rbx
add rax, rbx
movq xmm0, rax
punpcklqdq xmm1, xmm0
paddq xmm1, xmm7
movdqu xmmword [rbx + 0xb8], xmm1
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14005b844
xor cl, cl
movzx r12d, cl
mov r14d, r12d
and r14d, 0x7f
inc r14d
shr r12d, 7
jmp 0x14005b866
test r12d, r12d
je 0x14005b866
test r15d, r15d
je 0x14005bad0
cmp byte [rsp + 0x110], sil
je 0x14005b959
cmp dword [rsp + 0x30], 8
jne 0x14005b91f
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x14005b8a4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
movzx eax, cl
jmp 0x14005b927
cmp dword [rbx + 0x30], esi
je 0x14005b918
mov r8d, dword [rbx + 0x34]
lea rdx, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
call qword [rbx + reloc.WS2_32.dll_recv]
test eax, eax
jne 0x14005b8e0
movq xmm0, rbx
mov dword [rbx + 0x30], esi
punpcklqdq xmm0, xmm0
paddq xmm0, xmm6
movdqu xmmword [rbx + 0xb8], xmm0
mov rax, qword [rbx + 0xb8]
mov byte [rax], sil
jmp 0x14005b8ff
cdqe
movq xmm1, rbx
add rax, rbx
movq xmm0, rax
punpcklqdq xmm1, xmm0
paddq xmm1, xmm7
movdqu xmmword [rbx + 0xb8], xmm1
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
movzx eax, cl
jmp 0x14005b927
xor cl, cl
movzx eax, cl
jmp 0x14005b927
mov rcx, rbx
call fcn.14004ed10
test rbp, rbp
je 0x14005bac5
cmp eax, dword [rsp + 0x48]
mov ecx, esi
mov r8, rbp
cmovl ecx, eax
imul ecx, edi
movsxd rdx, ecx
lea rcx, [rsp + 0x118]
add rdx, qword [rsp + 0x68]
call fcn.140101b90
jmp 0x14005bac5
cmp dword [rsp + 0xf0], esi
je 0x14005ba0c
cmp edi, 3
je 0x14005b984
mov r8d, 0x16be
lea rdx, str.C:UsersOpchiDesktoppecesinclude_stb_image.h
lea rcx, str.tga_comp__STBI_rgb
call fcn.1400ddfa8
mov rcx, rbx
call fcn.14004ed10
movzx r8d, ax
mov eax, r8d
shr eax, 0xa
and eax, 0x1f
imul ecx, eax, 0xff
mov eax, 0x84210843
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
shr eax, 5
and r8d, 0x1f
and eax, 0x1f
mov byte [rsp + 0x118], dl
imul ecx, eax, 0xff
mov eax, 0x84210843
imul ecx
add edx, ecx
imul ecx, r8d, 0xff
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x84210843
mov byte [rsp + 0x119], dl
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [rsp + 0x11a], dl
jmp 0x14005bac5
mov rdi, rsi
test rbp, rbp
je 0x14005bac5
nop dword [rax + rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x14005ba3f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14005bab2
cmp dword [rbx + 0x30], esi
je 0x14005bab0
mov r8d, dword [rbx + 0x34]
lea rdx, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
call qword [rbx + reloc.WS2_32.dll_recv]
test eax, eax
jne 0x14005ba7b
movq xmm0, rbx
mov dword [rbx + 0x30], esi
punpcklqdq xmm0, xmm0
paddq xmm0, xmm6
movdqu xmmword [rbx + 0xb8], xmm0
mov rax, qword [rbx + 0xb8]
mov byte [rax], sil
jmp 0x14005ba9a
cdqe
movq xmm1, rbx
add rax, rbx
movq xmm0, rax
punpcklqdq xmm1, xmm0
paddq xmm1, xmm7
movdqu xmmword [rbx + 0xb8], xmm1
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14005bab2
xor cl, cl
mov byte [rsp + rdi + 0x118], cl
inc rdi
cmp rdi, rbp
jl 0x14005ba20
mov rax, qword [rsp + 0x58]
mov r15d, esi
mov rcx, rbp
mov rdi, rsi
test rbp, rbp
je 0x14005bb03
lea rcx, [rsp + 0x118]
mov r8, rbp
add rcx, r13
lea rdx, [rsp + 0x118]
call fcn.140101b90
inc rdi
cmp rdi, rbp
jl 0x14005baf3
mov rax, qword [rsp + 0x58]
mov rcx, rbp
mov edi, dword [rsp + 0x108]
dec r14d
mov edx, dword [rsp + 0x38]
add r13, rcx
sub rax, 1
mov qword [rsp + 0x58], rax
jne 0x14005b740
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r13d, dword [rsp + 0x4c]
mov r12, qword [rsp + 0x50]
mov r15d, dword [rsp + 0x34]
cmp dword [rsp + 0x60], esi
je 0x14005bba8
test r13d, r13d
jle 0x14005bba8
lea r10d, [r13 - 1]
mov r11d, edi
imul r10d, edi
mov ebx, esi
imul r11d, r15d
imul r10d, r15d
mov r8d, r11d
test r11d, r11d
jle 0x14005bb9a
movsxd rax, ebx
movsxd r9, r10d
sub r9, rax
lea rdx, [rax + r12]
nop word [rax + rax]
movzx eax, byte [r9 + rdx]
dec r8d
movzx ecx, byte [rdx]
mov byte [rdx], al
mov byte [r9 + rdx], cl
lea rdx, [rdx + 1]
test r8d, r8d
jg 0x14005bb80
add ebx, r11d
sub r10d, r11d
add esi, 2
cmp esi, r13d
jl 0x14005bb62
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14005bbba
mov rcx, rax
call fcn.1400d7f68
mov eax, dword [rsp + 0xf0]
mov r9, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x108]
cmp ecx, 3
jb 0x14005bc09
test eax, eax
jne 0x14005bc09
mov eax, r13d
mov r10, r12
imul eax, r15d
test eax, eax
je 0x14005bc09
mov r11d, eax
nop word [rax + rax]
movzx r8d, byte [r10]
movzx eax, byte [r10 + 2]
mov byte [r10], al
mov byte [r10 + 2], r8b
add r10, rcx
sub r11, 1
jne 0x14005bbf0
cmp ecx, 4
je 0x14005bc29
mov edx, ecx
mov dword [rsp + 0x20], r13d
mov rcx, r12
mov r9d, r15d
mov r8d, 4
call fcn.14004ee30
mov r9, rax
mov rax, r9
jmp 0x14005bc6c
mov rdi, rbp
mov rcx, rdi
call fcn.1400d7f68
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x14005bc61
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.too_large
mov edx, 0x18
mov qword [rdx + rcx], rax
xor eax, eax
mov r12, qword [rsp + 0xa8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret