Function at 0x140083710
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, 0x98
mov rbp, qword [r8 + 8]
mov eax, dword [rsp + 0x100]
mov r14, qword [r8]
mov r15, rcx
mov rcx, qword [0x140152e30]
mov rdi, r9
mov dword [rsp + 0x3c], eax
mov byte [rsp + 0x3b], bpl
call sym.unk_2201
mov rdx, rax
mov rax, qword [rdi + 0xd0]
mov rax, qword [rax + 8]
mov r12, qword [rax + rdx*8]
test r12, r12
je 0x14008418f
lea rcx, [0x140149fe0]
call sym.unk_2201
mov rsi, rax
mov rax, qword [rdi + 0xd0]
mov rax, qword [rax + 0x18]
lea r13, [rax + rsi*8]
mov rbx, qword [r13]
test rbx, rbx
je 0x140083bb8
mov rax, qword [rsp + 0x108]
mov rsi, qword [rax]
movzx eax, word [rbx + 0x64]
cmp word [rsi], ax
je 0x140083818
mov rax, qword [rbx + 0x38]
mov r13d, dword [rbx + 0x5c]
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi - 0x18]
mov r10, qword [r12]
mov rcx, r12
lea r9, [rsi + rax*2]
mov r8, rsi
mov edx, 8
call qword [r10 + 0x28]
sub rax, rsi
mov r12, rax
sar rax, 1
mov qword [rsp + 0x40], rax
jne 0x140083840
mov bpl, byte [rsp + 0x3b]
mov rax, r15
mov qword [rdi + 0x10], 0
mov qword [r15], r14
mov qword [r15 + 8], rbp
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rbx + 0x48]
mov r13d, dword [rbx + 0x60]
lea rdx, [rsi + 2]
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi - 0x18]
test rax, rax
cmovne rsi, rdx
jmp 0x1400837c0
mov rax, qword [0x140152c60]
mov rdx, r12
add rax, 0x18
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x80]
mov rcx, rax
mov qword [rsp + 0x50], rax
call sym.unk_2843
mov r11, qword [rsp + 0x40]
mov eax, dword [rbx + 0x58]
mov ecx, r11d
sub ecx, eax
mov dword [rsp + 0x68], ecx
test ecx, ecx
jle 0x14008395f
mov rdx, qword [rbx + 0x18]
test eax, eax
js 0x140083d38
test rdx, rdx
je 0x140083d46
lea r9d, [rcx + rcx]
movsxd r9, r9d
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov r8, qword [rax - 0x18]
mov dword [rsp + 0x20], 0
call sym.unk_2900
movsxd rax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
lea r12, [rsi + rax*2]
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x60], rax
movzx eax, word [rbx + 0x24]
mov dword [rsp + 0x6c], eax
mov eax, dword [rcx - 8]
test eax, eax
jns 0x140084160
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
mov edx, dword [rsp + 0x6c]
mov qword [rsp + 0x58], rcx
call sym.unk_5459
mov rcx, qword [rsp + 0x58]
mov r12, rax
mov eax, dword [rcx - 8]
test eax, eax
jns 0x140084150
mov rax, qword [rsp + 0x80]
mov r9, qword [rax - 0x18]
sub r12, rax
mov rdx, r12
sar rdx, 1
mov r8, r9
sub r8, rdx
cmp r9, rdx
jb 0x140084194
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
call sym.unk_2790
mov eax, dword [rbx + 0x58]
test eax, eax
jg 0x140083a98
mov eax, dword [rdi + 0x18]
mov rdx, qword [rsp + 0x80]
mov esi, eax
and esi, 0xb0
mov dword [rsp + 0x68], esi
mov rsi, qword [rsp + 0x30]
add rsi, qword [rdx - 0x18]
test ah, 2
jne 0x140083a88
mov rax, qword [0x140152c60]
lea rdx, [rsi + rsi]
add rax, 0x18
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x88]
mov rcx, rax
mov qword [rsp + 0x40], rax
call sym.unk_2843
cmp dword [rsp + 0x68], 0x10
mov r12, qword [rdi + 0x10]
jne 0x1400839d0
cmp rsi, r12
jb 0x140083ad0
cmp r13b, 4
ja case.0x1400839e8.0
lea rdx, [0x140150820]
movzx eax, r13b
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
movzx edx, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
call sym.unk_2867
nop
mov eax, r13d
movsx eax, ah
cmp al, 4
ja case.0x140083a1b.0
lea rdx, [0x140150834]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
movzx edx, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
call sym.unk_2867
nop
mov eax, r13d
shl eax, 8
sar eax, 0x18
cmp al, 4
ja case.0x140083a4e.0
lea rdx, [0x140150848]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
movzx edx, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
call sym.unk_2867
nop
mov eax, r13d
sar eax, 0x18
cmp al, 4
ja case.0x140083a7f.0
lea rdx, [0x14015085c]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
add rsi, qword [rbx + 0x30]
jmp 0x140083990
mov r12, qword [rsp + 0x50]
movzx edx, word [rbx + 0x22]
mov rcx, r12
call sym.unk_2867
movsxd rax, dword [rsp + 0x68]
test eax, eax
js 0x140083dc8
movsxd r8, dword [rbx + 0x58]
lea rdx, [rsi + rax*2]
mov rcx, r12
call sym.unk_2861
jmp 0x140083967
cmp r13b, 4
ja case.default.0x140083aec
lea rdx, [0x140150870]
movzx eax, r13b
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call sym.unk_2859
cmp qword [rsp + 0x30], 1
ja 0x140083c60
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx - 0x18]
cmp rbx, r12
jae 0x140083b52
mov r9, r12
movzx r8d, word [rsp + 0x3c]
sub r9, rbx
cmp dword [rsp + 0x68], 0x20
je 0x140083db0
mov dword [rsp + 0x20], r8d
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call sym.unk_2900
mov rdx, qword [rsp + 0x88]
mov rbx, r12
cmp byte [rsp + 0x3b], 0
movsxd rbx, ebx
jne 0x140083b78
mov rax, qword [r14]
mov r8, rbx
mov rcx, r14
call qword [rax + 0x60]
cmp rbx, rax
mov rdx, qword [rsp + 0x88]
setne byte [rsp + 0x3b]
lea rcx, [rdx - 0x18]
cmp rcx, qword [0x140152c60]
jne 0x140084180
mov rax, qword [rsp + 0x80]
lea rcx, [rax - 0x18]
cmp rcx, qword [0x140152c60]
je 0x1400837e7
mov rdx, qword [rsp + 0x40]
call sym.unk_5235
jmp 0x1400837e7
mov ecx, pe_nt_image_headers64
call sym.operator_new_unsigned_long_long_
mov rbx, rax
mov dword [rax + 8], 0
lea rax, sym.unk_2229
lea rdx, [rdi + 0xd0]
mov qword [rbx], rax
mov rcx, rbx
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov byte [rbx + 0x20], 0
mov dword [rbx + 0x22], 0
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x38], 0
mov qword [rbx + 0x40], 0
mov qword [rbx + 0x48], 0
mov qword [rbx + 0x50], 0
mov dword [rbx + 0x58], 0
mov qword [rbx + 0x5c], 0
mov byte [rbx + 0x7a], 0
call sym.unk_5289
mov rcx, qword [rdi + 0xd0]
mov rdx, rbx
mov r8, rsi
call sym.unk_2200
mov rbx, qword [r13]
jmp 0x140083792
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
add rdx, 2
lea r8, [rax - 1]
call sym.unk_2861
jmp 0x140083b0b
mov rdx, r12
movzx r8d, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
sub rdx, rsi
call sym.unk_2863
mov eax, r13d
movsx eax, ah
cmp al, 4
ja case.default.0x140083cb9
lea rdx, [0x140150884]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov rdx, r12
movzx r8d, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
sub rdx, rsi
call sym.unk_2863
mov eax, r13d
shl eax, 8
sar eax, 0x18
cmp al, 4
ja case.default.0x140083cf4
lea rdx, [0x140150898]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov rdx, r12
movzx r8d, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
sub rdx, rsi
call sym.unk_2863
mov eax, r13d
sar eax, 0x18
cmp al, 4
ja case.default.0x140083d31
lea rdx, [0x1401508ac]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov dword [rsp + 0x68], r11d
test rdx, rdx
jne 0x140083fa0
movsxd r8, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
call sym.unk_2870
jmp 0x14008395c
mov rdx, r12
movzx r8d, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
sub rdx, rsi
call sym.unk_2863
cmp qword [rsp + 0x30], 1
ja 0x140083c60
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx - 0x18]
cmp rbx, r12
jae 0x140083b52
mov r9, r12
movzx r8d, word [rsp + 0x3c]
sub r9, rbx
jmp 0x140083b33
mov rcx, qword [rsp + 0x40]
mov rdx, r9
call sym.unk_2863
jmp 0x140083b47
mov r12, qword [rsp + 0x50]
mov edx, eax
movzx r8d, word [rbx + 0x66]
neg edx
movsxd rdx, edx
mov rcx, r12
call sym.unk_2863
mov r8, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, r12
call sym.unk_2861
jmp 0x140083967
cmp qword [rsp + 0x30], 0
je 0x140083b0b
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call sym.unk_2867
jmp case.0x140083a7f.0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call sym.unk_2859
jmp case.0x1400839e8.0
test byte [rdi + 0x19], 2
je case.0x1400839e8.0
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call sym.unk_2861
jmp case.0x1400839e8.0
cmp qword [rsp + 0x30], 0
je case.0x1400839e8.0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call sym.unk_2867
jmp case.0x1400839e8.0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call sym.unk_2859
jmp case.0x140083a1b.0
test byte [rdi + 0x19], 2
je case.0x140083a1b.0
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call sym.unk_2861
jmp case.0x140083a1b.0
cmp qword [rsp + 0x30], 0
je case.0x140083a1b.0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call sym.unk_2867
jmp case.0x140083a1b.0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call sym.unk_2859
jmp case.0x140083a4e.0
test byte [rdi + 0x19], 2
je case.0x140083a4e.0
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call sym.unk_2861
jmp case.0x140083a4e.0
cmp qword [rsp + 0x30], 0
je case.0x140083a4e.0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call sym.unk_2867
jmp case.0x140083a4e.0
movzx edx, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
call sym.unk_2867
jmp case.0x140083a7f.0
test byte [rdi + 0x19], 2
je case.0x140083a7f.0
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call sym.unk_2861
jmp case.0x140083a7f.0
movsxd r9, r12d
jmp 0x1400838a0
test byte [rdi + 0x19], 2
je case.default.0x140083d31
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call sym.unk_2861
jmp case.default.0x140083d31
cmp qword [rsp + 0x30], 0
je case.default.0x140083aec
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call sym.unk_2867
jmp case.default.0x140083aec
cmp qword [rsp + 0x30], 0
je 0x140083d82
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call sym.unk_2867
jmp case.default.0x140083d31
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call sym.unk_2859
jmp case.default.0x140083d31
test byte [rdi + 0x19], 2
je case.default.0x140083cf4
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call sym.unk_2861
jmp case.default.0x140083cf4
test byte [rdi + 0x19], 2
je case.default.0x140083aec
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call sym.unk_2861
jmp case.default.0x140083aec
cmp qword [rsp + 0x30], 0
je case.default.0x140083cf4
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call sym.unk_2867
jmp case.default.0x140083cf4
cmp qword [rsp + 0x30], 0
je case.default.0x140083cb9
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call sym.unk_2867
jmp case.default.0x140083cb9
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call sym.unk_2859
jmp case.default.0x140083cb9
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call sym.unk_2859
jmp case.default.0x140083aec
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call sym.unk_2859
jmp case.default.0x140083cf4
test byte [rdi + 0x19], 2
je case.default.0x140083cb9
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call sym.unk_2861
jmp case.default.0x140083cb9
mov rcx, qword [rsp + 0x50]
call sym.unk_2792
jmp 0x14008392b
mov rcx, qword [rsp + 0x50]
call sym.unk_2792
mov rcx, qword [rsp + 0x80]
jmp 0x1400838f6
lea rdx, [rsp + 0x7f]
call sym.unk_5235
jmp 0x140083b89
call sym.unk_3862
mov r8, rdx
lea rcx, [0x1401507e8]
lea rdx, [0x1401507d2]
call sym.unk_3869
mov rcx, rax
call sym.unk_2061
call sym.unk_2102
mov rcx, rax
call sym.unk_2061
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x1400841b2