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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x20
cmp dword [rdx + 0x38], r8d
mov rbp, rcx
mov ecx, dword [rdx + 0x28]
mov r14d, r8d
cmovl r14d, dword [rdx + 0x38]
mov rbx, rdx
mov r12d, r8d
mov rdi, r9
mov r8d, dword [rdx + 0x18]
add ecx, r8d
mov rax, qword [rbp]
lea edx, [r12 + 2]
add edx, ecx
cmp edx, dword [rax + 0x88]
jl 0x180128f25
cmp r8d, 4
jle 0x180128f04
mov rdx, rbx
mov rcx, rbp
call fcn.180128d60
cmp dword [rbp + 0x3c], 0
jne 0x18012911e
mov r8d, dword [rbx + 0x18]
lea eax, [r12 + 0x14]
add eax, r8d
cmp eax, dword [rbx + 0x1c]
jbe 0x180128f25
lea rdx, [rbx + 0x10]
mov r8d, eax
lea rcx, [rbp + 0x3c]
call fcn.18011b280
mov r8d, dword [rbx + 0x18]
sub r8d, dword [rbx + 0xc]
movsxd rcx, dword [rbx + 0x28]
add rcx, qword [rbx + 0x20]
movsxd rdx, r8d
cmp rdx, 0x7f
ja 0x180128f46
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
jmp 0x180128f6c
cmp rdx, 0x3fff
ja 0x180128f67
mov rax, rdx
shr rax, 7
or al, 0x80
and dl, 0x7f
mov byte [rcx], al
mov byte [rcx + 1], dl
mov eax, 2
jmp 0x180128f6c
call fcn.1800304c0
add dword [rbx + 0x28], eax
xor esi, esi
mov eax, dword [rbx + 0x18]
mov dword [rbx + 0xc], eax
mov qword [rsp + 0x58], r15
movsxd r8, r14d
cmp byte [rbx + 0x4a], sil
je 0x180129034
cmp dword [rbx + 8], 1
je 0x18012902e
mov r15d, r12d
cmp dword [rbx + 0x38], esi
je 0x180128fcd
xor edx, edx
test r14d, r14d
jle 0x180128fc9
mov r9, qword [rbx + 0x30]
mov rcx, rdi
sub r9, rdi
nop dword [rax]
movzx eax, byte [rcx]
cmp byte [r9 + rcx], al
jne 0x180128fc9
inc rcx
inc edx
mov rax, rcx
sub rax, rdi
cmp rax, r8
jl 0x180128fb0
lea r15d, [rdx + 1]
mov rdx, rbx
mov rcx, rbp
call fcn.1801289e0
add rbp, 0x3c
cmp dword [rbp], esi
jne 0x180129119
mov dword [rbx + 0x68], esi
test r15d, r15d
je 0x18012901d
cmp r15d, dword [rbx + 0x6c]
jbe 0x180129006
mov r8d, r15d
lea rdx, [rbx + 0x60]
mov rcx, rbp
call fcn.18011b280
test eax, eax
jne 0x18012901d
movsxd rcx, dword [rbx + 0x68]
mov rdx, rdi
add rcx, qword [rbx + 0x60]
mov r8d, r15d
call fcn.18013fe80
add dword [rbx + 0x68], r15d
mov eax, dword [rbx + 8]
mov dword [rbx + 0x70], eax
cmp dword [rbp], esi
jne 0x180129119
jmp 0x18012906e
add rbp, 0x3c
jmp 0x18012906e
test r14d, r14d
jle 0x18012905b
mov rdx, qword [rbx + 0x30]
mov rcx, rdi
sub rdx, rdi
movzx eax, byte [rcx]
cmp byte [rcx + rdx], al
jne 0x18012905b
inc rcx
inc esi
mov rax, rcx
sub rax, rdi
cmp rax, r8
jl 0x180129043
add rbp, 0x3c
movsxd r8, esi
mov rcx, rbp
lea rdx, [rbx + 0x10]
call fcn.18011b310
mov qword [rsp + 0x50], r13
lea rdx, [rbx + 0x10]
movsxd r13, esi
mov rcx, rbp
movsxd r8, r12d
sub r8, r13
call fcn.18011b310
mov r15d, r12d
sub r15d, esi
je 0x1801290c5
mov r8d, dword [rbx + 0x18]
add r8d, r15d
cmp r8d, dword [rbx + 0x1c]
jbe 0x1801290ad
lea rdx, [rbx + 0x10]
mov rcx, rbp
call fcn.18011b280
test eax, eax
jne 0x1801290c5
movsxd rcx, dword [rbx + 0x18]
lea rdx, [rdi + r13]
add rcx, qword [rbx + 0x10]
mov r8d, r15d
call fcn.18013fe80
add dword [rbx + 0x18], r15d
mov r13, qword [rsp + 0x50]
mov dword [rbx + 0x38], 0
test r12d, r12d
je 0x180129106
cmp r12d, dword [rbx + 0x3c]
jbe 0x1801290ef
mov r8d, r12d
lea rdx, [rbx + 0x30]
mov rcx, rbp
call fcn.18011b280
test eax, eax
jne 0x180129106
movsxd rcx, dword [rbx + 0x38]
mov r8, r12
add rcx, qword [rbx + 0x30]
mov rdx, rdi
call fcn.18013fe80
add dword [rbx + 0x38], r12d
mov rcx, qword [rbx + 0x58]
mov word [rbx + 0x49], 0
mov byte [rbx + 0x48], 1
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov r15, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret