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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x140339080]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rcx]
mov r13, rcx
movzx r12d, r9w
mov word [rsp + 0x30], r9w
xor r9d, r9d
mov qword [rsp + 0x90], rcx
mov rsi, r8
mov qword [rsp + 0xa8], r8
mov rax, qword [rax]
mov r10, rdx
mov rbx, qword [r13 + 0x10]
mov ebp, r9d
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x60], rax
mov rcx, qword [rax]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x58], r9
cmp dword [rax + 0x30], r9d
je 0x1401f820b
mov eax, dword [rax + 0x18]
jmp 0x1401f8c41
mov eax, dword [rbx + 0x38]
movzx r8d, word [rbx + 0x3c]
movzx edi, word [rbx + 0x18]
mov dword [rsp + 0x54], eax
mov r9d, edi
and al, 0x20
mov word [rsp + 0x40], r8w
mov r8d, dword [r10 + 0x44]
neg al
movzx eax, word [rbx + 0x1a]
sbb edx, edx
mov word [rsp + 0x3c], ax
movzx eax, word [rbx + 0x1c]
and edx, 0xfffffe59
add edx, 0x1bf
mov word [rsp + 0x3e], ax
movzx eax, word [rbx + 0x3e]
mov ecx, edx
and ecx, 0xffffffc3
mov word [rsp + 0x42], ax
mov rax, qword [rbx]
test byte [rsi + 0x64], 4
mov qword [rsp + 0xa0], rax
movzx eax, word [rbx + 0x16]
cmove ecx, edx
mov rdx, qword [r13 + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0xb0]
mov word [rsp + 0x3a], di
mov word [rsp + 0x32], ax
call fcn.1401fbc74
xor r11d, r11d
mov qword [rsp + 0x98], rax
mov word [rbx + 0x12], r11w
mov r15, rax
mov rcx, qword [rsi + 0x10]
movsx rax, word [rcx]
lea ecx, [r11 + 0xa]
mov word [rsp + 0x52], ax
cmp ax, cx
jg 0x1401f82c5
mov word [rsp + 0x38], r11w
jmp 0x1401f82d6
mov rcx, rax
call fcn.1401c8df8
sub ax, 0x21
mov word [rsp + 0x38], ax
mov edx, 2
mov ecx, 0x100
lea r10d, [rdx + 0xe]
lea r8d, [rdx + 1]
lea r9d, [rdx - 1]
test r15, r15
je 0x1401f8b1c
movzx r12d, word [r15 + 0x14]
mov r14d, r11d
mov eax, dword [r13 + 0x28]
mov word [rsp + 0x50], r12w
mov dword [rsp + 0x34], r11d
mov dword [rsp + 0x88], eax
cmp r12w, cx
je 0x1401f8320
test byte [r15 + 0x12], 0x80
je 0x1401f8367
mov rax, qword [rsi + 8]
movzx ecx, di
movsx r8, word [rax + rcx*2]
test r8d, r8d
js 0x1401f8352
mov rdx, qword [rsi + 0x18]
lea rcx, [r8 + r8*2]
mov rax, qword [rdx + 8]
test dword [rax + rcx*8 + 8], 0xf
jne 0x1401f8ad0
mov edx, 2
jmp 0x1401f835c
cmp r8d, 0xffffffff
je 0x1401f8ad0
mov r8d, 3
mov ecx, 0x100
mov rax, qword [r15 + 0x28]
test qword [rbx + 8], rax
jne 0x1401f8ad0
test word [r15 + 0x12], cx
je 0x1401f8386
cmp r12w, r10w
je 0x1401f8ad0
mov r10, qword [rsp + 0x78]
test byte [r10 + 0x3c], 0x58
je 0x1401f83bc
mov rcx, qword [r15]
test byte [rcx + 4], r8b
je 0x1401f8ad0
mov eax, dword [r10 + 0x44]
cmp dword [rcx + 0x34], eax
jne 0x1401f8ad0
test byte [r10 + 0x3c], 0x18
je 0x1401f83bc
test byte [rcx + 4], dl
jne 0x1401f8ad0
cmp byte [rsi + 0x62], r11b
je 0x1401f83d6
movzx eax, word [rsi + 0x5e]
sub eax, r9d
movzx ecx, di
cmp ecx, eax
jne 0x1401f83d6
or byte [r13 + 0x2c], dl
jmp 0x1401f83da
or byte [r13 + 0x2c], r9b
mov eax, dword [rsp + 0x54]
mov dword [rbx + 0x38], eax
movzx eax, word [rsp + 0x3c]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x3e]
mov word [rbx + 0x1c], ax
movzx eax, word [rsp + 0x40]
mov word [rbx + 0x18], di
mov word [rbx + 0x3c], ax
cmp ax, word [rbx + 0x40]
jb 0x1401f842b
mov rcx, qword [rsp + 0x70]
lea r8d, [r9 + rax]
mov rdx, rbx
call fcn.1401fa0c8
xor r11d, r11d
lea r9d, [r11 + 1]
test eax, eax
jne 0x1401f8b16
mov r10, qword [rsp + 0x78]
movzx ecx, word [rbx + 0x3c]
mov rax, qword [rbx + 0x48]
mov qword [rax + rcx*8], r15
movzx edx, word [rbx + 0x3c]
mov rcx, qword [rsp + 0xa0]
add dx, r9w
mov rax, qword [rbx + 8]
mov word [rbx + 0x3c], dx
not rax
or rcx, qword [r15 + 0x28]
and rcx, rax
mov qword [rbx], rcx
test r9b, r12b
je 0x1401f8566
mov r8, qword [r15]
test dword [r8 + 4], 0x1000
je 0x1401f84a6
movzx ecx, dx
mov r14d, 0x2e
dec ecx
mov dword [rsp + 0x34], r14d
test ecx, ecx
jle 0x1401f84c5
mov rax, qword [rbx + 0x48]
mov edx, ecx
mov rcx, qword [rax]
test rcx, rcx
je 0x1401f849b
cmp qword [rcx], r8
cmove r14d, r11d
add rax, 8
sub rdx, r9
jne 0x1401f848c
jmp 0x1401f84c0
mov rax, qword [r8 + 0x20]
test rax, rax
je 0x1401f84c5
cmp dword [rax], r11d
je 0x1401f84c5
movsxd rcx, dword [rax]
call fcn.1401c8df8
movsx r14d, ax
mov dword [rsp + 0x34], r14d
test byte [rsi + 0x64], 0x80
je 0x1401f8545
movzx r10d, word [rsp + 0x38]
mov edx, 0xa
cmp r10w, dx
jl 0x1401f8545
mov rax, qword [rsi + 0x10]
movzx ecx, di
movzx r9d, word [rax + rcx*2]
cmp r14w, dx
jg 0x1401f84f4
movzx eax, r11w
jmp 0x1401f8506
movsx rcx, r14w
call fcn.1401c8df8
sub ax, 0x21
mov edx, 0xa
sub ax, r14w
sub ax, r10w
add ax, r9w
movzx r9d, word [rsp + 0x30]
add ax, dx
jns 0x1401f854b
mov eax, 2
cmp r9w, ax
jge 0x1401f8aca
mov rax, qword [rsp + 0x70]
test dword [rax + 0x60], 0x20000
jne 0x1401f8aca
bts dword [rbx + 0x38], 0x14
jmp 0x1401f854b
movzx r9d, word [rsp + 0x30]
or dword [rbx + 0x38], 4
mov edx, dword [rbx + 0x38]
mov r14, qword [rsp + 0x60]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
jmp 0x1401f8714
test r12b, 0x82
je 0x1401f860a
mov rax, qword [rsi + 8]
movzx ecx, di
movsx r8d, word [rax + rcx*2]
mov ecx, dword [rbx + 0x38]
or ecx, r9d
movzx r9d, word [rsp + 0x30]
mov dword [rbx + 0x38], ecx
cmp r8d, 0xffffffff
je 0x1401f85d7
mov edx, ecx
test r8d, r8d
js 0x1401f85e0
test r9w, r9w
jne 0x1401f85e0
movzx r8d, word [rsi + 0x5e]
mov ebp, 1
mov eax, r8d
movzx r10d, di
sub eax, ebp
cmp r10d, eax
jne 0x1401f85e0
test byte [rsi + 0x64], 8
jne 0x1401f85d7
cmp r8w, bp
jne 0x1401f85d1
cmp byte [rsi + 0x62], r11b
je 0x1401f85d1
lea eax, [rbp + 1]
cmp r12w, ax
je 0x1401f85d7
bts edx, 0x10
jmp 0x1401f85dd
mov edx, ecx
bts edx, 0xc
mov dword [rbx + 0x38], edx
mov ebp, 1
cmp byte [rsp + 0xd9], bpl
jbe 0x1401f85f6
bts edx, 0x15
mov dword [rbx + 0x38], edx
mov r14, qword [rsp + 0x60]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
jmp 0x1401f8719
bt r12w, 8
mov r14, qword [rsp + 0x60]
jae 0x1401f862f
mov edx, dword [rbx + 0x38]
mov rax, qword [rsp + 0x48]
or edx, 8
mov rcx, qword [rsp + 0x58]
mov dword [rbx + 0x38], edx
jmp 0x1401f870e
mov edx, dword [r10 + 0x44]
mov r8, rsi
movzx r9d, di
mov rcx, r14
mov qword [rsp + 0x20], r15
call fcn.1401fbad0
mov edx, dword [rbx + 0x38]
xor r11d, r11d
test r12b, 0x24
je 0x1401f86dd
or edx, 0x22
mov word [rbx + 0x1a], ax
mov eax, 0x100
mov dword [rbx + 0x38], edx
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x48], r11
test word [r15 + 0x12], ax
je 0x1401f86c8
movzx r8d, word [rbx + 0x3c]
lea rax, [r15 + 0x38]
mov rcx, qword [rsp + 0x70]
inc r8d
mov rdx, rbx
mov qword [rsp + 0x48], rax
call fcn.1401fa0c8
xor r11d, r11d
test eax, eax
jne 0x1401f8b10
movzx ecx, word [rbx + 0x3c]
lea ebp, [r11 + 1]
mov rax, qword [rbx + 0x48]
mov r8, qword [rsp + 0x48]
mov qword [rax + rcx*8], r8
lea eax, [rbp + 0xf]
add word [rbx + 0x3c], bp
or dword [rbx + 0x38], eax
mov edx, dword [rbx + 0x38]
mov word [rbx + 0x1c], bp
jmp 0x1401f86cd
mov ebp, 1
movzx r9d, word [rsp + 0x30]
mov rcx, r15
mov rax, qword [rsp + 0x48]
jmp 0x1401f8719
or edx, 0x12
mov word [rbx + 0x1c], ax
mov dword [rbx + 0x38], edx
mov rax, r15
mov qword [rsp + 0x48], rax
test dl, 0x20
je 0x1401f8706
mov rax, qword [rbx + 0x48]
movzx ecx, word [rbx + 0x3c]
mov rcx, qword [rax + rcx*8 - 0x10]
mov rax, r15
jmp 0x1401f8709
mov rcx, r11
mov qword [rsp + 0x58], rcx
movzx r9d, word [rsp + 0x30]
mov ebp, 1
test dl, 2
je 0x1401f8739
mov r8, rcx
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov r9, rax
mov rdx, r13
call fcn.1401fb370
jmp 0x1401f89b2
movzx eax, word [rbx + 0x18]
add ax, bp
movzx r14d, ax
mov word [rbx + 0x18], r14w
movzx edx, word [r15 + 0x10]
mov dword [rsp + 0x68], r14d
test dx, dx
jg 0x1401f8778
mov rax, qword [rsi + 8]
movzx ecx, di
cmp word [rax + rcx*2], r11w
jl 0x1401f8778
mov r14d, dword [rsp + 0x34]
sub dx, r14w
add word [rbx + 0x16], dx
jmp 0x1401f89b7
mov qword [rsp + 0x80], r11
mov rdi, r11
test r9w, r9w
jne 0x1401f8986
cmp dword [rsi + 0x68], r11d
je 0x1401f8986
cmp r14d, dword [rsi + 0x6c]
jg 0x1401f8986
test bpl, r12b
je 0x1401f87b6
mov rax, qword [r15]
test dword [rax + 4], 0x1000
jne 0x1401f8986
mov rax, qword [rsp + 0x70]
test dword [rax + 0x60], 0x800
jne 0x1401f8986
mov rax, qword [r15]
mov ecx, 0x182
test cx, r12w
je 0x1401f87fc
mov r8, qword [rax + 0x18]
lea r9, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
mov rdx, r13
call fcn.1401f73a8
mov rdi, qword [rsp + 0x80]
jmp 0x1401f88a2
mov r13, qword [rax + 0x20]
mov r11, qword [rsp + 0x90]
mov rax, qword [r11 + 0x10]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx + 0x10]
movzx ecx, word [rcx]
call fcn.1401c8f68
mov r12d, dword [r11 + 0x28]
lea r15, [r13 + 8]
xor ecx, ecx
mov r14, rax
mov eax, ecx
mov esi, ecx
mov ebp, ecx
cmp ebp, dword [r13]
jge 0x1401f8875
mov r8, qword [r15]
lea r9, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
mov rdx, r11
mov qword [rsp + 0x80], r14
call fcn.1401f73a8
mov r11, qword [rsp + 0x90]
inc ebp
add rsi, qword [rsp + 0x80]
add r15, 0x20
mov dword [r11 + 0x28], r12d
test eax, eax
je 0x1401f882f
jmp 0x1401f887f
cmp rsi, r14
mov rdi, rsi
cmova rdi, r14
mov rsi, qword [rsp + 0xa8]
mov r14d, dword [rsp + 0x68]
mov r15, qword [rsp + 0x98]
movzx r12d, word [rsp + 0x50]
mov r13, qword [rsp + 0x90]
xor r11d, r11d
cmp eax, 0xc
mov ebp, r11d
cmovne ebp, eax
test ebp, ebp
jne 0x1401f8b10
test rdi, rdi
je 0x1401f8981
lea edx, [rbp + 0x28]
movzx eax, dx
cmp rdi, 8
jae 0x1401f88e9
cmp rdi, 2
jae 0x1401f88da
movzx eax, r11w
lea ecx, [rbp + 0xa]
jmp 0x1401f8929
add ax, 0xfff6
add rdi, rdi
cmp rdi, 8
jb 0x1401f88da
jmp 0x1401f8913
mov ecx, 0xff
jmp 0x1401f88f7
add ax, dx
shr rdi, 4
cmp rdi, rcx
ja 0x1401f88f0
cmp rdi, 0xf
jbe 0x1401f8913
mov ecx, 0xa
add ax, cx
shr rdi, 1
cmp rdi, 0xf
ja 0x1401f8907
and edi, 7
lea rcx, [0x1403339a0]
add ax, word [rcx + rdi*2]
mov ecx, 0xa
sub ax, cx
mov ebp, 1
mov word [rbx + 0x16], ax
cmp r14w, bp
jne 0x1401f8963
movsx edx, ax
mov rax, qword [rsi + 0x10]
add edx, ecx
movsx ecx, word [rax]
cmp edx, ecx
jle 0x1401f8963
mov eax, 0x4000
or ax, word [r15 + 0x12]
bt ax, 0xd
mov word [r15 + 0x12], ax
jae 0x1401f8963
or byte [r13 + 0x2d], 4
movzx eax, word [rbx + 0x16]
cmp ax, word [rsp + 0x32]
mov r14d, dword [rsp + 0x34]
cmovg ax, word [rsp + 0x32]
sub ax, r14w
mov word [rbx + 0x16], ax
jmp 0x1401f89b7
mov ebp, 1
mov rax, qword [rsi + 0x10]
movzx ecx, r14w
movzx edx, word [rax + rcx*2]
sub dx, word [rax + rcx*2 - 2]
add dx, word [rbx + 0x16]
bt r12w, 8
mov word [rbx + 0x16], dx
movzx eax, dx
jae 0x1401f89b2
add ax, 0xa
mov word [rbx + 0x16], ax
mov r14d, dword [rsp + 0x34]
mov eax, dword [rsi + 0x64]
mov ecx, 3
movzx edi, word [rbx + 0x16]
and eax, ecx
mov r15, qword [rsp + 0x78]
lea r10d, [rcx + 0xd]
cmp al, cl
jne 0x1401f89d8
lea eax, [r10 + rdi]
jmp 0x1401f89f2
movsx eax, word [rsi + 0x5c]
mov rcx, qword [r15 + 0x20]
imul eax, eax, 0xf
movsx r8d, word [rcx + 0x3c]
cdq
idiv r8d
add ax, di
add ax, bp
movzx ecx, word [rsp + 0x38]
movzx edx, ax
call fcn.1401c8e58
test dword [rbx + 0x38], 0x4000140
movzx ecx, ax
jne 0x1401f8a17
lea edx, [r10 + rdi]
call fcn.1401c8e58
movzx ecx, ax
movzx r12d, word [rsp + 0x30]
lea eax, [r14 + rdi]
movzx r8d, word [rsp + 0x52]
add cx, r14w
add cx, r12w
add ax, r12w
mov word [rbx + 0x14], cx
mov rdx, rbx
mov word [rbx + 0x16], ax
mov rcx, qword [r13 + 8]
call fcn.1401f9f18
mov rdx, rbx
mov rcx, r13
call fcn.1401f9c84
mov ecx, dword [rbx + 0x38]
mov edx, 2
test dl, cl
mov ebp, eax
cmovne di, word [rsp + 0x32]
lea eax, [rdx + 0xe]
mov word [rbx + 0x16], di
test al, cl
jne 0x1401f8aaf
movzx ecx, word [rbx + 0x18]
cmp cx, word [rsi + 0x60]
jae 0x1401f8aaf
lea r8d, [rdx + 1]
cmp cx, word [rsi + 0x5e]
jb 0x1401f8a8d
mov eax, dword [rsi + 0x64]
and al, r8b
cmp al, dl
je 0x1401f8aaf
cmp cx, r8w
jbe 0x1401f8a9d
mov rcx, qword [rsp + 0x60]
call fcn.1401d0ba0
lea r9d, [r14 + r12]
mov r8, rsi
mov rdx, r15
mov rcx, r13
call fcn.1401f8188
movzx ecx, word [rsp + 0x32]
mov eax, dword [rsp + 0x88]
movzx edi, word [rsp + 0x3a]
mov word [rbx + 0x16], cx
mov dword [r13 + 0x28], eax
jmp 0x1401f8ad6
movzx r12d, r9w
jmp 0x1401f8ad6
movzx r12d, word [rsp + 0x30]
lea rcx, [rsp + 0xb0]
call fcn.1401fbd68
xor r11d, r11d
mov qword [rsp + 0x98], rax
mov r15, rax
mov ecx, 0x100
lea edx, [r11 + 2]
lea r9d, [r11 + 1]
lea r8d, [r11 + 3]
lea r10d, [r11 + 0x10]
test ebp, ebp
je 0x1401f82ec
jmp 0x1401f8b1c
mov r9d, 1
movzx r12d, word [rsp + 0x30]
mov rax, qword [rsp + 0xa0]
movzx r14d, word [rsp + 0x3a]
movzx r15d, word [rsp + 0x32]
movzx r8d, word [rsp + 0x40]
mov ecx, dword [rsp + 0x54]
mov qword [rbx], rax
movzx eax, word [rsp + 0x3c]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x3e]
mov word [rbx + 0x1c], ax
movzx eax, word [rsp + 0x42]
mov word [rbx + 0x18], r14w
mov word [rbx + 0x3e], ax
mov dword [rbx + 0x38], ecx
mov word [rbx + 0x16], r15w
mov word [rbx + 0x3c], r8w
cmp r14w, ax
jne 0x1401f8c3f
movzx ecx, word [rsi + 0x5e]
lea eax, [r9 + r14]
cmp eax, ecx
jae 0x1401f8c3f
cmp r14w, r8w
jne 0x1401f8c3f
test byte [rsi + 0x64], 0x40
jne 0x1401f8c3f
test byte [rsi + 0x64], 0x80
je 0x1401f8c3f
mov rcx, qword [rsp + 0x70]
test dword [rcx + 0x60], 0x4000
jne 0x1401f8c3f
mov rax, qword [rsi + 0x10]
cmp word [rax + r14*2 + 2], 0x2a
jl 0x1401f8c3f
add r8d, r9d
mov rdx, rbx
call fcn.1401fa0c8
xor edx, edx
mov ebp, eax
test eax, eax
jne 0x1401f8c3f
movzx ecx, word [rbx + 0x3c]
lea r8d, [rax + 1]
add word [rbx + 0x18], r8w
add word [rbx + 0x3e], r8w
mov rax, qword [rbx + 0x48]
mov qword [rax + rcx*8], rdx
mov rcx, r13
add word [rbx + 0x3c], r8w
mov r8, rsi
bts dword [rbx + 0x38], 0xf
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsp + 0x78]
movzx r9d, word [rax + r14*2]
sub r9w, word [rax + r14*2 + 2]
sub word [rbx + 0x16], r9w
add r9w, 5
add r9w, r12w
call fcn.1401f8188
movzx eax, word [rsp + 0x42]
mov word [rbx + 0x3e], ax
mov eax, dword [rsp + 0x54]
mov dword [rbx + 0x38], eax
mov word [rbx + 0x16], r15w
mov word [rbx + 0x18], r14w
mov eax, ebp
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140255330
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret