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

Disassembly:
mov rax, rsp
push rbx
push r12
push r15
sub rsp, 0x60
cmp byte [rcx + 0xe8], 0
mov r15, r8
mov r12, rdx
mov rbx, rcx
jne 0x1400424c6
mov rcx, qword [rdx]
cmp qword [r8], rcx
mov qword [rax + 0x10], rbp
cmovb rcx, qword [r8]
mov qword [rax - 0x20], rsi
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r13
xor r13d, r13d
mov qword [rax + 8], rcx
mov qword [rax - 0x38], r14
cmp dword [rbx + 0xec], r13d
jne 0x1400420a6
mov rax, qword [rbx + 0x90]
cmp qword [rbx + 0x88], rax
je 0x140042099
cmp byte [rbx + 0xe9], r13b
je 0x1400420a6
cmp qword [rbx + 0xb8], r13
jne 0x1400420a6
xor dl, dl
jmp 0x1400420a8
mov dl, 1
lea r8, [rsp + 0x80]
mov rcx, rbx
call fcn.140040110
cmp byte [rbx + 0xe8], r13b
jne 0x1400424aa
cmp qword [r15], 0xffffffffffffffff
je 0x1400420d9
call fcn.14004fd20
cmp qword [r15], rax
jbe 0x1400424aa
cmp byte [rbx + 0xe9], r13b
jne 0x140042341
mov eax, dword [rbx + 0xf0]
xor r14b, r14b
cmp dword [rbx + 0xec], eax
jae 0x140042341
nop dword [rax + rax]
mov rdi, qword [rbx + 0xb8]
test rdi, rdi
je 0x140042118
mov qword [rbx + 0xb8], r13
jmp 0x14004220f
mov rax, qword [rbx + 0x90]
cmp qword [rbx + 0x88], rax
je 0x140042338
mov rax, qword [rbx + 0x88]
mov ecx, 2
mov rsi, qword [rbx + 0x90]
mov rdx, rax
mov r9, r13
mov rdi, qword [rax]
mov rbp, qword [rsi - 8]
mov rax, qword [rax]
mov qword [rsi - 8], rax
sub rsi, rdx
sar rsi, 3
dec rsi
mov qword [rsp + 0x30], rbp
cmp rcx, rsi
jge 0x1400421b2
nop word [rax + rax]
mov r11, qword [rdx + rcx*8]
mov r10, qword [rdx + rcx*8 - 8]
mov eax, dword [r11 + 0x20]
cmp eax, dword [r10 + 0x20]
je 0x140042188
setl al
jmp 0x140042193
mov rax, qword [r10 + 0x18]
cmp qword [r11 + 0x18], rax
seta al
test al, al
je 0x14004219a
dec rcx
mov rax, qword [rdx + rcx*8]
mov qword [rdx + r9*8], rax
mov r9, rcx
lea rcx, [rcx*2 + 2]
cmp rcx, rsi
jl 0x140042170
jne 0x1400421c1
mov rax, qword [rdx + rcx*8 - 8]
mov qword [rdx + r9*8], rax
lea r9, [rcx - 1]
lea rcx, [r9 - 1]
sar rcx, 1
test r9, r9
jle 0x140042203
nop dword [rax]
mov r8, qword [rdx + rcx*8]
mov eax, dword [r8 + 0x20]
cmp eax, dword [rbp + 0x20]
je 0x1400421e2
setl al
jmp 0x1400421ed
mov rax, qword [rbp + 0x18]
cmp qword [r8 + 0x18], rax
seta al
test al, al
je 0x140042203
mov qword [rdx + r9*8], r8
mov r9, rcx
dec rcx
sar rcx, 1
test r9, r9
jg 0x1400421d0
mov qword [rdx + r9*8], rbp
add qword [rbx + 0x90], 0xfffffffffffffff8
test rdi, rdi
je 0x140042338
or dword [rdi + 0x14], 1
xor edx, edx
inc dword [rbx + 0xec]
mov r14b, 1
mov ecx, dword [rbx + 0x128]
mov r8d, dword [rdi + 0x10]
mov r9, qword [rbx + 0x120]
mov eax, r8d
mov r10d, dword [rbx + 0xec]
div rcx
mov eax, edx
mov rcx, qword [r9 + rax*8]
test rcx, rcx
je 0x14004225e
cmp r8d, dword [rcx]
je 0x140042269
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x140042250
mov rax, qword [rbx + 0x128]
mov rcx, qword [r9 + rax*8]
mov rax, qword [rbx + 0x128]
cmp rcx, qword [r9 + rax*8]
je 0x1400422dd
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400422dd
mov rax, qword [rcx]
mov rdx, rdi
movzx r8d, byte [rbx + 0xea]
call qword [rax + 0x20]
movzx ecx, al
test al, al
je 0x1400422b3
sub ecx, 2
je 0x1400422b3
cmp ecx, 1
jne 0x14004231d
dec dword [rbx + 0xec]
xor r14b, r14b
mov qword [rbx + 0xb8], rdi
jmp 0x14004231d
test byte [rdi + 0x14], 1
je 0x1400422bf
dec dword [rbx + 0xec]
mov rax, qword [rdi]
xor edx, edx
test byte [rdi + 0x14], 2
mov rcx, rdi
je 0x14004230b
call qword [rax]
mov eax, 4
mov qword [rdi + 8], r13
xchg dword [rdi + 0x14], eax
jmp 0x14004231d
test byte [rdi + 0x14], 1
je 0x1400422ed
lea eax, [r10 - 1]
mov dword [rbx + 0xec], eax
mov rax, qword [rdi]
xor edx, edx
test byte [rdi + 0x14], 2
mov rcx, rdi
je 0x14004230b
call qword [rax]
mov eax, 4
mov qword [rdi + 8], r13
xchg dword [rdi + 0x14], eax
jmp 0x14004231d
call qword [rax]
mov rcx, qword [rbx + 0x60]
xor r8d, r8d
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp qword [rbx + 0xb8], r13
jne 0x140042338
mov eax, dword [rbx + 0xf0]
cmp dword [rbx + 0xec], eax
jb 0x140042100
test r14b, r14b
jne 0x140042077
cmp dword [rbx + 0xec], r13d
je 0x1400424a0
mov rax, qword [rbx + 0xc8]
cmp qword [rbx + 0xc0], rax
je 0x1400423aa
mov rcx, qword [rbx + 0xc0]
mov r8, rbx
mov rdx, rax
mov rdi, rax
call fcn.140038200
mov rsi, rax
cmp rax, rdi
je 0x1400423aa
mov r8, qword [rbx + 0xc8]
cmp rdi, r8
je 0x140042395
sub r8, rdi
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
sub rdi, rsi
sar rdi, 3
neg rdi
shl rdi, 3
add qword [rbx + 0xc8], rdi
mov rax, qword [rbx + 0xc8]
sub rax, qword [rbx + 0xc0]
mov ecx, dword [rbx + 0xec]
sar rax, 3
cmp rcx, rax
ja 0x1400423d4
cmp qword [rbx + 0xb8], r13
je 0x140042476
mov rax, qword [rbx + 0x90]
cmp qword [rbx + 0x88], rax
je 0x1400423f1
cmp ecx, dword [rbx + 0xf0]
jae 0x1400423f1
mov dil, 1
jmp 0x1400423f4
xor dil, dil
mov rax, qword [rbx + 0xc8]
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x98], r13
cmp qword [rbx + 0xc0], rax
jne 0x14004245c
cmp dword [rbx + 0x3c], r13d
jne 0x14004241d
cmp dword [rbx + 0x40], r13d
je 0x14004245c
call fcn.14004fd20
mov ecx, dword [rbx + 0x3c]
mov r8, rax
mov rdx, qword [rsp + 0x80]
test ecx, ecx
je 0x140042443
add rcx, rax
cmp rdx, rcx
cmovb rcx, rdx
mov qword [rsp + 0x20], rcx
mov eax, dword [rbx + 0x40]
test eax, eax
je 0x14004245c
add rax, r8
cmp rdx, rax
cmovb rax, rdx
mov qword [rsp + 0x98], rax
mov rax, qword [rbx]
lea r8, [rsp + 0x98]
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 0x1400424a0
call fcn.14003e820
test eax, eax
js 0x1400424a0
cdqe
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call fcn.140050cf0
cmp qword [r12], r13
jne 0x140042077
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x88]
mov r14, qword [rsp + 0x40]
add rsp, 0x60
pop r15
pop r12
pop rbx
ret