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

Disassembly:
mov r11, rsp
mov word [r11 + 0x20], r9w
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd8
movzx edi, word [rsp + 0x140]
xor eax, eax
mov qword [rsp + 0x48], rax
movzx r10d, r9w
mov r9, rdx
mov r8, rcx
mov r15d, eax
mov r14d, eax
test di, di
je 0x140159cf1
mov rax, qword [rcx]
mov r10, qword [rax]
test byte [r10 + 0x5c], 0x40
jne 0x14015a4dc
movzx r10d, word [r11 + 0x20]
movzx ebp, word [rdx]
mov word [rsp + 0x60], bp
cmp bp, 0x3f
ja 0x14015a4dc
movzx r13d, bp
movzx esi, r10w
xor ebp, ebp
mov dword [rsp + 0x5c], r13d
mov r11d, ebp
mov qword [rsp + 0x88], rbp
mov ecx, r13d
mov qword [rsp + 0x98], rbp
mov ebx, 1
mov eax, 0x800
shl rbx, cl
mov r12b, 1
dec rbx
mov dword [rsp + 0x30], r12d
and si, ax
mov qword [rsp + 0x90], rbx
mov edx, ebp
mov word [rsp + 0x3c], si
setne r11b
mov qword [rsp + 0x70], rdx
add r11w, 0x182
mov ecx, ebp
mov dword [rsp + 0x38], r11d
mov r10d, ebp
mov dword [rsp + 0x58], ecx
nop
cmp r14, rbx
jae 0x14015a4a7
movzx eax, di
cmp ecx, eax
jg 0x14015a4a4
test ecx, ecx
jle 0x140159d91
or rdx, qword [r15 + 8]
mov qword [rsp + 0x70], rdx
cmp ecx, eax
jge 0x140159db5
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x18]
mov r15, qword [rax + r10*8]
mov qword [rsp + 0x68], r15
test si, si
jne 0x14015a46f
jmp 0x140159dc2
mov r15, qword [rsp + 0x148]
mov qword [rsp + 0x68], r15
mov edx, dword [r15 + 0x28]
bt edx, 0xa
jb 0x14015a495
movzx eax, byte [r15 + 0x10]
mov esi, ebp
imul rcx, rax, 0x70
mov word [r15 + 0x1e], bp
mov rax, qword [r8 + 8]
mov r10d, dword [rcx + rax + 0x4c]
mov dword [rsp + 0x40], r10d
test r13d, r13d
je 0x140159f0a
mov r12, qword [rsp + 0x120]
lea rdi, [r9 + 8]
xor edx, edx
mov ebp, edx
nop word [rax + rax]
mov eax, esi
bt r14, rax
jb 0x140159eea
mov rbx, qword [rdi]
test rbx, rbx
je 0x140159e46
mov eax, dword [rbx + 4]
bt eax, 0xc
jae 0x140159e46
bt eax, 0x12
jae 0x140159e3d
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
jmp 0x140159e41
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140159e24
cmp byte [rbx], 0xa2
jne 0x140159eea
cmp dword [rbx + 0x2c], r10d
jne 0x140159eea
mov r9, qword [rsp + 0x70]
lea rcx, [r12 + 0x68]
movsx r8d, word [rbx + 0x30]
not r9
mov qword [rsp + 0x28], rdx
mov edx, r10d
movzx eax, r11w
mov dword [rsp + 0x20], eax
call fcn.1401492c0
mov r8, rax
test rax, rax
je 0x140159ede
movzx r10d, word [rax + 0x14]
cmp r10w, 1
jne 0x140159eba
movzx edx, word [r15 + 0x2c]
xor eax, eax
mov ecx, eax
test edx, edx
je 0x140159eb6
mov r9, qword [r15 + 0x38]
movsxd rax, ecx
cmp r8, qword [r9 + rax*8]
je 0x140159eb6
inc ecx
cmp ecx, edx
jl 0x140159ea5
jmp 0x140159ede
cmp ecx, edx
jge 0x140159ede
test r10b, 0x82
je 0x140159eda
cmp word [rbx + 0x30], 0
jl 0x140159eda
mov r8, qword [r8]
mov rdx, qword [rdi]
mov rcx, qword [r12]
call fcn.140116890
test eax, eax
je 0x140159ede
bts r14, rbp
mov r10d, dword [rsp + 0x40]
xor edx, edx
mov r11d, dword [rsp + 0x38]
inc esi
inc rbp
add rdi, 0x28
cmp esi, r13d
jl 0x140159e10
mov r12d, dword [rsp + 0x30]
mov edx, dword [r15 + 0x28]
mov qword [rsp + 0x48], r14
bt edx, 0xc
jb 0x14015a343
mov ebp, 0x100
test ebp, edx
je 0x140159f38
mov esi, dword [rsp + 0x30]
xor r9d, r9d
mov r11d, r9d
mov qword [rsp + 0x78], r9
mov word [rsp + 0x50], r9w
lea eax, [r9 + 1]
jmp 0x140159f74
mov r11, qword [r15 + 0x20]
mov qword [rsp + 0x78], r11
test r11, r11
je 0x14015a4dc
test byte [r11 + 0x64], 4
jne 0x14015a4dc
cmp byte [r11 + 0x62], 0
movzx eax, word [r11 + 0x5e]
setne sil
mov word [rsp + 0x50], ax
movzx eax, word [r11 + 0x60]
xor r9d, r9d
mov dword [rsp + 0x30], esi
xor cl, cl
movzx eax, ax
xor dil, dil
mov byte [rsp + 0x35], cl
mov byte [rsp + 0x34], cl
mov r13d, r9d
mov dword [rsp + 0x54], edi
mov dword [rsp + 0x80], eax
test eax, eax
je 0x14015a339
nop word [rax + rax]
movzx r8d, word [r15 + 0x18]
mov bl, 1
cmp r13d, r8d
jge 0x14015a01a
movzx eax, word [r15 + 0x2e]
cmp r13d, eax
jl 0x14015a01a
mov r9, qword [r15 + 0x38]
movsxd rax, r13d
mov r10, qword [r9 + rax*8]
movzx eax, word [r10 + 0x14]
test word [rsp + 0x38], ax
je 0x140159fec
test bp, ax
mov r9d, 0
movzx eax, sil
mov ecx, r9d
cmove ecx, eax
movzx esi, cl
mov dword [rsp + 0x30], esi
jmp 0x14015a30a
test al, 1
je 0x14015a017
mov r10, qword [r10]
lea edx, [r13 + 1]
cmp edx, r8d
jge 0x14015a017
nop dword [rax]
movsxd rax, edx
mov rcx, qword [r9 + rax*8]
cmp qword [rcx], r10
je 0x14015a015
inc edx
cmp edx, r8d
jl 0x14015a000
jmp 0x14015a017
xor bl, bl
xor r9d, r9d
test r11, r11
je 0x14015a043
mov rax, qword [r11 + 8]
movsxd rcx, r13d
movsx r15d, word [rax + rcx*2]
mov rax, qword [r11 + 0x38]
movzx r12d, byte [rcx + rax]
mov rax, qword [r11 + 0x18]
movsx ecx, word [rax + 0x44]
cmp r15d, ecx
jne 0x14015a04c
jmp 0x14015a046
xor r12b, r12b
mov r15d, 0xffffffff
test sil, sil
je 0x14015a07b
test r15d, r15d
js 0x14015a07b
cmp r13d, r8d
jl 0x14015a07b
mov rax, qword [r11 + 0x18]
movzx esi, sil
mov rcx, qword [rax + 8]
movsxd rax, r15d
shl rax, 5
cmp byte [rax + rcx + 0x18], 0
cmove esi, r9d
mov dword [rsp + 0x30], esi
mov ebp, r9d
test bl, bl
je 0x14015a24d
cmp ebp, dword [rsp + 0x5c]
jge 0x14015a249
mov eax, ebp
bt r14, rax
jb 0x14015a23f
mov rcx, qword [rsp + 0x128]
movsxd r14, ebp
lea rsi, [r14*4 + 1]
add rsi, r14
mov rdx, qword [rcx + rsi*8]
lea rsi, [rcx + rsi*8]
test rdx, rdx
je 0x14015a0e2
nop
mov eax, dword [rdx + 4]
bt eax, 0xc
jae 0x14015a0e2
bt eax, 0x12
jae 0x14015a0d9
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx + 8]
jmp 0x14015a0dd
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x14015a0c0
test byte [rsp + 0x138], 0xc0
mov ecx, r9d
movzx eax, bl
cmovne ecx, eax
movzx ebx, cl
movzx edi, cl
cmp r15d, 0xffffffff
jl 0x14015a127
cmp byte [rdx], 0xa2
jne 0x14015a23a
mov eax, dword [rsp + 0x40]
cmp dword [rdx + 0x2c], eax
jne 0x14015a23a
movsx eax, word [rdx + 0x30]
cmp eax, r15d
jne 0x14015a23a
jmp 0x14015a1ab
movsxd rax, r13d
lea rcx, [rax + rax*4]
mov rax, qword [r11 + 0x50]
mov r8, qword [rax + rcx*8 + 8]
test r8, r8
je 0x14015a163
nop dword [rax]
mov eax, dword [r8 + 4]
bt eax, 0xc
jae 0x14015a163
bt eax, 0x12
jae 0x14015a15a
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
jmp 0x14015a15e
mov r8, qword [r8 + 0x10]
test r8, r8
jne 0x14015a140
test rdx, rdx
je 0x14015a192
nop dword [rax + rax]
mov eax, dword [rdx + 4]
bt eax, 0xc
jae 0x14015a192
bt eax, 0x12
jae 0x14015a189
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
jmp 0x14015a18d
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x14015a170
mov r9d, dword [rsp + 0x40]
xor ecx, ecx
call fcn.140116930
mov r11, qword [rsp + 0x78]
test eax, eax
jne 0x14015a237
cmp r15d, 0xffffffff
je 0x14015a26d
mov rax, qword [rsp + 0x120]
mov rdx, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1401166d0
test rax, rax
jne 0x14015a1d7
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov r8, qword [rax]
lea r10, [0x14020f9a0]
mov r11, qword [rsp + 0x78]
movsxd rcx, r13d
movzx edx, byte [r8]
mov rax, qword [r11 + 0x40]
mov r9, qword [rax + rcx*8]
movzx eax, byte [r9]
movzx ecx, byte [rax + r10]
movzx eax, byte [rdx + r10]
sub eax, ecx
jne 0x14015a22f
sub r9, r8
nop word [rax + rax]
test dl, dl
je 0x14015a22f
movzx eax, byte [r9 + r8 + 1]
inc r8
movzx ecx, byte [rax + r10]
movzx edx, byte [r8]
movzx eax, byte [rdx + r10]
sub eax, ecx
je 0x14015a210
movzx ebx, dil
test eax, eax
je 0x14015a26d
xor r9d, r9d
mov r14, qword [rsp + 0x48]
inc ebp
test bl, bl
jne 0x14015a086
mov edi, dword [rsp + 0x54]
test r13d, r13d
je 0x14015a260
movzx eax, word [rsp + 0x50]
cmp r13d, eax
jge 0x14015a31b
xor r12b, r12b
mov dword [rsp + 0x30], r12d
jmp 0x14015a320
test byte [rsp + 0x138], 0x40
lea eax, [r13 + 1]
mov rcx, qword [rsp + 0x68]
mov word [rcx + 0x1e], ax
jne 0x14015a2d0
cmp byte [rsp + 0x35], 0
lea rax, [r14 + r14*4]
mov rcx, qword [rsp + 0x128]
movzx ecx, byte [rcx + rax*8 + 0x20]
je 0x14015a2a8
xor r12b, byte [rsp + 0x34]
cmp r12b, cl
jne 0x14015a249
jmp 0x14015a2d0
movzx edx, cl
xor dl, r12b
mov byte [rsp + 0x34], dl
je 0x14015a2cb
mov rdx, qword [rsp + 0x150]
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rdx]
bts rcx, rax
mov qword [rdx], rcx
mov byte [rsp + 0x35], 1
mov edi, dword [rsp + 0x54]
cmp r15d, 0xffffffff
mov r14, qword [rsp + 0x48]
mov eax, 1
mov r15, qword [rsp + 0x68]
mov esi, dword [rsp + 0x30]
movzx edi, dil
cmove edi, eax
movsxd rax, ebp
bts r14, rax
mov dword [rsp + 0x54], edi
mov qword [rsp + 0x48], r14
xor r9d, r9d
mov ebp, 0x100
inc r13d
cmp r13d, dword [rsp + 0x80]
jl 0x140159fa0
mov r12d, dword [rsp + 0x30]
mov r15, qword [rsp + 0x68]
mov r13d, dword [rsp + 0x5c]
test dil, dil
je 0x14015a343
mov r12b, 1
mov dword [rsp + 0x30], r12d
jmp 0x14015a34c
mov r13d, dword [rsp + 0x5c]
mov r12d, dword [rsp + 0x30]
test r12b, r12b
je 0x14015a43a
mov rax, qword [rsp + 0x88]
xor ecx, ecx
or rax, qword [r15 + 8]
mov edi, ecx
mov qword [rsp + 0x88], rax
test r13d, r13d
je 0x14015a43a
mov rbp, qword [rsp + 0x48]
mov r12, qword [rsp + 0x120]
mov r15, qword [rsp + 0x128]
mov eax, edi
bt rbp, rax
jb 0x14015a420
movsxd r14, edi
lea rax, [r14 + r14*4]
mov rbx, qword [r15 + rax*8 + 8]
test rbx, rbx
je 0x14015a3b6
lea rcx, [r12 + 0x290]
mov rdx, rbx
call fcn.140149170
mov rsi, rax
xor ecx, ecx
jmp 0x14015a3b9
mov rsi, rcx
test rsi, rsi
jne 0x14015a40a
mov byte [rsp + 0xc4], 1
lea rax, [fcn.1400ebeb0]
mov qword [rsp + 0xa8], rax
lea rax, [0x140131550]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xc8], ecx
test rbx, rbx
je 0x14015a40a
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call fcn.140156bf0
cmp byte [rsp + 0xc4], sil
je 0x14015a41e
mov rax, qword [rsp + 0x88]
not rax
test rsi, rax
jne 0x14015a41e
bts rbp, r14
xor ecx, ecx
inc edi
cmp edi, r13d
jl 0x14015a382
mov r15, qword [rsp + 0x68]
mov r12d, dword [rsp + 0x30]
mov qword [rsp + 0x48], rbp
mov r8, qword [rsp + 0x120]
xor ebp, ebp
mov r9, qword [rsp + 0x128]
mov ecx, dword [rsp + 0x58]
mov r11d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x90]
movzx edi, word [rsp + 0x140]
movzx esi, word [rsp + 0x3c]
inc qword [rsp + 0x98]
inc ecx
mov r14, qword [rsp + 0x48]
mov r10, qword [rsp + 0x98]
mov dword [rsp + 0x58], ecx
test r12b, r12b
jne 0x140159d70
jmp 0x14015a4a4
cmp byte [r15 + 0x1d], 0
mov rcx, rbx
cmove rcx, r14
mov r14, rcx
cmp r14, rbx
jne 0x14015a4b0
movzx eax, byte [rsp + 0x60]
jmp 0x14015a4de
test r12b, r12b
jne 0x14015a4f7
lea ecx, [r13 - 1]
test ecx, ecx
jle 0x14015a4dc
nop dword [rax]
mov edx, 1
shl rdx, cl
dec rdx
mov rax, rdx
and rax, r14
cmp rax, rdx
je 0x14015a4f2
dec ecx
test ecx, ecx
jg 0x14015a4c0
xor al, al
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx eax, cl
jmp 0x14015a4de
mov al, 0xff
jmp 0x14015a4de