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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov r12, qword [rcx]
mov rsi, r8
mov r14, qword [r8 + 0x60]
xor r15d, r15d
movsxd rbp, edx
mov rdx, rcx
mov qword [rsp + 0x50], r12
mov rbx, qword [r12 + 0x10]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], r14
movsxd r8, dword [rbx + 0x90]
mov dword [rsp + 0x44], r8d
cmp dword [rbx + 0x94], r8d
jg 0x140164187
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea edx, [r15 + 0xf]
mov rcx, rbx
call fcn.1400e7510
mov rdx, qword [rsp + 0xe0]
mov dword [rsp + 0x44], eax
jmp 0x1401641ae
lea rcx, [r8 + r8*2]
lea eax, [r8 + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 0xf
mov qword [rax + rcx*8 + 8], r15
mov qword [rax + rcx*8 + 0x10], r15
mov qword [rsp + 0x48], rbp
mov edi, 3
nop dword [rax + rax]
mov r8, rsi
mov rcx, r12
call fcn.140158f90
dec dword [r12 + 0x44]
mov r13d, dword [rsi + 4]
mov r9d, dword [r12 + 0x38]
mov eax, dword [r12 + 0x44]
inc r9d
mov rbp, qword [rsp + 0xe0]
mov dword [rsp + 0x3c], eax
mov dword [r12 + 0x38], r9d
movzx eax, byte [rsi + 0x40]
mov dword [rsi + 0x34], r9d
imul rsi, rax, 0x68
mov dword [rsp + 0x38], r13d
add rsi, qword [rbp + 8]
mov rax, qword [rsi + 0x28]
movsx ecx, word [rax + 0x3a]
mov eax, 0x66666667
imul ecx
mov r8d, edx
sar r8d, 2
mov eax, r8d
shr eax, 0x1f
add r8d, eax
lea eax, [r8 + r8*4]
add eax, eax
sub ecx, eax
movsxd rdx, ecx
cmp rdx, 5
jb 0x14016423d
sub rdx, 2
jmp 0x140164246
cmp rdx, 1
jb 0x140164246
dec rdx
cmp r8w, 0x3c
jg 0x140164287
add rdx, 8
movsx ecx, r8w
cmp r8w, 3
jl 0x140164264
add ecx, 0xfffffffd
shl rdx, cl
jmp 0x14016426e
mov eax, edi
sub eax, ecx
movzx ecx, al
shr rdx, cl
cmp rdx, 0x2710
jae 0x14016427e
mov edx, 0x2710
jmp 0x14016428c
cmp rdx, 0x989680
jbe 0x14016428c
mov edx, 0x989680
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401642b2
mov r8d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x4d
mov rcx, rbx
call fcn.1400e7510
jmp 0x1401642e0
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x4d
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
movsxd rdx, dword [rbx + 0x90]
mov dword [rsp + 0x40], edx
cmp dword [rbx + 0x94], edx
jg 0x140164310
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, r13d
mov rcx, rbx
lea edx, [r9 + 0x24]
call fcn.1400e7510
mov dword [rsp + 0x40], eax
jmp 0x14016433e
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x24
mov dword [rax + rcx*8 + 4], r13d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r15
mov rdi, qword [rbp + 0x90]
movsxd rax, dword [rbp + 0x84]
imul rbp, rax, 0x38
add rbp, rdi
cmp rdi, rbp
jae 0x140164411
mov r14d, dword [rsp + 0x3c]
lea rbx, [fcn.140105420]
mov r13d, 3
lea r15, [0x140105240]
test byte [rdi + 0x12], 2
mov rdx, qword [rdi]
jne 0x1401643f2
movzx ecx, byte [rsi + 0x44]
test cl, 0x40
jne 0x1401643f2
mov eax, dword [rdx + 4]
and eax, 1
test cl, 8
je 0x14016439e
test eax, eax
je 0x1401643f2
mov eax, dword [rsi + 0x4c]
cmp dword [rdx + 0x30], eax
jmp 0x1401643a0
test eax, eax
jne 0x1401643f2
mov eax, dword [rsi + 0x4c]
movzx ecx, r13w
mov word [rsp + 0x84], cx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x88], eax
test rdx, rdx
je 0x1401643dc
lea rcx, [rsp + 0x60]
call fcn.1400fd450
mov rdx, qword [rdi]
movzx ecx, word [rsp + 0x84]
test cx, cx
je 0x1401643f2
mov r9d, 0x10
mov r8d, r14d
mov rcx, r12
call fcn.14010c060
add rdi, 0x38
cmp rdi, rbp
jb 0x140164375
mov rbx, qword [rsp + 0x58]
xor r15d, r15d
mov r14, qword [rsp + 0x30]
mov r13d, dword [rsp + 0x38]
test dword [r14 + 0x38], 0x100
je 0x14016454b
movzx eax, byte [r12 + 0x1f]
test al, al
jne 0x140164435
inc dword [r12 + 0x38]
mov edi, dword [r12 + 0x38]
jmp 0x140164447
dec al
movzx eax, al
mov byte [r12 + 0x1f], al
mov edi, dword [r12 + rax*4 + 0xd0]
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x140164470
mov r9d, edi
mov dword [rsp + 0x20], r15d
mov r8d, r13d
mov edx, 0x87
mov rcx, rbx
call fcn.1400e7510
jmp 0x14016449e
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x87
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rsi, qword [rsp + 0xf0]
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [rsi + 0x34]
cmp dword [rbx + 0x94], edx
jg 0x1401644d1
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov edx, 0xb4
mov rcx, rbx
call fcn.1400e7510
mov edx, eax
jmp 0x1401644ff
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0xb4
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x140164523
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], 1
test edi, edi
je 0x1401646af
movzx eax, byte [r12 + 0x1f]
cmp al, 8
jae 0x1401646af
mov dword [r12 + rax*4 + 0xd0], edi
inc byte [r12 + 0x1f]
jmp 0x1401646af
movzx ebp, word [r14 + 0x18]
mov r13, qword [r14 + 0x20]
cmp ebp, 1
jne 0x140164583
movzx eax, byte [r12 + 0x1f]
test al, al
jne 0x14016456f
inc dword [r12 + 0x38]
mov r14d, dword [r12 + 0x38]
jmp 0x1401645b3
dec al
movzx eax, al
mov byte [r12 + 0x1f], al
mov r14d, dword [r12 + rax*4 + 0xd0]
jmp 0x1401645b3
mov ecx, dword [r12 + 0x28]
mov r14d, dword [r12 + 0x2c]
cmp ebp, ecx
jg 0x1401645a3
lea eax, [r14 + rbp]
sub ecx, ebp
mov dword [r12 + 0x2c], eax
mov dword [r12 + 0x28], ecx
jmp 0x1401645b3
mov eax, dword [r12 + 0x38]
lea r14d, [rax + 1]
add eax, ebp
mov dword [r12 + 0x38], eax
mov rdi, r15
test ebp, ebp
je 0x1401645ed
mov r12d, dword [rsp + 0x38]
mov esi, r14d
mov rax, qword [r13 + 8]
mov r8d, r12d
mov rdx, qword [r13 + 0x18]
mov rcx, rbx
mov dword [rsp + 0x20], esi
movsx r9d, word [rax + rdi*2]
call fcn.1401090b0
inc esi
inc rdi
cmp rdi, rbp
jl 0x1401645c2
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0xf0]
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [rsi + 0x34]
cmp dword [rbx + 0x94], edx
jg 0x140164624
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov edx, 0xb4
mov rcx, rbx
call fcn.1400e7510
mov edx, eax
xor r15d, r15d
jmp 0x140164656
lea rcx, [rdx + rdx*2]
xor r15d, r15d
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0xb4
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x140164676
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], ebp
cmp ebp, 1
jne 0x140164699
test r14d, r14d
je 0x1401646aa
movzx eax, byte [r12 + 0x1f]
cmp al, 8
jae 0x1401646aa
mov dword [r12 + rax*4 + 0xd0], r14d
inc byte [r12 + 0x1f]
jmp 0x1401646aa
cmp ebp, dword [r12 + 0x28]
jle 0x1401646aa
mov dword [r12 + 0x28], ebp
mov dword [r12 + 0x2c], r14d
mov r14, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x18]
mov edx, dword [rsp + 0x3c]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401646ce
mov r8d, edx
mov rdx, rbx
call fcn.1400e81a0
jmp 0x1401646de
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
movsxd rdi, dword [rsp + 0x40]
movsxd rcx, dword [rbx + 0x90]
mov r8d, dword [rsi + 4]
lea edx, [rdi + 1]
cmp dword [rbx + 0x94], ecx
jg 0x140164710
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x27
mov rcx, rbx
call fcn.1400e7510
jmp 0x14016473e
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x27
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x140164756
lea rax, [0x14099b880]
jmp 0x140164765
mov rax, qword [rbx + 0x88]
lea rcx, [rdi + rdi*2]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
and dword [r14 + 0x38], 0xffbfffff
mov rax, qword [r12]
test dword [rax + 0x60], 0x100000
jne 0x140164845
mov ebp, dword [rsp + 0xe8]
mov rdi, qword [rsp + 0x48]
inc ebp
mov rdx, qword [rsp + 0xe0]
inc rdi
mov dword [rsp + 0xe8], ebp
mov qword [rsp + 0x48], rdi
movzx r10d, byte [rdx + 0x40]
cmp ebp, r10d
jge 0x14016483a
mov r9, qword [rdx + 8]
mov r12, qword [rsp + 0xf8]
imul rax, rdi, 0x70
add rax, 0x3c0
add rax, rdx
nop dword [rax]
movzx ecx, byte [rax - 0x20]
lea rsi, [rax - 0x60]
imul rdx, rcx, 0x68
mov qword [rsp + 0xf0], rsi
test byte [rdx + r9 + 0x44], 0x48
jne 0x14016480b
mov r14, qword [rax]
test r14, r14
je 0x14016480b
test qword [r14], r12
jne 0x14016480b
mov ecx, dword [r14 + 0x38]
and ecx, 0x400004
cmp ecx, 0x400000
je 0x140164819
inc ebp
inc rdi
add rax, 0x70
cmp rdi, r10
jl 0x1401647d0
mov r12, qword [rsp + 0x50]
cmp ebp, r10d
mov rdx, qword [rsp + 0xe0]
mov dword [rsp + 0xe8], ebp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], r14
mov edi, 3
jl 0x1401641c0
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x14016485c
mov dword [0x14099b888], edx
jmp 0x140164870
movsxd rax, dword [rsp + 0x44]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 8], edx
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret