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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rax, qword [rcx + 8]
mov esi, edx
mov rdx, qword [rcx]
mov r12, rcx
sub rax, rdx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rax
je 0x14003994d
movzx ebx, byte [rdx]
mov byte [rcx + 0x3c], bl
cmp rax, 1
je 0x14003994d
movzx ecx, byte [rdx + 1]
mov r10d, 2
xor edi, edi
mov byte [r12 + 0x3d], cl
xor ecx, ecx
jmp 0x1400397db
mov r10, r9
cmp r10, rax
jae 0x14003994d
lea r9, [r10 + 1]
movzx r11d, byte [rdx + r9 - 1]
mov r8, r11
and r8d, 0x7f
shl r8, cl
add ecx, 7
or rdi, r8
test r11b, r11b
js 0x1400397d8
lea rcx, [r10 + 0x21]
mov qword [rsp + 0x60], r9
mov qword [r12 + 0x40], rdi
cmp rcx, rax
ja 0x14003994d
add r9, rdx
lea r8, [r10 + 0x25]
mov dword [r12 + 0x1c], ecx
mov qword [r12 + 0x48], r9
mov qword [r12 + 0x50], 0x20
cmp r8, rax
ja 0x14003994d
mov r9d, dword [r12 + 0x18]
mov qword [rsp + 0x60], r8
cmp r9d, 7
je 0x140039958
cmp r9d, 8
je 0x140039940
mov dword [r12 + 0x20], r8d
xor ecx, ecx
xor ebx, ebx
nop dword [rax]
cmp r8, rax
jae 0x14003994d
add r8, 1
movzx r11d, byte [rdx + r8 - 1]
mov r10, r11
and r10d, 0x7f
shl r10, cl
add ecx, 7
or rbx, r10
test r11b, r11b
js 0x140039868
mov qword [r12 + 0x70], rbx
xor ecx, ecx
xor ebx, ebx
nop dword [rax]
cmp rax, r8
jbe 0x14003994d
add r8, 1
movzx r11d, byte [rdx + r8 - 1]
mov r10, r11
and r10d, 0x7f
shl r10, cl
add ecx, 7
or rbx, r10
test r11b, r11b
js 0x1400398a0
mov qword [r12 + 0x78], rbx
xor ecx, ecx
xor ebx, ebx
jmp 0x1400398db
mov r8, r11
cmp rax, r8
jbe 0x14003994d
lea r11, [r8 + 1]
movzx edi, byte [rdx + r11 - 1]
mov r10, rdi
and r10d, 0x7f
shl r10, cl
add ecx, 7
or rbx, r10
test dil, dil
js 0x1400398d8
mov qword [rsp + 0x60], r11
mov qword [r12 + 0x80], rbx
cmp rbx, 1
jne 0x14003992d
cmp rax, r11
jbe 0x14003994d
movzx ecx, byte [rdx + r11]
add r8, 2
mov byte [r12 + 0x88], cl
cmp cl, 0xff
je 0x140039998
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [r10 + 0x3d]
cmp rax, r8
jae 0x14003985b
call fcn.1405ee280
nop word [rax + rax]
cmp bl, 0x11
jbe 0x14003985b
lea rcx, [r10 + 0x65]
cmp rax, rcx
jb 0x14003994d
mov qword [r12 + 0x60], 0x40
add r8, rdx
mov qword [r12 + 0x58], r8
lea r8, [r10 + 0x67]
cmp rax, r8
jb 0x14003994d
movzx ecx, word [rdx + r10 + 0x65]
mov word [r12 + 0x68], cx
jmp 0x14003985b
xor ecx, ecx
xor edi, edi
nop dword [rax]
cmp rax, r8
jbe 0x14003994d
add r8, 1
movzx r11d, byte [rdx + r8 - 1]
mov r10, r11
and r10d, 0x7f
shl r10, cl
add ecx, 7
or rdi, r10
test r11b, r11b
js 0x1400399a0
mov qword [r12 + 0x90], rdi
xor ecx, ecx
xor edi, edi
cmp rax, r8
jbe 0x14003994d
add r8, 1
movzx r11d, byte [rdx + r8 - 1]
mov r10, r11
and r10d, 0x7f
shl r10, cl
add ecx, 7
or rdi, r10
test r11b, r11b
js 0x1400399d0
xor ecx, ecx
cmp r9d, 8
mov qword [r12 + 0x98], rdi
sete cl
add rcx, 1
cmp rcx, rdi
jne 0x14003992d
xor ecx, ecx
xor ebp, ebp
jmp 0x140039a23
mov r8, r11
cmp rax, r8
jbe 0x14003994d
lea r11, [r8 + 1]
movzx edi, byte [rdx + r11 - 1]
mov r10, rdi
and r10d, 0x7f
shl r10, cl
add ecx, 7
or rbp, r10
test dil, dil
js 0x140039a20
mov qword [r12 + 0xa0], rbp
cmp rax, r11
jbe 0x14003994d
movzx r10d, byte [rdx + r11]
lea rcx, [r8 + 2]
mov qword [rsp + 0x60], rcx
lea r11d, [r10 - 2]
mov byte [r12 + 0xa8], r10b
cmp r11b, 1
ja 0x14003992d
lea r14, [r8 + 0x22]
mov dword [r12 + 0x28], ecx
cmp rax, r14
jb 0x14003994d
add rcx, rdx
mov qword [rsp + 0x60], r14
mov qword [r12 + 0xb0], rcx
mov qword [r12 + 0xb8], 0x20
cmp r9d, 8
je 0x140039d76
cmp r10b, 3
je 0x140039e57
xor ecx, ecx
xor r13d, r13d
nop word [rax + rax]
cmp rax, r14
jbe 0x14003994d
add r14, 1
movzx r10d, byte [rdx + r14 - 1]
mov r8, r10
and r8d, 0x7f
shl r8, cl
add ecx, 7
or r13, r8
test r10b, r10b
js 0x140039ad0
mov r15d, r14d
mov dword [r12 + 0x2c], r14d
add r14, r13
mov qword [r12 + 0xc8], r13
add rdx, r15
cmp rax, r14
jb 0x14003994d
mov qword [rsp + 0x60], r14
xor r11d, r11d
mov byte [rsp + 0x2f], 1
test r13, r13
je 0x140039b9f
xor ecx, ecx
xor ebp, ebp
jmp 0x140039b33
mov r11, r8
cmp r11, r13
jae 0x14003994d
lea r8, [r11 + 1]
movzx edi, byte [rdx + r8 - 1]
mov r10, rdi
and r10d, 0x7f
shl r10, cl
add ecx, 7
or rbp, r10
test dil, dil
js 0x140039b30
cmp rbp, 2
je 0x140039d16
cmp rbp, 3
je 0x140039cb8
cmp rbp, 1
jne 0x14003992d
cmp byte [rsp + 0x2f], 0
je 0x140039b88
add r8, r15
mov dword [r12 + 0x30], r8d
add r11, 0x21
cmp r11, r13
ja 0x14003994d
mov byte [rsp + 0x2f], 0
cmp r11, r13
jb 0x140039b29
cmp r9d, 8
je 0x140039e76
mov dword [r12 + 0x24], r14d
cmp r14, rax
jae 0x14003994d
lea rax, [r14 + 1]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
cmp byte [rax + r14], 0
jne 0x14003992d
mov eax, r14d
cmp r14, rax
jne 0x14003992d
mov rax, qword [r12]
cmp byte [rax + r14], 0
jne 0x14003992d
lea rdx, [r12 + 0xf0]
lea rcx, [rsp + 0x50]
call fcn.140038a30
mov eax, 1
test sil, sil
je 0x14003992f
mov rax, qword [r12 + 0xf0]
lea rcx, [r12 + 0xf8]
lea rdx, [rax + 1]
shl rdx, 5
call fcn.1405b2160
mov eax, dword [r12 + 0x20]
add rax, qword [r12]
mov r8, qword [r12 + 0xf8]
mov edx, dword [r12 + 0x24]
mov rcx, rax
add rdx, qword [r12]
call fcn.140038ef0
cmp qword [r12 + 0xf0], 0
je 0x140039ca6
mov rax, qword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
mov rcx, rax
add rax, 0x20
cmp rax, r8
ja 0x14003994d
add rcx, qword [rsp + 0x58]
mov rdx, rbx
mov qword [rsp + 0x60], rax
add rbx, 1
movdqu xmm0, xmmword [rcx]
shl rdx, 5
add rdx, qword [r12 + 0xf8]
movups xmmword [rdx], xmm0
movdqu xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
cmp qword [r12 + 0xf0], rbx
jae 0x140039c5f
mov rcx, r12
call fcn.1400390b0
mov eax, esi
jmp 0x14003992f
xor ecx, ecx
xor r10d, r10d
nop dword [rax]
cmp r8, r13
jae 0x14003994d
add r8, 1
movzx edi, byte [rdx + r8 - 1]
mov r11, rdi
and r11d, 0x7f
shl r11, cl
add ecx, 7
or r10, r11
test dil, dil
js 0x140039cc0
lea rcx, [r8 + r15]
lea r11, [r8 + r10]
mov dword [r12 + 0x38], ecx
cmp r11, r13
ja 0x14003994d
add r8, rdx
mov qword [r12 + 0xe8], r10
mov qword [r12 + 0xe0], r8
jmp 0x140039b9a
xor ecx, ecx
xor edi, edi
nop word [rax + rax]
cmp r8, r13
jae 0x14003994d
add r8, 1
movzx r11d, byte [rdx + r8 - 1]
mov r10, r11
and r10d, 0x7f
shl r10, cl
add ecx, 7
or rdi, r10
test r11b, r11b
js 0x140039d20
lea rcx, [r8 + r15]
lea r11, [r8 + rdi]
mov dword [r12 + 0x34], ecx
cmp r11, r13
ja 0x14003994d
add r8, rdx
mov qword [r12 + 0xd8], rdi
mov qword [r12 + 0xd0], r8
jmp 0x140039b9a
cmp r10b, 2
jne 0x14003992d
xor ecx, ecx
xor r8d, r8d
cmp rax, r14
je 0x14003994d
add r14, 1
movzx r11d, byte [rdx + r14 - 1]
mov r10, r11
and r10d, 0x7f
shl r10, cl
add ecx, 7
or r8, r10
test r11b, r11b
js 0x140039d85
add r8, r14
cmp rax, r8
jb 0x14003994d
je 0x14003994d
lea rcx, [r8 + 1]
movzx r8d, byte [rdx + r8]
mov byte [r12 + 0xc0], r8b
jmp 0x140039dd5
mov rcx, r8
cmp rax, rcx
jbe 0x14003994d
cmp byte [rdx + rcx], 0
lea r8, [rcx + 1]
js 0x140039dd2
mov qword [rsp + 0x60], r8
cmp rax, r8
jbe 0x14003994d
cmp byte [rdx + r8], 2
jne 0x14003992d
lea r8, [rcx + 0x22]
cmp rax, r8
jb 0x14003994d
xor ecx, ecx
xor r10d, r10d
cmp rax, r8
je 0x14003994d
add r8, 1
movzx edi, byte [rdx + r8 - 1]
mov r11, rdi
and r11d, 0x7f
shl r11, cl
add ecx, 7
or r10, r11
test dil, dil
js 0x140039e13
lea r14, [r8 + r10]
cmp rax, r14
jb 0x14003994d
je 0x14003994d
add r14, 1
jmp 0x140039ac2
cmp rax, r14
je 0x14003994d
movzx ecx, byte [rdx + r14]
lea r14, [r8 + 0x23]
mov byte [r12 + 0xc0], cl
jmp 0x140039ac2
lea r13, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.140038a30
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.140038a30
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.140038a30
mov rax, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
jmp 0x140039ba9