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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rdi, qword [rcx + 0x10]
mov r14d, r9d
xor r15d, r15d
lea r9, [rax + 0x10]
cmp r8d, r14d
mov dword [rax + 0x10], r15d
mov r13d, r8d
mov rbp, rdx
cmove r9, r15
mov rsi, rcx
lea r8d, [r15 + 3]
call fcn.140149c00
mov rcx, rbp
mov ebx, eax
call fcn.14011cc40
movzx ecx, byte [rsi + 0x1f]
inc dword [rsi + 0x70]
mov byte [rsp + 0xa0], al
test cl, cl
jne 0x1401466db
inc dword [rsi + 0x54]
mov r12d, dword [rsi + 0x54]
jmp 0x1401466e8
dec cl
movzx eax, cl
mov byte [rsi + 0x1f], al
mov r12d, dword [rsi + rax*4 + 0x24]
mov rdx, qword [rbp + 0x10]
mov r8d, r12d
mov rcx, rsi
call fcn.1401461e0
cmp ebx, 5
jne 0x140146a88
mov rbx, qword [rbp + 0x20]
mov rcx, rsi
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x40], rbx
call fcn.1401480e0
mov rcx, rdi
mov r14, rax
call fcn.1401704c0
mov ebp, r15d
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0xb8], r13d
je 0x140146764
movzx ecx, byte [rsi + 0x1f]
test cl, cl
jne 0x140146741
inc dword [rsi + 0x54]
mov ebp, dword [rsi + 0x54]
jmp 0x14014674d
dec cl
movzx eax, cl
mov byte [rsi + 0x1f], al
mov ebp, dword [rsi + rax*4 + 0x24]
mov r9d, r12d
mov dword [rsp + 0x20], ebp
mov r8d, r12d
mov edx, 0x55
mov rcx, rdi
call fcn.140167a30
mov r13d, r15d
cmp dword [rbx], r15d
jle 0x1401469d4
mov rax, r15
mov qword [rsp + 0x38], rax
nop dword [rax + rax]
mov rdx, qword [rbx + 8]
lea r8, [rsp + 0x34]
mov rcx, rsi
mov rdx, qword [rax + rdx]
call fcn.140147f70
mov ebx, eax
test ebp, ebp
je 0x140146826
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
mov r8, qword [r8 + rcx]
movzx edx, byte [r8]
lea ecx, [rdx + 0x63]
cmp cl, 1
ja 0x1401467c3
mov r8, qword [r8 + 0x10]
jmp 0x1401467b1
cmp dl, 0x9f
jne 0x1401467cd
movzx edx, byte [r8 + 0x36]
cmp dl, 0x61
je 0x140146826
cmp dl, 0x83
jbe 0x14014680f
cmp dl, 0x86
jbe 0x140146826
cmp dl, 0x9a
jne 0x14014680f
test dword [r8 + 4], 0x100000
jne 0x14014680f
movzx eax, word [r8 + 0x30]
test ax, ax
js 0x140146826
movsx rax, ax
lea rdx, [rax + rax*2]
mov rax, qword [r8 + 0x40]
add rdx, rdx
mov rcx, qword [rax + 8]
cmp byte [rcx + rdx*8 + 0x28], r15b
jne 0x140146826
mov r9d, ebx
mov dword [rsp + 0x20], ebp
mov r8d, ebp
mov edx, 0x55
mov rcx, rdi
call fcn.140167a30
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
dec eax
cmp r13d, eax
jl 0x1401468e7
mov eax, dword [rsp + 0xb0]
cmp dword [rsp + 0xb8], eax
jne 0x1401468e7
mov r9d, eax
mov dword [rsp + 0x20], ebx
mov r8d, r12d
mov edx, 0x4e
mov rcx, rdi
call fcn.140167a30
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
je 0x1401468b0
cmp byte [rcx + 0x51], r15b
jne 0x1401468b0
test eax, eax
jns 0x14014687e
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.1401255e0
test r14, r14
jne 0x1401468a6
mov qword [rbx + 0x10], r15
mov byte [rbx + 1], r15b
jmp 0x1401468bd
mov qword [rbx + 0x10], r14
mov byte [rbx + 1], 0xfc
jmp 0x1401468bd
mov r8, r14
mov edx, 0xfffffffc
call fcn.1401255e0
mov r8, qword [rdi + 8]
test r8, r8
je 0x140146977
movsxd rax, dword [rdi + 0x3c]
movzx edx, byte [rsp + 0xa0]
or dl, 0x10
lea rcx, [rax + rax*2]
mov byte [r8 + rcx*8 - 0x15], dl
jmp 0x140146977
mov r9d, dword [rsp + 0x30]
mov r8d, r12d
mov edx, 0x4f
mov dword [rsp + 0x20], ebx
mov rcx, rdi
call fcn.140167a30
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
je 0x14014694d
cmp byte [rcx + 0x51], r15b
jne 0x14014694d
test eax, eax
jns 0x14014691b
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.1401255e0
test r14, r14
jne 0x140146943
mov qword [rbx + 0x10], r15
mov byte [rbx + 1], r15b
jmp 0x14014695a
mov qword [rbx + 0x10], r14
mov byte [rbx + 1], 0xfc
jmp 0x14014695a
mov r8, r14
mov edx, 0xfffffffc
call fcn.1401255e0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x140146977
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
movzx eax, byte [rsp + 0xa0]
mov byte [rdx + rcx*8 - 0x15], al
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x1401469b5
movzx r8d, byte [rsi + 0x1f]
cmp r8b, 8
jae 0x1401469b5
mov ecx, r15d
lea rax, [rsi + 0x88]
cmp dword [rax + 0xc], edx
je 0x1401469b1
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140146994
movzx eax, r8b
mov dword [rsi + rax*4 + 0x24], edx
inc byte [rsi + 0x1f]
jmp 0x1401469b5
mov byte [rax + 6], 1
mov rax, qword [rsp + 0x38]
inc r13d
mov rbx, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x38], rax
cmp r13d, dword [rbx]
jl 0x140146780
test ebp, ebp
je 0x140146a11
mov r9d, dword [rsp + 0xb8]
mov r8d, ebp
mov edx, 0x4c
mov dword [rsp + 0x20], r15d
mov rcx, rdi
call fcn.140167a30
mov r9d, dword [rsp + 0xb0]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
lea edx, [r8 + 0xe]
call fcn.140167a30
mov rdx, qword [rdi + 0x30]
mov eax, 0xffffffff
sub eax, dword [rsp + 0x30]
js 0x140146a36
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x140146a36
movsxd rcx, eax
mov eax, dword [rdi + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rdi + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
test ebp, ebp
je 0x140146c64
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x140146c64
mov ecx, r15d
lea rax, [rsi + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], ebp
je 0x140146a7f
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140146a60
movzx eax, dl
mov dword [rsi + rax*4 + 0x24], ebp
inc byte [rsi + 0x1f]
jmp 0x140146c64
mov byte [rax + 6], 1
jmp 0x140146c64
mov rcx, qword [rbp + 0x10]
call fcn.140146170
test eax, eax
je 0x140146b25
mov dword [rsp + 0x20], r15d
mov r8d, r12d
mov rcx, rdi
cmp r14d, r13d
jne 0x140146ab8
mov r9d, r14d
mov edx, 0x4c
call fcn.140167a30
jmp 0x140146b25
xor r9d, r9d
lea edx, [r9 + 0x4d]
call fcn.140167a30
mov r8d, dword [rbp + 0x2c]
mov r9d, r13d
mov edx, 0x6d
mov r14d, eax
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140167a30
mov r9d, dword [rsp + 0xb8]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
lea edx, [r8 + 0xe]
call fcn.140167a30
mov edx, dword [rdi + 0x3c]
cmp edx, r14d
jbe 0x140146b13
mov rax, qword [rdi + 8]
lea rcx, [r14 + r14*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [rdx - 1]
mov r14d, dword [rsp + 0xb8]
mov dword [rax + 0x64], ecx
mov dword [rsp + 0x20], r15d
mov r8d, r12d
mov rcx, rdi
cmp ebx, 1
jne 0x140146b5c
mov r9d, r13d
lea edx, [rbx + 0x25]
call fcn.140167a30
mov r8d, dword [rbp + 0x2c]
lea edx, [rbx + 0x48]
mov r9d, r13d
mov dword [rsp + 0x20], r12d
mov rcx, rdi
call fcn.140167a30
jmp 0x140146c64
mov r9d, 1
lea edx, [r9 + 0x2f]
call fcn.140167a30
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
je 0x140146bc3
cmp byte [rcx + 0x51], r15b
jne 0x140146bc3
test eax, eax
jns 0x140146b86
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.1401255e0
mov qword [rbx + 0x10], r15
lea rdx, [rsp + 0xa0]
mov rcx, qword [rdi]
mov r8d, 1
call fcn.140142330
mov qword [rbx + 0x10], rax
mov byte [rbx + 1], 0xff
jmp 0x140146bd5
lea r8, [rsp + 0xa0]
mov edx, 1
call fcn.1401255e0
mov rcx, rdi
mov r8d, dword [rbp + 0x2c]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r12d
cmp dword [rsp + 0xa8], r15d
jne 0x140146c02
mov r9d, r13d
mov edx, 0x45
call fcn.140167b10
jmp 0x140146c64
xor r9d, r9d
lea edx, [r9 + 0x46]
call fcn.140167b10
mov r8d, dword [rsp + 0xa8]
mov r9d, r14d
mov edx, 0x4c
mov ebx, eax
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140167a30
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, r13d
mov rcx, rdi
lea edx, [r8 + 0xe]
call fcn.140167a30
mov edx, dword [rdi + 0x3c]
cmp edx, ebx
jbe 0x140146c5a
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
test r12d, r12d
je 0x140146ca4
movzx ecx, byte [rsi + 0x1f]
cmp cl, 8
jae 0x140146ca4
lea rax, [rsi + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], r12d
je 0x140146ca0
inc r15d
add rax, 0x14
cmp r15d, 0xa
jl 0x140146c80
movzx eax, cl
mov dword [rsi + rax*4 + 0x24], r12d
inc byte [rsi + 0x1f]
jmp 0x140146ca4
mov byte [rax + 6], 1
mov rcx, rsi
call fcn.140145a00
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret