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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1a8
mov dword [rsp + 0xd8], r9d
mov eax, dword [rsp + 0xd8]
mov r14, rcx
mov rsi, r8
mov qword [rsp + 0x1f8], rdx
mov word [rsp + 0xb0], ax
mov rax, qword [rcx]
mov rax, qword [rax]
cmp dword [rax + 0x30], 0
mov qword [rsp + 0x40], rax
je 0x140161e61
mov ebp, dword [rax + 0x18]
jmp 0x14016309d
mov rbx, qword [rcx + 0x10]
mov eax, dword [rbx + 0x38]
mov dword [rsp + 0x9c], eax
and eax, 0x20
cmp eax, 1
sbb eax, eax
and eax, 0x1a7
add eax, 0x18
test word [r8 + 0x64], 0x104
je 0x140161ea8
test byte [r8 + 0x64], 4
je 0x140161e92
and eax, 0xffffffc3
test byte [rsi + 0x65], 1
je 0x140161ea8
mov rdi, qword [rsp + 0x1f8]
test byte [rdi + 0x40], 2
jne 0x140161ea8
and al, 0x7c
mov rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x130]
xor ebp, ebp
mov rdx, qword [r14 + 8]
mov rdi, qword [rdi]
mov qword [rsp + 0x70], rdi
mov edi, dword [rbx + 0x18]
mov word [rsp + 0x82], di
mov di, word [rbx + 0x1a]
mov word [rsp + 0xde], di
mov edi, dword [rbx + 0x1c]
mov word [rsp + 0xe0], di
mov rdi, qword [rbx + 0x16]
mov qword [rsp + 0xf0], rdi
mov di, word [rbx + 0x3e]
mov word [rsp + 0xe2], di
mov rdi, qword [rbx + 0x38]
mov qword [rsp + 0xe8], rdi
mov edi, dword [rbx + 0x3c]
mov word [rsp + 0x98], di
mov rdi, qword [rbx]
mov qword [rsp + 0xb8], rdi
mov di, word [rbx + 0x16]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0x28], rsi
mov word [rsp + 0x9a], di
movzx edi, word [rsp + 0x82]
mov r8d, dword [rax + 0x44]
mov r9d, edi
mov dword [rsp + 0x84], edi
call fcn.140165930
mov word [rbx + 0x12], 0
xor r8d, r8d
mov rdi, rax
mov rax, qword [rsi + 0x10]
movsx eax, word [rax]
mov ecx, eax
mov dword [rsp + 0xb4], eax
call fcn.1400c2bd0
mov qword [rsp + 0x50], r8
mov word [rsp + 0xb2], ax
movzx eax, word [rsp + 0x82]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0xa0], rax
add rax, rax
mov qword [rsp + 0x68], rax
movzx eax, word [rsp + 0x98]
inc eax
mov dword [rsp + 0x108], eax
movsx eax, word [rsp + 0xb2]
mov dword [rsp + 0x10c], eax
test ebp, ebp
jne 0x140162f13
test rdi, rdi
je 0x140162f13
mov eax, dword [rdi + 0x14]
cmp ax, 0x100
mov word [rsp + 0x5c], ax
je 0x140161fe7
test byte [rdi + 0x12], 0x80
je 0x140162014
mov rax, qword [rsi + 8]
mov rcx, qword [rsp + 0x68]
movsx rdx, word [rax + rcx]
test edx, edx
mov rax, rdx
js 0x140162010
mov rdx, qword [rsi + 0x18]
imul rax, rax, 0x18
add rax, qword [rdx + 8]
test byte [rax + 8], 0xf
je 0x140162014
jmp 0x140162023
inc edx
je 0x140162023
mov rax, qword [rdi + 0x28]
and rax, qword [rbx + 8]
mov qword [rsp + 0x60], rax
je 0x14016202a
xor ebp, ebp
jmp 0x140162efe
test byte [rdi + 0x13], 1
je 0x140162038
cmp word [rsp + 0x5c], 0x10
je 0x140162023
mov rax, qword [rsp + 0x1f8]
test byte [rax + 0x3c], 0x58
je 0x140162055
mov rcx, qword [rdi]
mov rdx, rax
call fcn.1400c0670
test eax, eax
je 0x140162023
cmp byte [rsi + 0x62], 0
mov al, byte [r14 + 0x2c]
je 0x140162073
movzx edx, word [rsi + 0x5e]
dec edx
cmp dword [rsp + 0x84], edx
jne 0x140162073
or eax, 2
jmp 0x140162076
or eax, 1
mov byte [r14 + 0x2c], al
mov eax, dword [rsp + 0x9c]
mov ecx, dword [r14 + 0x28]
mov dword [rbx + 0x38], eax
mov ax, word [rsp + 0x82]
mov dword [rsp + 0xe4], ecx
mov word [rbx + 0x18], ax
mov ax, word [rsp + 0xde]
mov word [rbx + 0x1a], ax
mov eax, dword [rsp + 0xe0]
mov word [rbx + 0x1c], ax
mov eax, dword [rsp + 0x98]
cmp ax, word [rbx + 0x40]
mov word [rbx + 0x3c], ax
jae 0x140162103
movzx edx, word [rbx + 0x3c]
mov rcx, qword [rbx + 0x48]
mov r8, qword [rbx + 8]
lea eax, [rdx + 1]
mov word [rbx + 0x3c], ax
mov qword [rcx + rdx*8], rdi
mov rdx, qword [rsp + 0xb8]
not r8
or rdx, qword [rdi + 0x28]
and rdx, r8
mov qword [rbx], rdx
mov edx, dword [rsp + 0x5c]
and dx, 1
mov word [rsp + 0x78], dx
jne 0x140162123
jmp 0x1401621f7
mov r8d, dword [rsp + 0x108]
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call fcn.140164600
test eax, eax
je 0x1401620c3
xor ebp, ebp
jmp 0x140162f13
mov r8, qword [rdi]
test byte [r8 + 5], 0x10
je 0x140162162
movzx eax, ax
xor edx, edx
mov dword [rsp + 0x58], 0x2e
xor r10d, r10d
dec eax
cmp eax, edx
jle 0x140162188
mov r9, qword [rcx + rdx*8]
test r9, r9
je 0x14016215d
mov r11d, dword [rsp + 0x58]
cmp qword [r9], r8
cmove r11d, r10d
mov dword [rsp + 0x58], r11d
inc rdx
jmp 0x14016213f
mov rax, qword [r8 + 0x20]
xor ecx, ecx
mov dword [rsp + 0x58], ecx
test rax, rax
je 0x140162188
mov eax, dword [rax]
test eax, eax
mov dword [rsp + 0x58], eax
je 0x140162188
movsxd rcx, eax
call fcn.140129010
cwde
mov dword [rsp + 0x58], eax
cmp byte [rsi + 0x64], 0
jns 0x1401621ee
cmp word [rsp + 0xb2], 9
jle 0x1401621ee
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x68]
mov r8w, word [rax + rcx]
movsx ecx, word [rsp + 0x58]
add r8d, 0xa
call fcn.1400c2bd0
sub r8w, word [rsp + 0xb2]
sub r8d, dword [rsp + 0x58]
add r8w, ax
jns 0x1401621ee
cmp word [rsp + 0xb0], 1
jg 0x140162023
mov rax, qword [rsp + 0x70]
test byte [rax + 0x62], 2
jne 0x140162023
or dword [rbx + 0x38], 0x100000
or dword [rbx + 0x38], 4
jmp 0x140162480
test byte [rsp + 0x5c], 0x82
je 0x140162276
mov rax, qword [rsi + 8]
mov rcx, qword [rsp + 0x68]
movsx edx, word [rax + rcx]
mov eax, dword [rbx + 0x38]
mov ecx, eax
or ecx, 1
cmp edx, 0xffffffff
mov dword [rbx + 0x38], ecx
je 0x140162254
test edx, edx
js 0x140162263
cmp word [rsp + 0xb0], 0
jne 0x140162263
movzx edx, word [rsi + 0x5e]
mov ecx, edx
dec edx
cmp dword [rsp + 0x84], edx
jne 0x140162263
test byte [rsi + 0x64], 8
jne 0x140162254
dec cx
jne 0x14016225b
cmp byte [rsi + 0x62], 0
je 0x14016225b
cmp word [rsp + 0x5c], 2
jne 0x14016225b
or eax, 0x1001
jmp 0x140162260
or eax, 0x10001
mov dword [rbx + 0x38], eax
cmp byte [rsp + 0x159], 1
jbe 0x140162283
or dword [rbx + 0x38], 0x200000
jmp 0x140162283
test word [rsp + 0x5c], 0x100
je 0x14016228e
or dword [rbx + 0x38], 8
xor edx, edx
mov dword [rsp + 0x58], edx
jmp 0x140162480
mov rax, qword [rsp + 0x1f8]
mov ebp, 1
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x58], eax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
call fcn.140116b60
movzx r12d, word [rsi + 0x60]
mov ecx, dword [rsp + 0x84]
sub r12d, ecx
cmp r12d, eax
cmovle eax, r12d
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xa0]
lea r13, [rax + 1]
cmp dword [rsp + 0x48], ebp
jle 0x140162316
mov rdx, qword [rdi]
movsxd rax, ebp
shl rax, 5
mov rcx, qword [rdx + 0x10]
mov r10, qword [rcx + 0x20]
mov rcx, qword [rdx + 0x18]
add r10, rax
test byte [rcx + 5], 0x10
mov r15, qword [r10 + 8]
mov rdx, qword [rcx + 0x20]
je 0x14016230b
add rax, qword [rdx + 0x20]
mov r12, qword [rax + 8]
jmp 0x140162310
mov r12, qword [rdx + rax + 8]
cmp byte [r15], 0xa7
je 0x140162329
test byte [rsp + 0x5c], 0x24
mov eax, dword [rbx + 0x38]
jne 0x1401623c4
jmp 0x14016242b
mov eax, dword [rsp + 0x58]
cmp eax, dword [r15 + 0x2c]
jne 0x140162316
mov rax, qword [rsi + 8]
mov r10d, dword [r15 + 0x30]
cmp r10w, word [rax + r13*2]
mov dword [rsp + 0x50], r10d
jne 0x140162316
mov rax, qword [rsi + 0x38]
mov rdx, qword [rsp + 0xa0]
mov cl, byte [rax + rdx]
cmp byte [rax + r13], cl
jne 0x140162316
mov rcx, r15
call fcn.140112ac0
mov rcx, r12
movsx edx, al
call fcn.14010e110
mov r10d, dword [rsp + 0x50]
mov rcx, qword [rsi + 0x18]
mov r9d, eax
movsx edx, r10w
call fcn.14013a130
cmp r9b, al
jne 0x140162316
mov rcx, qword [rsp + 0x40]
mov r8, r12
mov rdx, r15
call fcn.140108e70
test rax, rax
je 0x140162316
mov rdx, qword [rsi + 0x40]
mov rcx, qword [rax]
mov rdx, qword [rdx + r13*8]
inc r13
call fcn.140139c40
test eax, eax
jne 0x140162316
inc ebp
jmp 0x1401622d4
or eax, 0x22
test byte [rdi + 0x13], 1
mov word [rbx + 0x1a], bp
mov dword [rbx + 0x38], eax
je 0x14016245a
movzx r8d, word [rbx + 0x3c]
lea rax, [rdi + 0x38]
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
inc r8d
call fcn.140164600
test eax, eax
mov dword [rsp + 0x58], eax
jne 0x14016211c
movzx eax, word [rbx + 0x3c]
mov qword [rsp + 0x50], rdi
mov rdx, qword [rbx + 0x48]
lea ecx, [rax + 1]
mov word [rbx + 0x3c], cx
mov rcx, qword [rsp + 0x48]
mov qword [rdx + rax*8], rcx
or dword [rbx + 0x38], 0x10
mov word [rbx + 0x1c], 1
jmp 0x140162480
mov edx, eax
mov word [rbx + 0x1c], bp
or edx, 0x12
test al, 0x20
mov dword [rbx + 0x38], edx
je 0x14016246e
movzx edx, word [rbx + 0x3c]
mov qword [rsp + 0x48], rdi
mov rax, qword [rbx + 0x48]
mov rax, qword [rax + rdx*8 - 0x10]
mov qword [rsp + 0x50], rax
xor eax, eax
mov dword [rsp + 0x58], eax
jmp 0x140162480
xor eax, eax
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], eax
xor eax, eax
mov qword [rsp + 0x48], rax
jmp 0x140162480
xor eax, eax
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x58], eax
xor eax, eax
mov qword [rsp + 0x50], rax
test byte [rbx + 0x38], 2
movzx r12d, word [rbx + 0x18]
je 0x140162c37
mov rdi, qword [rbx + 0x20]
movsx eax, word [rbx + 0x16]
mov ebp, dword [rdi + 0x68]
mov dword [rsp + 0x5c], eax
test ebp, ebp
jg 0x1401624b1
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
jmp 0x140162bb3
movzx eax, r12w
cmp eax, dword [rdi + 0x70]
mov dword [rsp + 0xc8], eax
jge 0x1401624a2
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
test byte [rax + 0x61], 8
mov qword [rsp + 0x78], rax
jne 0x1401624a2
mov r11d, dword [r14 + 0x28]
cmp dword [rsp + 0xc8], r11d
jne 0x1401627f8
mov rdx, qword [r14 + 0x20]
movzx eax, word [rbx + 0x1a]
movzx r15d, word [rbx + 0x1c]
test rdx, rdx
mov qword [rsp + 0x118], rdx
mov dword [rsp + 0x88], eax
je 0x14016250c
mov word [rdx + 0x1c], r11w
test r11d, r11d
jne 0x140162522
mov rax, qword [rdi + 0x90]
xor r13d, r13d
mov qword [rsp + 0x78], rax
jmp 0x14016255d
lea r9, [rsp + 0x120]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x90], r11d
call fcn.140161360
mov r13, qword [rsp + 0x120]
mov rax, qword [rsp + 0x128]
mov r11d, dword [rsp + 0x90]
add rax, r13
mov qword [rsp + 0x78], rax
mov rax, qword [rdi + 0x38]
cmp byte [rax + r12], 0
jne 0x140162586
mov eax, r15d
mov r12, qword [rsp + 0x48]
mov r15d, dword [rsp + 0x88]
mov dword [rsp + 0x88], eax
mov rbp, qword [rsp + 0x50]
jmp 0x140162590
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
test rbp, rbp
je 0x140162692
mov rax, qword [rbp]
lea r8, [rsp + 0x118]
mov rdx, rdi
mov dword [rsp + 0xa8], r11d
mov rcx, qword [rsp + 0x40]
mov r9, qword [rax + 0x18]
lea rax, [rsp + 0x114]
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0xc0], r9
call fcn.1401399b0
mov r11d, dword [rsp + 0xa8]
mov dword [rsp + 0x90], 0xfffffffe
test eax, eax
mov r10d, eax
jne 0x1401626a0
mov r8d, dword [rsp + 0x114]
test r8d, r8d
je 0x1401626a0
mov rcx, qword [rsp + 0xc0]
mov dword [rsp + 0xc8], eax
mov r15d, 0x18
lea r9, [rsp + 0x120]
call fcn.140116b60
mov rdx, qword [rsp + 0x118]
mov rcx, rdi
cmp r8d, eax
mov eax, 0xc
cmovge r15d, eax
xor r8d, r8d
call fcn.140161360
and r15d, dword [rbp + 0x14]
xor edx, edx
mov dword [rsp + 0x90], eax
mov r11d, dword [rsp + 0xa8]
mov rax, qword [rsp + 0x120]
mov r10d, dword [rsp + 0xc8]
test r15w, r15w
je 0x140162680
mov rdx, qword [rsp + 0x128]
add rax, rdx
cmp r13, rax
cmovb r13, rax
xor ebp, ebp
dec dword [rsp + 0x5c]
jmp 0x1401626a0
mov dword [rsp + 0x90], 0xfffffffe
xor r10d, r10d
or r15d, 0xffffffff
test r12, r12
je 0x1401627a9
mov rax, qword [r12]
lea r8, [rsp + 0x118]
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
mov r9, qword [rax + 0x18]
lea rax, [rsp + 0x114]
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x88]
mov qword [rsp + 0x88], r9
mov dword [rsp + 0x20], eax
call fcn.1401399b0
test eax, eax
mov r10d, eax
jne 0x1401627a9
mov r8d, dword [rsp + 0x114]
test r8d, r8d
je 0x1401627a9
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0xa8], eax
mov r11d, 0x18
lea r9, [rsp + 0x120]
call fcn.140116b60
mov rdx, qword [rsp + 0x118]
mov rcx, rdi
cmp r8d, eax
mov eax, 0xc
mov r8d, 1
cmovge r11d, eax
mov dword [rsp + 0x88], r11d
call fcn.140161360
mov r11d, dword [rsp + 0x88]
and r11d, dword [r12 + 0x14]
mov r15d, eax
mov r10d, dword [rsp + 0xa8]
mov rax, qword [rsp + 0x120]
test r11w, r11w
je 0x14016278a
mov rdi, qword [rsp + 0x128]
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x60]
add rax, rdi
cmp qword [rsp + 0x78], rax
cmovbe rax, qword [rsp + 0x78]
xor r12d, r12d
dec dword [rsp + 0x5c]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x118]
test r10d, r10d
mov qword [r14 + 0x20], rax
jne 0x140162bb3
mov rdi, qword [rsp + 0x78]
mov eax, 0xa
cmp r13, rdi
jae 0x1401627e5
mov rcx, rdi
sub rcx, r13
call fcn.140129010
cmp dword [rsp + 0x90], r15d
jne 0x1401627e5
sub eax, 0x14
cwde
cmp dword [rsp + 0x5c], eax
cmovle eax, dword [rsp + 0x5c]
mov dword [rsp + 0x5c], eax
jmp 0x140162bb3
cmp qword [rdi + 0x20], 0
je 0x140162809
mov rax, qword [rdi + 0x20]
mov r13b, byte [rax + r12]
jmp 0x14016281e
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.140125a30
test rax, rax
jne 0x1401627ff
mov r13b, 0x41
mov rax, qword [rdi + 0x40]
xor r15d, r15d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x120], r15
mov rdx, qword [rax + r12*8]
call fcn.140128bc0
cmp qword [rsp + 0x50], 0
mov qword [rsp + 0xc0], rax
je 0x140162882
mov rax, qword [rsp + 0x50]
xor r9d, r9d
movzx r8d, r13b
xor r15d, r15d
mov rcx, qword [rsp + 0x40]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
call fcn.140157610
jmp 0x140162888
xor eax, eax
or r15d, 0xffffffff
cmp qword [rsp + 0x48], 0
je 0x140162894
test eax, eax
je 0x14016289a
lea r12d, [rbp + 1]
jmp 0x1401628d6
mov rax, qword [rsp + 0x48]
xor r9d, r9d
movzx r8d, r13b
xor r12d, r12d
mov rcx, qword [rsp + 0x40]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea rax, [rsp + 0x120]
mov qword [rsp + 0x20], rax
call fcn.140157610
cmp qword [rsp + 0x120], 0
jne 0x1401628d6
mov r12d, dword [rdi + 0x68]
mov rdx, qword [rsp + 0x118]
mov rbp, qword [rsp + 0x120]
test rdx, rdx
mov qword [rsp + 0x88], rdx
je 0x140162917
lea rdx, [rsp + 0x114]
xor ebp, ebp
lea rcx, [rsp + 0x110]
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], rcx
jmp 0x140162996
test rbp, rbp
jne 0x1401628f3
xor r12d, r12d
jmp 0x140162b83
mov eax, dword [rsp + 0x60]
cmp dword [rdi + 0x68], eax
jle 0x140162b2e
imul rax, qword [rsp + 0x60], 0x28
xor r11d, r11d
add rax, qword [rdi + 0x80]
mov dword [rsp + 0x110], r11d
mov edx, dword [rax + 8]
mov rax, qword [rax]
mov dword [rsp + 0xcc], edx
mov qword [rsp + 0x90], rax
movzx eax, byte [rax]
test al, al
js 0x14016299f
mov dword [rsp + 0x114], eax
mov r13d, 1
mov r9d, dword [rsp + 0x114]
cmp r13d, r9d
jb 0x1401629ba
mov ecx, 0x14b08
call fcn.14010e7b0
test eax, eax
je 0x140162ad7
inc qword [rsp + 0x60]
test eax, eax
je 0x140162924
jmp 0x140162b2e
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x90]
call fcn.140125380
movzx r13d, al
jmp 0x140162972
xor r10d, r10d
cmp dword [rsp + 0xcc], r9d
mov eax, r9d
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xd0], r10d
jae 0x140162a1d
jmp 0x14016297f
mov eax, dword [rsp + 0x110]
mov ecx, eax
mov dword [rsp + 0xd4], eax
call fcn.1401469d0
mov rcx, qword [rsp + 0xa8]
inc dword [rsp + 0xd0]
mov eax, eax
add rax, rcx
mov ecx, dword [rsp + 0xd0]
cmp dword [rsp + 0xc8], ecx
jl 0x140162a73
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x90]
mov ecx, r13d
add rcx, rax
movzx eax, byte [rcx]
test al, al
js 0x140162a3d
mov dword [rsp + 0x110], eax
mov al, 1
jmp 0x140162a5a
mov rdx, qword [rsp + 0x100]
mov dword [rsp + 0xd4], r9d
call fcn.140125380
mov r9d, dword [rsp + 0xd4]
movzx eax, al
add r13d, eax
cmp r9d, r13d
jae 0x1401629dc
mov ecx, 0x14b0e
jmp 0x140162984
movsxd rdx, dword [rsp + 0xcc]
cmp rax, rdx
jle 0x140162a8a
mov ecx, 0x14b14
jmp 0x140162984
test rbp, rbp
jne 0x140162aaa
mov rcx, qword [rsp + 0x78]
call fcn.14013d020
mov rbp, rax
mov eax, 7
test rbp, rbp
je 0x140162991
mov rax, qword [rsp + 0xa8]
mov r8, rbp
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0xd4]
add rcx, rax
call fcn.1401468b0
mov rax, qword [rsp + 0x78]
mov al, byte [rax + 0x64]
mov byte [rbp + 0x16], al
cmp qword [rsp + 0x88], 0
je 0x140162b03
mov r8, qword [rsp + 0xc0]
mov rdx, rbp
mov rcx, qword [rsp + 0x88]
call fcn.140129600
cmp eax, 0x80000000
adc r15d, 0
mov rcx, qword [rsp + 0x120]
test rcx, rcx
je 0x140162b27
mov r8, qword [rsp + 0xc0]
mov rdx, rbp
call fcn.140129600
test eax, eax
js 0x140162b27
inc r12d
xor eax, eax
jmp 0x140162991
mov r9d, r12d
sub r9d, r15d
cmp qword [rsp + 0x50], 0
sete al
cmp qword [rsp + 0x48], 0
sete dl
or al, dl
jne 0x140162b53
xor r12d, r12d
cmp r9d, 1
jle 0x140162b83
movsxd rcx, dword [rdi + 0x68]
mov r12d, 1
call fcn.140129010
test r9d, r9d
movsx r8d, ax
mov eax, 1
cmovg eax, r9d
movsxd rcx, eax
call fcn.140129010
cwde
sub r8d, eax
sub word [rbx + 0x16], r8w
mov rcx, qword [rsp + 0x88]
call fcn.14013cfc0
mov rcx, qword [rsp + 0x120]
call fcn.14013cfc0
mov rcx, rbp
call fcn.14013cfc0
test r12d, r12d
je 0x1401624a2
jmp 0x140162df2
test rbp, rbp
mov edx, dword [rsp + 0x5c]
je 0x140162bd8
mov eax, dword [rbp + 0x10]
test ax, ax
jg 0x140162bcb
mov edi, edx
lea edx, [rax + rdi]
jmp 0x140162bd8
test byte [rbp + 0x12], 0x80
jne 0x140162bd8
mov eax, dword [rsp + 0x5c]
lea edx, [rax - 0x14]
test r12, r12
je 0x140162c0a
mov eax, dword [r12 + 0x10]
test ax, ax
jg 0x140162beb
add edx, eax
jmp 0x140162bf6
test byte [r12 + 0x12], 0x80
jne 0x140162bf6
sub edx, 0x14
test rbp, rbp
je 0x140162c0a
cmp word [rbp + 0x10], 0
jle 0x140162c0a
test ax, ax
jle 0x140162c0a
sub edx, 0x14
mov eax, dword [rsp + 0x5c]
xor ecx, ecx
test rbp, rbp
setne cl
cmp r12, 1
sbb ecx, 0xffffffff
sub eax, ecx
mov ecx, 0xa
cmp dx, cx
cmovl edx, ecx
movsx edx, dx
cmp eax, edx
cmovg eax, edx
jmp 0x140162dee
mov eax, dword [rdi + 0x10]
inc r12d
mov word [rbx + 0x18], r12w
test ax, ax
jg 0x140162c60
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + 0x68]
cmp word [rdx + rcx], 0
js 0x140162c60
add ax, word [rbx + 0x16]
jmp 0x140162dea
xor r8d, r8d
cmp word [rsp + 0xb0], 0
mov qword [rsp + 0x118], r8
jne 0x140163059
cmp dword [rsi + 0x68], 0
je 0x140163059
movzx eax, r12w
cmp dword [rsi + 0x70], eax
mov dword [rsp + 0x88], eax
jl 0x140163059
cmp word [rsp + 0x78], 0
je 0x140162cad
mov rax, qword [rdi]
test byte [rax + 5], 0x10
jne 0x140163059
mov rax, qword [rsp + 0x70]
test byte [rax + 0x61], 8
jne 0x140163059
test word [rsp + 0x5c], 0x182
mov rax, qword [rdi]
je 0x140162ce8
mov r8, qword [rax + 0x18]
lea r9, [rsp + 0x118]
mov rdx, r14
mov rcx, qword [rsp + 0x40]
call fcn.140161030
mov ebp, eax
jmp 0x140162d80
mov r15, qword [rax + 0x20]
lea r9, [rsp + 0x120]
xor r10d, r10d
mov rax, qword [r14 + 0x10]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x10]
movsx ecx, word [rax]
call fcn.140129130
mov r11d, dword [r14 + 0x28]
mov r13, rax
cmp dword [r15], r10d
jle 0x140163082
mov rax, r10
mov rcx, qword [rsp + 0x40]
mov rdx, r14
mov qword [rsp + 0x78], r9
shl rax, 5
mov dword [rsp + 0xa8], r11d
mov r8, qword [r15 + rax + 8]
mov qword [rsp + 0x90], r10
mov qword [rsp + 0x120], r13
call fcn.140161030
mov r10, qword [rsp + 0x90]
mov r11d, dword [rsp + 0xa8]
mov ebp, eax
mov rdx, qword [rsp + 0x120]
add qword [rsp + 0x60], rdx
inc r10
test eax, eax
mov r9, qword [rsp + 0x78]
mov dword [r14 + 0x28], r11d
je 0x140162d12
cmp ebp, 0xc
je 0x140162d8d
test ebp, ebp
jne 0x140162f13
mov rcx, qword [rsp + 0x118]
test rcx, rcx
je 0x140163059
call fcn.140129010
cmp dword [rsp + 0x88], 1
mov edx, eax
mov word [rbx + 0x16], ax
jne 0x140162dd9
mov rcx, qword [rsi + 0x10]
cwde
add eax, 9
movsx ecx, word [rcx]
cmp eax, ecx
jl 0x140162dd9
mov ax, word [rdi + 0x12]
mov ecx, eax
or ch, 0x40
test ah, 0x20
mov word [rdi + 0x12], cx
je 0x140162dd9
or byte [r14 + 0x2d], 4
mov ax, word [rsp + 0x9a]
cmp dx, ax
jg 0x140162dea
mov ax, word [rbx + 0x16]
sub eax, dword [rsp + 0x58]
mov word [rbx + 0x16], ax
mov al, byte [rsi + 0x64]
mov r12w, word [rbx + 0x16]
not eax
test al, 3
jne 0x140162e07
lea eax, [r12 + 0x10]
jmp 0x140162e26
mov rdi, qword [rsp + 0x1f8]
movsx eax, word [rsi + 0x5c]
mov rdx, qword [rdi + 0x20]
imul eax, eax, 0xf
movsx ecx, word [rdx + 0x3c]
cdq
idiv ecx
lea eax, [r12 + rax + 1]
mov ecx, dword [rsp + 0x10c]
movsx edx, ax
call fcn.140129060
test dword [rbx + 0x38], 0x4000140
mov word [rbx + 0x14], ax
jne 0x140162e56
lea edx, [r12 + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.140129060
mov word [rbx + 0x14], ax
mov edi, dword [rsp + 0x58]
mov rdx, rbx
add edi, dword [rsp + 0xb0]
mov rcx, qword [r14 + 8]
add word [rbx + 0x14], di
mov r8d, dword [rsp + 0xb4]
lea eax, [rdi + r12]
mov word [rbx + 0x16], ax
call fcn.140164470
mov rdx, rbx
mov rcx, r14
call fcn.140164220
mov ebp, eax
mov eax, dword [rbx + 0x38]
test al, 2
cmovne r12w, word [rsp + 0x9a]
test al, 0x10
mov word [rbx + 0x16], r12w
jne 0x140162ee7
mov eax, dword [rbx + 0x18]
cmp ax, word [rsi + 0x60]
jae 0x140162ee7
cmp ax, word [rsi + 0x5e]
jb 0x140162ec0
mov dl, byte [rsi + 0x64]
and edx, 3
cmp dl, 2
je 0x140162ee7
cmp ax, 3
jbe 0x140162ed0
mov rcx, qword [rsp + 0x40]
call fcn.140132e30
mov rdx, qword [rsp + 0x1f8]
movsx r9d, di
mov r8, rsi
mov rcx, r14
call fcn.140161e10
mov ax, word [rsp + 0x9a]
mov word [rbx + 0x16], ax
mov eax, dword [rsp + 0xe4]
mov dword [r14 + 0x28], eax
lea rcx, [rsp + 0x130]
call fcn.140165a20
mov rdi, rax
jmp 0x140161fc2
mov rax, qword [rsp + 0xb8]
mov di, word [rsp + 0xe2]
cmp word [rsp + 0x82], di
mov qword [rbx], rax
mov rax, qword [rsp + 0xf0]
mov qword [rbx + 0x16], rax
mov rax, qword [rsp + 0xe8]
mov qword [rbx + 0x38], rax
jne 0x14016309d
mov edx, dword [rsp + 0x84]
movzx eax, word [rsi + 0x5e]
inc edx
cmp edx, eax
jge 0x14016309d
mov edi, dword [rsp + 0x98]
cmp word [rsp + 0x82], di
jne 0x14016309d
mov al, byte [rsi + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x14016309d
mov rax, qword [rsp + 0x70]
test byte [rax + 0x61], 0x40
jne 0x14016309d
mov rax, qword [rsi + 0x10]
mov rdi, qword [rsp + 0x68]
cmp word [rax + rdi + 2], 0x29
jle 0x14016309d
movzx r8d, word [rsp + 0x98]
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
inc r8d
call fcn.140164600
test eax, eax
mov ebp, eax
jne 0x14016309d
movzx eax, word [rbx + 0x3c]
mov r8, rsi
mov rdx, qword [rbx + 0x48]
inc word [rbx + 0x18]
inc word [rbx + 0x3e]
mov rdi, qword [rsp + 0x68]
lea ecx, [rax + 1]
mov word [rbx + 0x3c], cx
xor ecx, ecx
mov qword [rdx + rax*8], rcx
mov rax, qword [rsi + 0x10]
mov rcx, r14
or dword [rbx + 0x38], 0x8000
mov r9w, word [rax + rdi]
mov ax, word [rax + rdi + 2]
mov edi, dword [rsp + 0xd8]
mov edx, eax
sub edx, r9d
add word [rbx + 0x16], dx
lea r9d, [r9 + rdi + 5]
mov rdx, qword [rsp + 0x1f8]
sub r9d, eax
movsx r9d, r9w
call fcn.140161e10
mov ax, word [rsp + 0x9a]
mov word [rbx + 0x16], ax
mov ax, word [rsp + 0x82]
mov word [rbx + 0x18], ax
mov word [rbx + 0x3e], ax
mov eax, dword [rsp + 0x9c]
mov dword [rbx + 0x38], eax
jmp 0x14016309d
mov rax, qword [rsi + 0x10]
movzx r12d, r12w
mov dx, word [rbx + 0x16]
add dx, word [rax + r12*2]
sub dx, word [rax + r12*2 - 2]
test word [rsp + 0x5c], 0x100
lea eax, [rdx + 0xa]
cmove eax, edx
jmp 0x140162dee
cmp qword [rsp + 0x60], r13
mov rax, qword [rsp + 0x60]
cmova rax, r13
mov qword [rsp + 0x118], rax
jmp 0x140162d8d
mov eax, ebp
add rsp, 0x1a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret