Function at 0x140163550
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 esi, word [rsp + 0x140]
xor ebx, ebx
mov qword [rsp + 0x60], rbx
movzx r10d, r9w
mov r8, rdx
mov r9, rcx
mov r12d, ebx
mov r15d, ebx
test si, si
je 0x1401635b1
mov rax, qword [rcx]
mov r10, qword [rax]
test byte [r10 + 0x5c], 0x40
jne 0x140163e1c
movzx r10d, word [r11 + 0x20]
movzx eax, word [rdx]
mov word [rsp + 0x6a], ax
cmp ax, 0x3f
ja 0x140163e1c
movzx r14d, ax
mov r11d, ebx
mov ecx, r14d
mov dword [rsp + 0x38], r14d
mov edi, 1
mov qword [rsp + 0x98], rbx
shl rdi, cl
mov eax, 0x800
dec rdi
mov qword [rsp + 0x70], rbx
movzx ebp, r10w
mov qword [rsp + 0x88], rdi
and bp, ax
mov dword [rsp + 0x50], ebx
mov r13b, 1
mov word [rsp + 0x40], bp
setne r11b
mov dword [rsp + 0x30], r13d
add r11w, 0x182
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x3c], r11d
mov rdx, rbx
mov ecx, ebx
nop dword [rax + rax]
cmp r15, rdi
jae 0x140163de0
movzx eax, si
cmp ecx, eax
jg 0x140163ddd
test ecx, ecx
jle 0x140163652
or rdx, qword [r12 + 8]
mov qword [rsp + 0x70], rdx
cmp ecx, eax
jge 0x140163676
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x18]
mov r12, qword [rax + rbx*8]
mov qword [rsp + 0x58], r12
test bp, bp
jne 0x140163dac
jmp 0x140163683
mov r12, qword [rsp + 0x148]
mov qword [rsp + 0x58], r12
mov edx, dword [r12 + 0x28]
bt edx, 0xa
jb 0x140163dcd
movzx eax, r10w
mov ecx, 0x80
and ax, cx
mov word [rsp + 0x68], ax
je 0x1401636ad
xor eax, eax
mov word [r12 + 0x1e], ax
movzx eax, byte [r12 + 0x10]
imul rcx, rax, 0x70
mov rax, qword [r9 + 8]
xor r9d, r9d
mov esi, r9d
mov r10d, dword [rcx + rax + 0x4c]
mov dword [rsp + 0x44], r10d
test r14d, r14d
je 0x140163802
mov r13, qword [rsp + 0x120]
lea rdi, [r8 + 8]
mov ebp, r9d
mov eax, esi
bt r15, rax
jb 0x1401637d9
mov rbx, qword [rdi]
test rbx, rbx
je 0x140163723
nop word [rax + rax]
mov eax, dword [rbx + 4]
test eax, 0x41000
je 0x140163723
bt eax, 0x12
jae 0x14016371a
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
jmp 0x14016371e
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140163700
cmp byte [rbx], 0xa2
jne 0x1401637d9
cmp dword [rbx + 0x2c], r10d
jne 0x1401637d9
mov r9, qword [rsp + 0x70]
lea rcx, [r13 + 0x68]
movsx r8d, word [rbx + 0x30]
not r9
movzx eax, r11w
mov edx, r10d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call fcn.140152730
mov r8, rax
test rax, rax
je 0x1401637cc
movzx r10d, word [rax + 0x14]
cmp r10w, 1
jne 0x1401637a8
movzx edx, word [r12 + 0x2c]
xor r9d, r9d
mov ecx, r9d
test edx, edx
je 0x1401637a4
mov r9, qword [r12 + 0x38]
nop dword [rax]
movsxd rax, ecx
cmp r8, qword [r9 + rax*8]
je 0x1401637a1
inc ecx
cmp ecx, edx
jl 0x140163790
jmp 0x1401637cc
xor r9d, r9d
cmp ecx, edx
jge 0x1401637cf
test r10b, 0x82
je 0x1401637c8
cmp word [rbx + 0x30], 0
jl 0x1401637c8
mov r8, qword [r8]
mov rdx, qword [rdi]
mov rcx, qword [r13]
call fcn.14011fd40
test eax, eax
je 0x1401637cc
bts r15, rbp
xor r9d, r9d
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x3c]
inc esi
inc rbp
add rdi, 0x28
cmp esi, r14d
jl 0x1401636e3
mov r13d, dword [rsp + 0x30]
mov edx, dword [r12 + 0x28]
mov r8, qword [rsp + 0x128]
mov qword [rsp + 0x60], r15
bt edx, 0xc
jb 0x140163c7f
bt edx, 8
jae 0x14016382b
mov esi, dword [rsp + 0x30]
mov r11, r9
mov qword [rsp + 0x78], r9
mov eax, 1
mov word [rsp + 0x4c], r9w
jmp 0x140163871
mov r11, qword [r12 + 0x20]
mov qword [rsp + 0x78], r11
test r11, r11
je 0x140163e1c
test byte [r11 + 0x64], 4
jne 0x140163e1c
cmp byte [r11 + 0x62], 0
movzx eax, word [r11 + 0x5e]
mov word [rsp + 0x4c], ax
movzx eax, word [r11 + 0x60]
je 0x14016386a
bt edx, 0xf
jb 0x14016386a
mov sil, 1
jmp 0x14016386d
xor sil, sil
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 + 0x48], edi
mov dword [rsp + 0x80], eax
test eax, eax
je 0x140163c7a
nop word [rax + rax]
movzx r10d, word [r12 + 0x18]
mov bl, 1
cmp r13d, r10d
jge 0x14016391d
movzx eax, word [r12 + 0x2e]
cmp r13d, eax
jl 0x14016391d
mov r9, qword [r12 + 0x38]
movsxd rax, r13d
mov rcx, qword [r9 + rax*8]
movzx eax, word [rcx + 0x14]
test word [rsp + 0x3c], ax
je 0x1401638f3
mov ecx, 0x180
mov r9d, 0
test cx, ax
movzx eax, sil
mov ecx, r9d
cmove ecx, eax
movzx esi, cl
mov dword [rsp + 0x30], esi
jmp 0x140163c40
test al, 1
je 0x14016391a
mov r8, qword [rcx]
lea edx, [r13 + 1]
cmp edx, r10d
jge 0x14016391a
movsxd rax, edx
mov rcx, qword [r9 + rax*8]
cmp qword [rcx], r8
je 0x140163918
inc edx
cmp edx, r10d
jl 0x140163903
jmp 0x14016391a
xor bl, bl
xor r9d, r9d
test r11, r11
je 0x14016394a
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]
and r12b, 1
movsx ecx, word [rax + 0x44]
cmp r15d, ecx
jne 0x140163953
jmp 0x14016394d
xor r12b, r12b
mov r15d, 0xffffffff
test sil, sil
je 0x140163982
test r15d, r15d
js 0x140163982
cmp r13d, r10d
jl 0x140163982
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 0x140163b33
nop dword [rax]
cmp ebp, r14d
jge 0x140163b2f
mov rcx, qword [rsp + 0x60]
mov eax, ebp
bt rcx, rax
jb 0x140163b25
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 0x1401639f3
nop dword [rax]
mov eax, dword [rdx + 4]
test eax, 0x41000
je 0x1401639f3
bt eax, 0x12
jae 0x1401639ea
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx + 8]
jmp 0x1401639ee
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1401639d0
test byte [rsp + 0x138], 0xc0
mov ecx, r9d
movzx eax, bl
cmovne ecx, eax
movzx ebx, cl
movzx edi, cl
cmp r15d, 0xffffffff
jl 0x140163a38
cmp byte [rdx], 0xa2
jne 0x140163b20
mov eax, dword [rsp + 0x44]
cmp dword [rdx + 0x2c], eax
jne 0x140163b20
movsx eax, word [rdx + 0x30]
cmp eax, r15d
jne 0x140163b20
jmp 0x140163ab8
movsxd rax, r13d
lea rcx, [rax + rax*4]
mov rax, qword [r11 + 0x50]
mov r8, qword [rax + rcx*8 + 8]
test r8, r8
je 0x140163a74
nop dword [rax]
mov eax, dword [r8 + 4]
test eax, 0x41000
je 0x140163a74
bt eax, 0x12
jae 0x140163a6b
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
jmp 0x140163a6f
mov r8, qword [r8 + 0x10]
test r8, r8
jne 0x140163a50
test rdx, rdx
je 0x140163aa3
nop dword [rax]
mov eax, dword [rdx + 4]
test eax, 0x41000
je 0x140163aa3
bt eax, 0x12
jae 0x140163a9a
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
jmp 0x140163a9e
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x140163a80
mov r9d, dword [rsp + 0x44]
xor ecx, ecx
call fcn.14011fdd0
mov r11, qword [rsp + 0x78]
test eax, eax
jne 0x140163b1d
cmp r15d, 0xffffffff
je 0x140163b73
mov rax, qword [rsp + 0x120]
mov rdx, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.14011fb80
test rax, rax
jne 0x140163ae4
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax]
lea r14, [0x140219b60]
mov r11, qword [rsp + 0x78]
movsxd rcx, r13d
mov rax, qword [r11 + 0x40]
mov r9, qword [rax + rcx*8]
sub r9, rdx
movzx ecx, byte [rdx]
movzx r8d, byte [rdx + r9]
cmp ecx, r8d
jne 0x140163b60
test ecx, ecx
jne 0x140163b6e
movsxd r14, ebp
movzx ebx, dil
test ecx, ecx
je 0x140163b73
xor r9d, r9d
mov r14d, dword [rsp + 0x38]
inc ebp
test bl, bl
jne 0x140163990
mov edi, dword [rsp + 0x48]
mov r8, qword [rsp + 0x128]
mov r12, qword [rsp + 0x58]
test r13d, r13d
je 0x140163b53
movzx eax, word [rsp + 0x4c]
cmp r13d, eax
jge 0x140163c51
xor r13b, r13b
mov dword [rsp + 0x30], r13d
jmp 0x140163c56
movzx ecx, byte [rcx + r14]
movzx eax, byte [r8 + r14]
sub ecx, eax
jne 0x140163b12
inc rdx
jmp 0x140163b01
cmp word [rsp + 0x68], 0
je 0x140163b88
mov rcx, qword [rsp + 0x58]
lea eax, [r13 + 1]
mov word [rcx + 0x1e], ax
test byte [rsp + 0x138], 0x40
mov r8, qword [rsp + 0x128]
jne 0x140163be9
lea rax, [r14 + r14*4]
movzx ecx, byte [r8 + rax*8 + 0x20]
and cl, 1
cmp byte [rsp + 0x35], 0
je 0x140163bc1
xor r12b, byte [rsp + 0x34]
cmp r12b, cl
je 0x140163be9
mov edi, dword [rsp + 0x48]
jmp 0x140163b3b
movzx edx, cl
xor dl, r12b
mov byte [rsp + 0x34], dl
je 0x140163be4
mov rdx, qword [rsp + 0x150]
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rdx]
bts rcx, rax
mov qword [rdx], rcx
mov byte [rsp + 0x35], 1
mov r12, qword [rsp + 0x58]
lea rax, [r14 + r14*4]
test byte [r8 + rax*8 + 0x20], 2
je 0x140163c0e
movzx eax, word [r12 + 0x18]
cmp r13d, eax
jne 0x140163c6a
or dword [r12 + 0x28], 0x80000
mov edi, dword [rsp + 0x48]
cmp r15d, 0xffffffff
mov esi, dword [rsp + 0x30]
mov eax, 1
movzx edi, dil
cmove edi, eax
mov rax, qword [rsp + 0x60]
bts rax, r14
mov dword [rsp + 0x48], edi
mov r14d, dword [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x60], rax
inc r13d
cmp r13d, dword [rsp + 0x80]
jl 0x1401638a0
mov r13d, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x38]
test dil, dil
je 0x140163c73
mov r13b, 1
mov dword [rsp + 0x30], r13d
jmp 0x140163c88
mov edi, dword [rsp + 0x48]
jmp 0x140163b40
mov r15, qword [rsp + 0x60]
jmp 0x140163c7f
mov r13d, dword [rsp + 0x30]
test r13b, r13b
je 0x140163d78
mov rbp, qword [rsp + 0x98]
xor ecx, ecx
or rbp, qword [r12 + 8]
mov edi, ecx
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x98], rbp
test r14d, r14d
je 0x140163d78
mov r13, qword [rsp + 0x120]
lea r12, [fcn.1400f4e90]
nop
mov eax, edi
bt r15, rax
jb 0x140163d56
movsxd r14, edi
lea rax, [r14 + r14*4]
mov rbx, qword [r8 + rax*8 + 8]
test rbx, rbx
je 0x140163cf3
lea rcx, [r13 + 0x290]
mov rdx, rbx
call fcn.1401525e0
mov rsi, rax
xor ecx, ecx
jmp 0x140163cf6
mov rsi, rcx
test rsi, rsi
jne 0x140163d40
mov byte [rsp + 0xc4], 1
lea rax, [0x14013a800]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xa8], r12
mov dword [rsp + 0xc8], ecx
test rbx, rbx
je 0x140163d40
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call fcn.140160470
cmp byte [rsp + 0xc4], sil
je 0x140163d4f
mov rax, rbp
not rax
test rsi, rax
jne 0x140163d4f
bts r15, r14
mov r14d, dword [rsp + 0x38]
xor ecx, ecx
mov r8, qword [rsp + 0x128]
inc edi
cmp edi, r14d
jl 0x140163cc0
mov r12, qword [rsp + 0x58]
mov r13d, dword [rsp + 0x30]
mov qword [rsp + 0x60], r15
mov r9, qword [rsp + 0x120]
movzx r10d, word [rsp + 0x138]
mov ecx, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x88]
movzx esi, word [rsp + 0x140]
movzx ebp, word [rsp + 0x40]
inc qword [rsp + 0x90]
inc ecx
mov rbx, qword [rsp + 0x90]
mov dword [rsp + 0x50], ecx
test r13b, r13b
jne 0x140163630
jmp 0x140163ddd
cmp byte [r12 + 0x1d], 0
mov rcx, rdi
cmove rcx, r15
mov r15, rcx
cmp r15, rdi
jne 0x140163de9
movzx eax, byte [rsp + 0x6a]
jmp 0x140163e1e
test r13b, r13b
jne 0x140163e37
lea ecx, [r14 - 1]
test ecx, ecx
jle 0x140163e1c
nop word [rax + rax]
mov edx, 1
shl rdx, cl
dec rdx
mov rax, rdx
and rax, r15
cmp rax, rdx
je 0x140163e32
dec ecx
test ecx, ecx
jg 0x140163e00
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 0x140163e1e
mov al, 0xff
jmp 0x140163e1e