Function at 0x140085860
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 [0x1401029e0]
mov rdi, r9
mov dword [rsp + 0x3c], eax
mov byte [rsp + 0x3b], bpl
call fcn.1400345a0
mov rdx, rax
mov rax, qword [rdi + 0xd0]
mov rax, qword [rax + 8]
mov r12, qword [rax + rdx*8]
test r12, r12
je 0x1400862df
lea rcx, [0x1400fb8f0]
call fcn.1400345a0
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 0x140085d08
mov rax, qword [rsp + 0x108]
mov rsi, qword [rax]
movzx eax, word [rbx + 0x64]
cmp word [rsi], ax
je 0x140085968
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 0x140085990
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 0x140085910
mov rax, qword [0x140102830]
mov rdx, r12
add rax, 0x18
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x80]
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.14008cdc0
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 0x140085aaf
mov rdx, qword [rbx + 0x18]
test eax, eax
js 0x140085e88
test rdx, rdx
je 0x140085e96
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 fcn.1400877b0
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 0x1400862b0
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 fcn.1400ef3f0
mov rcx, qword [rsp + 0x58]
mov r12, rax
mov eax, dword [rcx - 8]
test eax, eax
jns 0x1400862a0
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 0x1400862e4
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
call fcn.14008d260
mov eax, dword [rbx + 0x58]
test eax, eax
jg 0x140085be8
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 0x140085bd8
mov rax, qword [0x140102830]
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 fcn.14008cdc0
cmp dword [rsp + 0x68], 0x10
mov r12, qword [rdi + 0x10]
jne 0x140085b20
cmp rsi, r12
jb 0x140085c20
cmp r13b, 4
ja case.0x140085b38.0
lea rdx, [0x1400fc750]
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 fcn.14008d500
nop
mov eax, r13d
movsx eax, ah
cmp al, 4
ja case.0x140085b6b.0
lea rdx, [0x1400fc764]
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 fcn.14008d500
nop
mov eax, r13d
shl eax, 8
sar eax, 0x18
cmp al, 4
ja case.0x140085b9e.0
lea rdx, [0x1400fc778]
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 fcn.14008d500
nop
mov eax, r13d
sar eax, 0x18
cmp al, 4
ja case.0x140085bcf.0
lea rdx, [0x1400fc78c]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
add rsi, qword [rbx + 0x30]
jmp 0x140085ae0
mov r12, qword [rsp + 0x50]
movzx edx, word [rbx + 0x22]
mov rcx, r12
call fcn.14008d500
movsxd rax, dword [rsp + 0x68]
test eax, eax
js 0x140085f18
movsxd r8, dword [rbx + 0x58]
lea rdx, [rsi + rax*2]
mov rcx, r12
call fcn.140089190
jmp 0x140085ab7
cmp r13b, 4
ja case.default.0x140085c3c
lea rdx, [0x1400fc7a0]
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 fcn.1400892a0
cmp qword [rsp + 0x30], 1
ja 0x140085db0
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx - 0x18]
cmp rbx, r12
jae 0x140085ca2
mov r9, r12
movzx r8d, word [rsp + 0x3c]
sub r9, rbx
cmp dword [rsp + 0x68], 0x20
je 0x140085f00
mov dword [rsp + 0x20], r8d
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call fcn.1400877b0
mov rdx, qword [rsp + 0x88]
mov rbx, r12
cmp byte [rsp + 0x3b], 0
movsxd rbx, ebx
jne 0x140085cc8
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 [0x140102830]
jne 0x1400862d0
mov rax, qword [rsp + 0x80]
lea rcx, [rax - 0x18]
cmp rcx, qword [0x140102830]
je 0x140085937
mov rdx, qword [rsp + 0x40]
call fcn.140088180
jmp 0x140085937
mov ecx, pe_nt_image_headers64
call fcn.1400f8480
mov rbx, rax
mov dword [rax + 8], 0
lea rax, [0x14010aef0]
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 fcn.1400d25a0
mov rcx, qword [rdi + 0xd0]
mov rdx, rbx
mov r8, rsi
call fcn.1400d56e0
mov rbx, qword [r13]
jmp 0x1400858e2
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
add rdx, 2
lea r8, [rax - 1]
call fcn.140089190
jmp 0x140085c5b
mov rdx, r12
movzx r8d, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
sub rdx, rsi
call fcn.1400895a0
mov eax, r13d
movsx eax, ah
cmp al, 4
ja case.default.0x140085e09
lea rdx, [0x1400fc7b4]
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 fcn.1400895a0
mov eax, r13d
shl eax, 8
sar eax, 0x18
cmp al, 4
ja case.default.0x140085e44
lea rdx, [0x1400fc7c8]
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 fcn.1400895a0
mov eax, r13d
sar eax, 0x18
cmp al, 4
ja case.default.0x140085e81
lea rdx, [0x1400fc7dc]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov dword [rsp + 0x68], r11d
test rdx, rdx
jne 0x1400860f0
movsxd r8, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
call fcn.140089a90
jmp 0x140085aac
mov rdx, r12
movzx r8d, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
sub rdx, rsi
call fcn.1400895a0
cmp qword [rsp + 0x30], 1
ja 0x140085db0
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx - 0x18]
cmp rbx, r12
jae 0x140085ca2
mov r9, r12
movzx r8d, word [rsp + 0x3c]
sub r9, rbx
jmp 0x140085c83
mov rcx, qword [rsp + 0x40]
mov rdx, r9
call fcn.1400895a0
jmp 0x140085c97
mov r12, qword [rsp + 0x50]
mov edx, eax
movzx r8d, word [rbx + 0x66]
neg edx
movsxd rdx, edx
mov rcx, r12
call fcn.1400895a0
mov r8, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, r12
call fcn.140089190
jmp 0x140085ab7
cmp qword [rsp + 0x30], 0
je 0x140085c5b
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call fcn.14008d500
jmp case.0x140085bcf.0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.1400892a0
jmp case.0x140085b38.0
test byte [rdi + 0x19], 2
je case.0x140085b38.0
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.140089190
jmp case.0x140085b38.0
cmp qword [rsp + 0x30], 0
je case.0x140085b38.0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call fcn.14008d500
jmp case.0x140085b38.0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.1400892a0
jmp case.0x140085b6b.0
test byte [rdi + 0x19], 2
je case.0x140085b6b.0
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.140089190
jmp case.0x140085b6b.0
cmp qword [rsp + 0x30], 0
je case.0x140085b6b.0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call fcn.14008d500
jmp case.0x140085b6b.0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.1400892a0
jmp case.0x140085b9e.0
test byte [rdi + 0x19], 2
je case.0x140085b9e.0
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.140089190
jmp case.0x140085b9e.0
cmp qword [rsp + 0x30], 0
je case.0x140085b9e.0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call fcn.14008d500
jmp case.0x140085b9e.0
movzx edx, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
call fcn.14008d500
jmp case.0x140085bcf.0
test byte [rdi + 0x19], 2
je case.0x140085bcf.0
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.140089190
jmp case.0x140085bcf.0
movsxd r9, r12d
jmp 0x1400859f0
test byte [rdi + 0x19], 2
je case.default.0x140085e81
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.140089190
jmp case.default.0x140085e81
cmp qword [rsp + 0x30], 0
je case.default.0x140085c3c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call fcn.14008d500
jmp case.default.0x140085c3c
cmp qword [rsp + 0x30], 0
je 0x140085ed2
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call fcn.14008d500
jmp case.default.0x140085e81
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.1400892a0
jmp case.default.0x140085e81
test byte [rdi + 0x19], 2
je case.default.0x140085e44
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.140089190
jmp case.default.0x140085e44
test byte [rdi + 0x19], 2
je case.default.0x140085c3c
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.140089190
jmp case.default.0x140085c3c
cmp qword [rsp + 0x30], 0
je case.default.0x140085e44
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call fcn.14008d500
jmp case.default.0x140085e44
cmp qword [rsp + 0x30], 0
je case.default.0x140085e09
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
movzx edx, word [rax]
call fcn.14008d500
jmp case.default.0x140085e09
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.1400892a0
jmp case.default.0x140085e09
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.1400892a0
jmp case.default.0x140085c3c
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.1400892a0
jmp case.default.0x140085e44
test byte [rdi + 0x19], 2
je case.default.0x140085e09
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.140089190
jmp case.default.0x140085e09
mov rcx, qword [rsp + 0x50]
call fcn.140086f90
jmp 0x140085a7b
mov rcx, qword [rsp + 0x50]
call fcn.140086f90
mov rcx, qword [rsp + 0x80]
jmp 0x140085a46
lea rdx, [rsp + 0x7f]
call fcn.140088180
jmp 0x140085cd9
call fcn.1400f9060
mov r8, rdx
lea rcx, [0x1400fc678]
lea rdx, [0x1400fc662]
call fcn.1400f1b60
mov rcx, rax
call fcn.1400f85d0
call fcn.1400f8d40
mov rcx, rax
call fcn.1400f85d0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x140086302