Function at 0x1400500a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push r15
lea rbp, [rsp - 0x3e8]
sub rsp, 0x4e8
xor r15d, r15d
mov dword [rbp - 0x44], 0xff
lea rdx, [rbp - 0x60]
mov dword [rsp + 0x20], r15d
mov esi, r15d
mov rbx, rcx
call fcn.14004fb30
test rax, rax
je 0x140050117
mov eax, dword [rbx + 4]
mov dword [rbp - 0x7c], eax
cdq
xor eax, edx
sub eax, edx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x140050126
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4e8
pop r15
pop rsi
pop rbx
pop rbp
ret
cmp dword [rbx], 0x1000000
ja 0x1400500fb
mov eax, dword [rbp - 0x54]
mov dword [rsp + 0x34], eax
mov eax, dword [rbp - 0x50]
mov qword [rsp + 0x510], rdi
mov edi, dword [rbp - 0x48]
mov dword [rsp + 0x3c], eax
mov eax, dword [rbp - 0x4c]
mov qword [rsp + 0x4e0], r12
mov r12d, dword [rbp - 0x5c]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x44]
mov qword [rsp + 0x4d8], r13
mov r13d, dword [rbp - 0x60]
mov qword [rsp + 0x4d0], r14
mov r14d, dword [rbp - 0x58]
mov dword [rbp + 0x438], eax
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x2c], r12d
mov dword [rsp + 0x24], r14d
mov dword [rbp + 0x430], r13d
cmp r14d, 0xc
jne 0x1400501bb
cmp r13d, 0x18
jge 0x1400501d8
mov ecx, r12d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x1400501cc
cmp r13d, 0x10
jge 0x1400501d8
mov esi, r12d
sub esi, eax
sub esi, r14d
sar esi, 2
mov dword [rsp + 0x20], esi
test esi, esi
jne 0x140050264
mov edx, dword [rbx + 0xb8]
sub edx, dword [rbx + 0xd0]
mov r8d, dword [rbx + 0xc0]
add edx, r8d
lea eax, [rdx - 1]
cmp eax, 0x3ff
ja 0x14005140e
cmp r12d, edx
jl 0x1400513f9
mov ecx, r12d
sub ecx, edx
cmp ecx, 0x400
jg 0x1400513f9
test ecx, ecx
je 0x140050264
jns 0x14005022c
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x140050264
cmp qword [rbx + 0x10], r15
je 0x14005025a
mov edx, dword [rbx + 0xc8]
sub edx, r8d
cmp edx, ecx
jge 0x14005025a
mov rax, qword [rbx + 0xc8]
sub ecx, edx
mov edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
jmp 0x140050264
movsxd rax, ecx
add qword [rbx + 0xc0], rax
cmp r13d, 0x18
jne 0x140050278
cmp edi, 0xff000000
jne 0x140050278
lea eax, [r13 - 0x15]
jmp 0x140050283
test edi, edi
mov eax, r15d
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
test ecx, ecx
js 0x1400513e4
jne 0x1400502a0
lea r9d, [rcx*4]
jmp 0x1400502c2
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400513e4
lea r9d, [rcx*4]
test r9d, r9d
js 0x1400513e4
test r8d, r8d
js 0x1400513e4
je 0x1400502df
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400513e4
test ecx, ecx
jne 0x1400502ed
lea r9d, [rcx*4]
jmp 0x140050310
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400513cf
lea edx, [rcx*4]
test edx, edx
js 0x1400513cf
mov r9d, edx
test r8d, r8d
je 0x140050327
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400513cf
imul ecx, r8d
shl ecx, 2
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x78], rax
mov r15, rax
test rax, rax
je 0x1400513cf
cmp r13d, 0x10
jge 0x140050977
xor r9d, r9d
mov edi, r9d
test esi, esi
je 0x140050956
cmp esi, 0x100
jg 0x140050956
movsxd rax, esi
test esi, esi
jle 0x1400504c9
mov r12d, dword [rsp + 0x24]
lea rsi, [rbx + 0x30]
mov r13d, r9d
mov r15, rax
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1400503af
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400503d8
cmp dword [rbx + 0x30], edi
lea rsi, [rbx + 0x30]
je 0x1400503d6
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400503d8
xor cl, cl
mov r14, rsi
mov byte [rbp + r13*4 - 0x2e], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1400503f8
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005041c
cmp dword [rsi], edi
je 0x14005041a
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005041c
xor cl, cl
mov byte [rbp + r13*4 - 0x2f], cl
mov rcx, qword [rbx + 0xc8]
cmp rax, rcx
jae 0x140050440
movzx edx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005046b
cmp dword [rsi], edi
je 0x140050469
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005046b
xor dl, dl
mov byte [rbp + r13*4 - 0x30], dl
cmp r12d, 0xc
je 0x14005049b
cmp rax, rcx
jae 0x140050487
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14005049b
cmp dword [r14], edi
je 0x14005049b
mov rcx, rbx
call fcn.140046160
inc qword [rbx + 0xc0]
mov byte [rbp + r13*4 - 0x2d], 0xff
inc r13
cmp r13, r15
jl 0x140050390
mov r15, qword [rbp - 0x78]
xor r9d, r9d
mov r12d, dword [rsp + 0x2c]
mov esi, dword [rsp + 0x20]
mov r14d, dword [rsp + 0x24]
mov r13d, dword [rbp + 0x430]
cmp r14d, 0xc
mov eax, r9d
setne al
add eax, 3
imul eax, esi
sub r12d, eax
sub r12d, dword [rsp + 0x28]
sub r12d, r14d
je 0x14005053c
test r12d, r12d
jns 0x1400504fb
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14005053c
cmp qword [rbx + 0x10], rdi
je 0x140050532
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x140050532
mov rax, qword [rbx + 0xc8]
sub r12d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r12d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
xor r9d, r9d
jmp 0x14005053c
movsxd rax, r12d
add qword [rbx + 0xc0], rax
cmp r13d, 1
jne 0x14005054f
mov r8d, dword [rbx]
lea r12d, [r8 + 7]
shr r12d, 3
jmp 0x140050571
cmp r13d, 4
jne 0x140050561
mov r8d, dword [rbx]
lea r12d, [r8 + 1]
shr r12d, 1
jmp 0x140050571
cmp r13d, 8
jne 0x140050935
mov r12d, dword [rbx]
mov r8d, r12d
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov edx, eax
cmp r13d, 1
mov dword [rsp + 0x30], r12d
mov r13d, r9d
jne 0x140050741
test eax, eax
jle 0x1400512e0
mov rdi, r9
nop word [rax + rax]
mov rcx, qword [rbx + 0xc0]
mov esi, 7
cmp rcx, qword [rbx + 0xc8]
jae 0x1400505c4
movzx edx, byte [rcx]
inc rcx
mov qword [rbx + 0xc0], rcx
jmp 0x1400505ee
cmp dword [rbx + 0x30], 0
je 0x1400505ec
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
xor r9d, r9d
movzx edx, byte [rax]
lea rcx, [rax + 1]
mov qword [rbx + 0xc0], rcx
jmp 0x1400505ee
xor dl, dl
movzx r10d, dl
mov r8, rcx
mov edx, dword [rbx]
mov r14d, r9d
test edx, edx
jle 0x1400506e0
mov r9, rcx
mov r11d, edx
nop dword [rax + rax]
mov eax, r10d
mov ecx, esi
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x30]
mov byte [rdi + r15], al
movzx eax, byte [rbp + rcx - 0x2f]
mov byte [rdi + r15 + 1], al
movzx eax, byte [rbp + rcx - 0x2e]
mov rcx, r9
mov byte [rdi + r15 + 2], al
lea eax, [r14 + 1]
mov byte [rdi + r15 + 3], 0xff
mov r14d, eax
add rdi, 4
cmp eax, edx
je 0x1400506e0
sub esi, 1
jns 0x1400506cb
mov esi, 7
cmp r9, qword [rbx + 0xc8]
jae 0x140050689
movzx r10d, byte [r9]
lea rcx, [r9 + 1]
mov qword [rbx + 0xc0], rcx
mov r8, rcx
movzx r10d, r10b
mov edx, r11d
jmp 0x1400506d1
cmp dword [rbx + 0x30], 0
je 0x1400506b8
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
movzx r10d, byte [rax]
lea rcx, [rax + 1]
mov qword [rbx + 0xc0], rcx
mov r8, rcx
mov edx, dword [rbx]
movzx r10d, r10b
jmp 0x1400506d1
mov r8, qword [rbx + 0xc0]
xor r10b, r10b
movzx r10d, r10b
mov edx, r11d
jmp 0x1400506d1
mov rcx, r8
mov edx, r11d
mov r9, rcx
mov r11d, edx
cmp r14d, edx
jl 0x140050610
test r12d, r12d
je 0x140050725
cmp qword [rbx + 0x10], 0
je 0x140050718
mov r8d, dword [rbx + 0xc8]
sub r8d, ecx
cmp r8d, r12d
jge 0x140050718
mov rax, qword [rbx + 0xc8]
mov edx, r12d
mov rcx, qword [rbx + 0x28]
sub edx, r8d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
jmp 0x140050725
mov eax, r12d
add rax, rcx
mov qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
mov r9d, 0
cmp r13d, eax
jl 0x1400505a0
jmp 0x1400512e0
mov dword [rsp + 0x24], r13d
test eax, eax
jle 0x1400512e0
jmp 0x140050753
xor r9d, r9d
mov eax, r8d
mov esi, r9d
test r8d, r8d
jle 0x1400508d4
mov r12d, dword [rbp + 0x430]
xor r13d, r13d
nop dword [rax]
mov r10, qword [rbx + 0xc8]
mov r8d, eax
mov r9, qword [rbx + 0xc0]
cmp r9, r10
jae 0x140050796
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xc0], r9
jmp 0x1400507c7
cmp dword [rbx + 0x30], r13d
je 0x1400507c5
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
mov r10, qword [rbx + 0xc8]
mov r8d, dword [rbx]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xc0], r9
jmp 0x1400507c7
xor cl, cl
mov edx, Ordinal_50
mov rax, rbx
movzx eax, cl
mov r11d, r13d
lea r14, [rdx + rbx]
cmp r12d, 4
jne 0x1400507e9
mov r11d, eax
and r11d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x30]
inc edi
mov byte [rcx + r15], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, edi
inc edi
mov byte [rcx + r15], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, edi
inc edi
mov byte [rcx + r15], al
movsxd rax, edi
inc edi
mov byte [rax + r15], 0xff
lea eax, [rsi + 1]
cmp eax, r8d
je 0x1400508ca
cmp r12d, 8
jne 0x140050879
cmp r9, r10
jae 0x14005084d
movzx ecx, byte [r9]
lea rax, [r9 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x140050875
cmp dword [r14], r13d
je 0x140050873
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov r8d, dword [rbx]
jmp 0x140050875
xor cl, cl
movzx r11d, cl
movsxd rcx, edi
add esi, 2
inc edi
mov eax, r11d
mov r9d, r8d
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x30]
mov byte [rcx + r15], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, edi
inc edi
mov byte [rcx + r15], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, edi
inc edi
mov byte [rcx + r15], al
movsxd rax, edi
inc edi
mov byte [rax + r15], 0xff
mov eax, r8d
cmp esi, r8d
jl 0x140050770
mov r12d, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x24]
test r12d, r12d
je 0x14005091a
cmp qword [rbx + 0x10], 0
je 0x140050910
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x140050910
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
mov r8d, dword [rbx]
jmp 0x14005091a
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov dword [rsp + 0x24], r13d
mov edx, eax
cmp r13d, eax
jl 0x140050750
jmp 0x1400512e0
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_bpp
jmp 0x140051421
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x140051421
sub r12d, dword [rsp + 0x28]
xor edx, edx
mov dword [rsp + 0x38], edx
mov r9d, edx
mov dword [rsp + 0x50], edx
mov r10d, edx
mov dword [rsp + 0x2c], edx
mov r13d, edx
mov dword [rsp + 0x24], edx
mov esi, edx
mov edi, edx
sub r12d, r14d
je 0x1400509fb
test r12d, r12d
jns 0x1400509b5
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1400509fb
cmp qword [rbx + 0x10], rdx
je 0x1400509f1
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x1400509f1
mov rax, qword [rbx + 0xc8]
sub r12d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r12d
mov qword [rbx + 0xc0], rax
call qword [rbx + Ordinal_26]
mov r10d, esi
mov r9d, esi
xor edx, edx
jmp 0x1400509fb
movsxd rax, r12d
add qword [rbx + 0xc0], rax
mov ecx, dword [rbp + 0x430]
cmp ecx, 0x18
jne 0x140050a0e
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x140050a1e
cmp ecx, 0x10
jne 0x140050a1b
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x140050a1e
mov r8d, edx
neg r8d
and r8d, 3
mov dword [rsp + 0x28], r8d
cmp ecx, 0x18
jne 0x140050a42
mov r14d, 1
mov r12d, esi
mov qword [rsp + 0x48], r14
jmp 0x140050dda
mov qword [rsp + 0x48], rdx
mov r14, rdx
cmp ecx, 0x20
jne 0x140050aa2
cmp dword [rsp + 0x40], 0xff
mov qword [rsp + 0x48], rdx
jne 0x140050aa2
cmp dword [rsp + 0x3c], 0xff00
mov qword [rsp + 0x48], rdx
jne 0x140050aa2
cmp dword [rsp + 0x34], 0xff0000
mov qword [rsp + 0x48], rdx
jne 0x140050aa2
mov r11d, dword [rsp + 0x30]
mov qword [rsp + 0x48], rdx
cmp r11d, 0xff000000
jne 0x140050acf
mov r14d, 2
mov r12d, esi
mov qword [rsp + 0x48], r14
jmp 0x140050dda
mov r10d, dword [rsp + 0x34]
test r10d, r10d
je 0x1400513b1
mov esi, dword [rsp + 0x3c]
test esi, esi
je 0x1400513b1
mov edi, dword [rsp + 0x40]
test edi, edi
je 0x1400513b1
mov r11d, dword [rsp + 0x30]
jmp 0x140050adc
mov r10d, dword [rsp + 0x34]
mov edi, dword [rsp + 0x40]
mov esi, dword [rsp + 0x3c]
cmp r10d, 0x10000
mov r9d, reloc.WS2_32.dll_recv
mov edx, r9d
mov ecx, r10d
cmovb edx, r13d
shr ecx, 0x10
cmp r10d, 0x10000
cmovb ecx, r10d
cmp ecx, 0x100
jb 0x140050b0f
add edx, 8
shr ecx, 8
cmp ecx, r9d
lea eax, [rdx + 4]
mov r8d, ecx
cmovb eax, edx
shr r8d, 4
cmp ecx, r9d
cmovb r8d, ecx
lea edx, [rax + 2]
cmp r8d, 4
mov ecx, r8d
cmovb edx, eax
shr ecx, 2
cmp r8d, 4
mov eax, r10d
cmovb ecx, r8d
cmp ecx, 2
lea r12d, [rdx + 1]
mov ecx, r10d
cmovb r12d, edx
shr ecx, 1
and ecx, 0x55555555
and eax, 0x55555555
add ecx, eax
add r12d, 0xfffffff9
mov eax, ecx
mov dword [rsp + 0x38], r12d
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
mov edx, r9d
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
mov ecx, esi
cmp esi, 0x10000
movzx r10d, al
cmovb edx, r13d
shr ecx, 0x10
cmp esi, 0x10000
cmovb ecx, esi
cmp ecx, 0x100
jb 0x140050bc1
add edx, 8
shr ecx, 8
cmp ecx, r9d
lea eax, [rdx + 4]
mov r8d, ecx
cmovb eax, edx
shr r8d, 4
cmp ecx, r9d
cmovb r8d, ecx
lea edx, [rax + 2]
cmp r8d, 4
mov ecx, r8d
cmovb edx, eax
shr ecx, 2
cmp r8d, 4
cmovb ecx, r8d
cmp ecx, 2
lea eax, [rdx + 1]
mov ecx, esi
cmovb eax, edx
shr ecx, 1
add eax, 0xfffffff9
and ecx, 0x55555555
mov dword [rsp + 0x50], eax
mov edx, r9d
mov eax, esi
and eax, 0x55555555
add ecx, eax
mov eax, ecx
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
mov ecx, edi
cmp edi, 0x10000
movzx r13d, al
mov eax, 0
cmovb edx, eax
shr ecx, 0x10
cmp edi, 0x10000
cmovb ecx, edi
cmp ecx, 0x100
jb 0x140050c71
add edx, 8
shr ecx, 8
cmp ecx, r9d
lea eax, [rdx + 4]
mov r8d, ecx
cmovb eax, edx
shr r8d, 4
cmp ecx, r9d
cmovb r8d, ecx
lea edx, [rax + 2]
cmp r8d, 4
mov ecx, r8d
cmovb edx, eax
shr ecx, 2
cmp r8d, 4
cmovb ecx, r8d
cmp ecx, 2
lea eax, [rdx + 1]
mov ecx, edi
cmovb eax, edx
shr ecx, 1
add eax, 0xfffffff9
and ecx, 0x55555555
mov dword [rsp + 0x2c], eax
mov eax, edi
and eax, 0x55555555
add ecx, eax
mov eax, ecx
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
movzx esi, al
test r11d, r11d
jne 0x140050cfe
lea edx, [r11 - 1]
jmp 0x140050d61
cmp r11d, 0x10000
mov eax, 0
mov ecx, r11d
cmovb r9d, eax
shr ecx, 0x10
cmp r11d, 0x10000
cmovb ecx, r11d
cmp ecx, 0x100
jb 0x140050d2e
add r9d, 8
shr ecx, 8
cmp ecx, 0x10
lea eax, [r9 + 4]
mov edx, ecx
cmovb eax, r9d
shr edx, 4
cmp ecx, 0x10
cmovb edx, ecx
cmp edx, 4
lea ecx, [rax + 2]
cmovb ecx, eax
mov eax, edx
shr eax, 2
cmp edx, 4
cmovb eax, edx
lea edx, [rcx + 1]
cmp eax, 2
cmovb edx, ecx
mov ecx, r11d
lea r9d, [rdx - 7]
shr ecx, 1
mov eax, r11d
and eax, 0x55555555
mov dword [rsp + 0x24], r9d
and ecx, 0x55555555
add ecx, eax
mov eax, ecx
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
movzx edi, al
cmp r10d, 8
ja 0x1400513b1
cmp r13d, 8
ja 0x1400513b1
cmp esi, 8
ja 0x1400513b1
cmp edi, 8
ja 0x1400513b1
mov r8d, dword [rsp + 0x28]
xor eax, eax
mov r11d, eax
mov dword [rsp + 0x20], eax
mov eax, dword [rbx + 4]
mov edx, eax
test eax, eax
jle 0x1400512e0
mov eax, r12d
neg eax
mov dword [rsp + 0x64], eax
mov eax, 8
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0x68], ecx
mov ecx, dword [rsp + 0x50]
neg ecx
mov dword [rsp + 0x6c], ecx
mov ecx, eax
sub ecx, r13d
mov dword [rsp + 0x70], ecx
mov ecx, dword [rsp + 0x2c]
neg ecx
mov dword [rsp + 0x74], ecx
mov ecx, eax
sub ecx, esi
mov dword [rsp + 0x78], ecx
mov ecx, r9d
neg ecx
sub eax, edi
mov dword [rsp + 0x7c], ecx
mov dword [rbp - 0x80], eax
mov eax, r10d
mov qword [rbp - 0x70], rax
mov eax, esi
mov ecx, r13d
mov r13d, r11d
mov qword [rsp + 0x58], rax
mov eax, edi
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x68], rcx
nop dword [rax + rax]
mov eax, dword [rbx]
xor r12d, r12d
movsxd rcx, r13d
test r14, r14
je 0x140050fe5
test eax, eax
jle 0x14005127d
lea rsi, [rcx + r15]
mov r15, qword [rsp + 0x48]
lea rdi, [rbx + 0x30]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140050eaf
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140050ed9
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x140050ed7
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140050ed9
xor dl, dl
mov rcx, rax
mov r14, rdi
mov byte [rsi + 2], dl
cmp rax, qword [rbx + 0xc8]
jae 0x140050efd
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov rcx, rax
jmp 0x140050f25
cmp dword [rdi], 0
je 0x140050f23
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov rcx, rax
jmp 0x140050f25
xor dl, dl
mov byte [rsi + 1], dl
mov rdx, qword [rbx + 0xc8]
cmp rax, rdx
jae 0x140050f49
movzx r8d, byte [rax]
lea rcx, [rax + 1]
mov qword [rbx + 0xc0], rcx
lea rdi, [rbx + 0x30]
jmp 0x140050f78
cmp dword [rdi], 0
je 0x140050f75
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
mov rdx, qword [rbx + 0xc8]
movzx r8d, byte [rax]
lea rcx, [rax + 1]
mov qword [rbx + 0xc0], rcx
jmp 0x140050f78
xor r8b, r8b
mov byte [rsi], r8b
cmp r15, 2
jne 0x140050fbe
cmp rcx, rdx
jae 0x140050f96
movzx edx, byte [rcx]
lea rax, [rcx + 1]
mov qword [rbx + 0xc0], rax
jmp 0x140050fc0
cmp dword [r14], 0
je 0x140050fba
mov rcx, rbx
call fcn.140046160
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140050fc0
xor dl, dl
jmp 0x140050fc0
mov dl, 0xff
movzx eax, dl
add r13d, 4
or dword [rbp + 0x438], eax
inc r12d
mov byte [rsi + 3], dl
add rsi, 4
cmp r12d, dword [rbx]
jl 0x140050e90
jmp 0x14005126a
test eax, eax
jle 0x14005127d
lea r14, [rcx + r15]
mov r15d, dword [rbp + 0x430]
mov rcx, rbx
call fcn.140046370
cmp r15d, 0x10
jne 0x14005100a
mov esi, eax
jmp 0x14005101b
mov rcx, rbx
mov edi, eax
call fcn.140046370
mov esi, eax
shl esi, 0x10
add esi, edi
mov edx, dword [rsp + 0x38]
mov edi, esi
and edi, dword [rsp + 0x34]
mov ecx, edx
mov eax, edi
shr eax, cl
mov ecx, dword [rsp + 0x64]
shl edi, cl
test edx, edx
cmovns edi, eax
cmp edi, 0x100
jb 0x140051058
mov r8d, 0x1520
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.v___256
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [rsp + 0x68]
mov rax, qword [rbp - 0x70]
shr edi, cl
cmp rax, 8
jbe 0x140051086
mov r8d, 0x1522
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.bits___0__bits___8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp - 0x70]
mov edx, dword [rsp + 0x50]
lea rcx, [0x140000000]
imul edi, dword [rcx + rax*4 + 0x1282d0]
mov ecx, dword [rcx + rax*4 + 0x128708]
sar edi, cl
mov ecx, edx
mov byte [r14], dil
mov edi, esi
and edi, dword [rsp + 0x3c]
mov eax, edi
shr eax, cl
mov ecx, dword [rsp + 0x6c]
shl edi, cl
test edx, edx
cmovns edi, eax
cmp edi, 0x100
jb 0x1400510de
mov r8d, 0x1520
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.v___256
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [rsp + 0x70]
mov rax, qword [rbp - 0x68]
shr edi, cl
cmp rax, 8
jbe 0x14005110c
mov r8d, 0x1522
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.bits___0__bits___8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp - 0x68]
mov edx, dword [rsp + 0x2c]
lea rcx, [0x140000000]
imul edi, dword [rcx + rax*4 + 0x1282d0]
mov ecx, dword [rcx + rax*4 + 0x128708]
sar edi, cl
mov ecx, edx
mov byte [r14 + 1], dil
mov edi, esi
and edi, dword [rsp + 0x40]
mov eax, edi
shr eax, cl
mov ecx, dword [rsp + 0x74]
shl edi, cl
test edx, edx
cmovns edi, eax
cmp edi, 0x100
jb 0x140051165
mov r8d, 0x1520
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.v___256
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x58]
shr edi, cl
cmp rdx, 8
jbe 0x140051195
mov r8d, 0x1522
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.bits___0__bits___8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdx, qword [rsp + 0x58]
mov r11d, dword [rsp + 0x30]
lea r9, [0x140000000]
imul edi, dword [r9 + rdx*4 + 0x1282d0]
mov ecx, dword [r9 + rdx*4 + 0x128708]
sar edi, cl
mov byte [r14 + 2], dil
test r11d, r11d
je 0x140051247
mov edx, dword [rsp + 0x24]
and esi, r11d
mov eax, esi
mov ecx, edx
shr eax, cl
mov ecx, dword [rsp + 0x7c]
shl esi, cl
test edx, edx
cmovns esi, eax
cmp esi, 0x100
jb 0x140051202
mov r8d, 0x1520
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.v___256
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea r9, [0x140000000]
mov ecx, dword [rbp - 0x80]
mov rdi, qword [rbp - 0x38]
shr esi, cl
cmp rdi, 8
jbe 0x140051232
mov r8d, 0x1522
lea rdx, str.C:UsersjuliaOneDriveDesktopScriptsV2zKeyauthmenuimgui_masterexamplesexample_win32_directx11_stb_image.h
lea rcx, str.bits___0__bits___8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea r9, [0x140000000]
imul esi, dword [r9 + rdi*4 + 0x1282d0]
mov ecx, dword [r9 + rdi*4 + 0x128708]
sar esi, cl
jmp 0x14005124c
mov esi, 0xff
or dword [rbp + 0x438], esi
add r13d, 4
mov byte [r14 + 3], sil
inc r12d
add r14, 4
cmp r12d, dword [rbx]
jl 0x140050ff8
mov r11d, dword [rsp + 0x20]
mov r8d, dword [rsp + 0x28]
mov r14, qword [rsp + 0x48]
mov r15, qword [rbp - 0x78]
test r8d, r8d
je 0x1400512ca
cmp qword [rbx + 0x10], 0
je 0x1400512c0
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r8d
jge 0x1400512c0
mov rax, qword [rbx + 0xc8]
mov edx, r8d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
mov r8d, dword [rsp + 0x28]
mov r11d, dword [rsp + 0x20]
jmp 0x1400512ca
mov eax, r8d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r11d
mov dword [rsp + 0x20], r11d
mov edx, eax
cmp r11d, eax
jl 0x140050e60
cmp dword [rbp + 0x438], 0
jne 0x14005130e
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x14005130e
nop word [rax + rax]
mov byte [rcx + r15], 0xff
sub rcx, 4
jns 0x140051300
mov edx, dword [rbx + 4]
cmp dword [rbp - 0x7c], 0
jle 0x140051384
xor r8d, r8d
mov r10d, r8d
test edx, 0xfffffffe
jle 0x140051384
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, ecx
imul edx, ecx
imul r9d, r10d
lea eax, [rcx*4]
shl edx, 2
mov r11d, edx
add rdx, r15
shl r9d, 2
test eax, eax
jle 0x14005136f
sub r9, r11
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [rdx + r9]
mov byte [rdx + r9], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x140051350
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
mov r8d, 0
sar eax, 1
cmp r10d, eax
jl 0x140051322
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x418]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x420]
mov eax, dword [rbx + 4]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x428]
test rcx, rcx
je 0x1400513ac
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, r15
jmp 0x14005142c
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x140051421
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x140051421
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.too_large
jmp 0x140051421
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_offset
jmp 0x140051421
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_header
mov edx, Ordinal_41
mov qword [rdx + rcx], rax
xor eax, eax
mov r13, qword [rsp + 0x4d8]
mov r12, qword [rsp + 0x4e0]
mov rdi, qword [rsp + 0x510]
mov r14, qword [rsp + 0x4d0]
add rsp, 0x4e8
pop r15
pop rsi
pop rbx
pop rbp
ret