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

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x40
cmp byte [rcx + 0xe8], 0
mov r14, r8
mov r15, rdx
mov rbx, rcx
jne 0x140261cc5
mov rcx, qword [rdx]
cmp qword [r8], rcx
mov qword [rsp + 0x68], rbp
cmovb rcx, qword [r8]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
xor r12d, r12d
mov qword [rsp + 0x60], rcx
cmp dword [rbx + 0xec], r12d
jne 0x1402618c5
mov rax, qword [rbx + 0x90]
cmp qword [rbx + 0x88], rax
je 0x1402618b8
cmp byte [rbx + 0xe9], r12b
je 0x1402618c5
cmp qword [rbx + 0xb8], r12
jne 0x1402618c5
xor dl, dl
jmp 0x1402618c7
mov dl, 1
lea r8, [rsp + 0x60]
mov rcx, rbx
call fcn.140260140
cmp byte [rbx + 0xe8], r12b
jne 0x140261cb1
cmp qword [r14], 0xffffffffffffffff
je 0x1402618f5
call fcn.14026f640
cmp qword [r14], rax
jbe 0x140261cb1
cmp byte [rbx + 0xe9], r12b
jne 0x140261b77
mov eax, dword [rbx + 0xf0]
xor bpl, bpl
cmp dword [rbx + 0xec], eax
jae 0x140261b77
nop word [rax + rax]
mov rdi, qword [rbx + 0xb8]
test rdi, rdi
je 0x140261938
mov qword [rbx + 0xb8], r12
jmp 0x140261a2e
mov rax, qword [rbx + 0x90]
cmp qword [rbx + 0x88], rax
je 0x140261b6e
mov rax, qword [rbx + 0x88]
mov ecx, 2
mov r11, qword [rbx + 0x90]
mov r9, rax
mov r10, r12
mov rdi, qword [rax]
mov rsi, qword [r11 - 8]
mov rax, qword [rax]
mov qword [r11 - 8], rax
sub r11, r9
sar r11, 3
dec r11
cmp rcx, r11
jge 0x1402619d1
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r9 + rcx*8 - 8]
mov r8, qword [r9 + rcx*8]
mov eax, dword [rdx + 0x20]
cmp dword [r8 + 0x20], eax
je 0x1402619a7
setl al
jmp 0x1402619b2
mov rax, qword [rdx + 0x18]
cmp qword [r8 + 0x18], rax
seta al
test al, al
je 0x1402619b9
dec rcx
mov rax, qword [r9 + rcx*8]
mov qword [r9 + r10*8], rax
mov r10, rcx
lea rcx, [rcx*2 + 2]
cmp rcx, r11
jl 0x140261990
jne 0x1402619e0
mov rax, qword [r9 + rcx*8 - 8]
mov qword [r9 + r10*8], rax
lea r10, [rcx - 1]
lea rcx, [r10 - 1]
sar rcx, 1
test r10, r10
jle 0x140261a22
nop dword [rax]
mov rdx, qword [r9 + rcx*8]
mov eax, dword [rsi + 0x20]
cmp dword [rdx + 0x20], eax
je 0x140261a01
setl al
jmp 0x140261a0c
mov rax, qword [rsi + 0x18]
cmp qword [rdx + 0x18], rax
seta al
test al, al
je 0x140261a22
mov qword [r9 + r10*8], rdx
mov r10, rcx
dec rcx
sar rcx, 1
test r10, r10
jg 0x1402619f0
mov qword [r9 + r10*8], rsi
sub qword [rbx + 0x90], 8
test rdi, rdi
je 0x140261b6e
or dword [rdi + 0x14], 1
xor edx, edx
inc dword [rbx + 0xec]
mov bpl, 1
mov ecx, dword [rbx + 0x128]
mov r8d, dword [rdi + 0x10]
mov r9d, dword [rbx + 0xec]
mov eax, r8d
div rcx
mov rax, qword [rbx + 0x120]
mov ecx, edx
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x140261a7e
nop
cmp r8d, dword [rdx]
je 0x140261a90
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x140261a70
mov rcx, qword [rbx + 0x128]
mov rax, qword [rbx + 0x120]
mov rdx, qword [rax + rcx*8]
mov rcx, qword [rbx + 0x128]
mov rax, qword [rbx + 0x120]
cmp rdx, qword [rax + rcx*8]
je 0x140261b0f
mov rcx, qword [rdx + 8]
test rcx, rcx
je 0x140261b0f
mov rax, qword [rcx]
mov rdx, rdi
movzx r8d, byte [rbx + 0xea]
call qword [rax + 0x20]
movzx ecx, al
test al, al
je 0x140261ae5
sub ecx, 2
je 0x140261ae5
cmp ecx, 1
jne 0x140261b53
dec dword [rbx + 0xec]
xor bpl, bpl
mov qword [rbx + 0xb8], rdi
jmp 0x140261b53
test byte [rdi + 0x14], bpl
je 0x140261af1
dec dword [rbx + 0xec]
mov rax, qword [rdi]
xor edx, edx
test byte [rdi + 0x14], 2
mov rcx, rdi
je 0x140261b3d
call qword [rax]
mov eax, 4
mov qword [rdi + 8], r12
xchg dword [rdi + 0x14], eax
jmp 0x140261b53
test byte [rdi + 0x14], bpl
je 0x140261b1f
lea eax, [r9 - 1]
mov dword [rbx + 0xec], eax
mov rax, qword [rdi]
xor edx, edx
test byte [rdi + 0x14], 2
mov rcx, rdi
je 0x140261b3d
call qword [rax]
mov eax, 4
mov qword [rdi + 8], r12
xchg dword [rdi + 0x14], eax
jmp 0x140261b53
call qword [rax]
mov rax, qword [rbx + 0x60]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
mov r9, qword [rax]
call qword [r9 + 0x18]
cmp qword [rbx + 0xb8], r12
jne 0x140261b6e
mov eax, dword [rbx + 0xf0]
cmp dword [rbx + 0xec], eax
jb 0x140261920
test bpl, bpl
jne 0x140261896
cmp dword [rbx + 0xec], r12d
je 0x140261ca8
mov rax, qword [rbx + 0xc8]
cmp qword [rbx + 0xc0], rax
je 0x140261ba3
lea rcx, [rbx + 0xc0]
mov rdx, rbx
call fcn.140258fb0
mov rcx, qword [rbx + 0xc8]
sub rcx, qword [rbx + 0xc0]
mov eax, dword [rbx + 0xec]
sar rcx, 3
cmp rax, rcx
ja 0x140261bcd
cmp qword [rbx + 0xb8], r12
je 0x140261c6d
mov rax, qword [rbx + 0x90]
cmp qword [rbx + 0x88], rax
je 0x140261bf0
mov eax, dword [rbx + 0xf0]
cmp dword [rbx + 0xec], eax
jae 0x140261bf0
mov dil, 1
jmp 0x140261bf3
xor dil, dil
mov rax, qword [rbx + 0xc8]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x78], r12
cmp qword [rbx + 0xc0], rax
jne 0x140261c56
cmp dword [rbx + 0x3c], r12d
jne 0x140261c19
cmp dword [rbx + 0x40], r12d
je 0x140261c56
call fcn.14026f640
mov r8, rax
mov rdx, qword [rsp + 0x60]
cmp dword [rbx + 0x3c], r12d
je 0x140261c3e
mov ecx, dword [rbx + 0x3c]
add rcx, rax
cmp rdx, rcx
cmovb rcx, rdx
mov qword [rsp + 0x20], rcx
cmp dword [rbx + 0x40], r12d
je 0x140261c56
mov eax, dword [rbx + 0x40]
add rax, r8
cmp rdx, rax
cmovb rax, rdx
mov qword [rsp + 0x78], rax
mov rax, qword [rbx]
lea r8, [rsp + 0x78]
movzx r9d, dil
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [rax + 0x78]
mov rax, qword [rbx + 0xc8]
cmp qword [rbx + 0xc0], rax
je 0x140261ca8
mov rax, qword [0x14051e220]
test rax, rax
je 0x140261c92
mov eax, dword [rax + 0x5c]
test eax, eax
js 0x140261ca8
jmp 0x140261c97
mov eax, 1
cdqe
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call fcn.1402705d0
cmp qword [r15], r12
jne 0x140261896
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov r12, qword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop rbx
ret