Function at 0x140225c30
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, 0x198
mov dword [rsp + 0xcc], r9d
mov eax, dword [rsp + 0xcc]
mov r15, rcx
mov rsi, r8
mov qword [rsp + 0x1e8], rdx
mov word [rsp + 0xa8], ax
mov rax, qword [rcx]
mov rax, qword [rax]
cmp dword [rax + 0x30], 0
mov qword [rsp + 0x50], rax
je 0x140225c82
mov r12d, dword [rax + 0x18]
jmp 0x140226ea3
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 byte [r8 + 0x64], 4
je 0x140225caa
and eax, 0xffffffc3
mov rdi, qword [rsp + 0x50]
mov rdx, qword [r15 + 8]
lea rcx, [rsp + 0x120]
xor r12d, r12d
mov rdi, qword [rdi]
mov qword [rsp + 0x78], rdi
mov edi, dword [rbx + 0x18]
mov word [rsp + 0x8a], di
mov di, word [rbx + 0x1a]
mov word [rsp + 0xda], di
mov edi, dword [rbx + 0x1c]
mov word [rsp + 0xdc], di
mov rdi, qword [rbx + 0x16]
mov qword [rsp + 0xe0], rdi
mov di, word [rbx + 0x3e]
mov word [rsp + 0xde], di
mov rdi, qword [rbx + 0x38]
mov qword [rsp + 0xd0], rdi
mov edi, dword [rbx + 0x3c]
mov word [rsp + 0x98], di
mov rdi, qword [rbx]
mov qword [rsp + 0xb0], rdi
mov di, word [rbx + 0x16]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1e8]
mov word [rsp + 0x9a], di
movzx edi, word [rsp + 0x8a]
mov qword [rsp + 0x28], rsi
mov r8d, dword [rax + 0x44]
mov r9d, edi
mov dword [rsp + 0x8c], edi
call fcn.140229580
mov word [rbx + 0x12], 0
mov rdi, rax
mov rax, qword [rsi + 0x10]
movsx eax, word [rax]
mov ecx, eax
mov dword [rsp + 0xc0], eax
call fcn.14018c3b0
mov qword [rsp + 0x48], 0
mov word [rsp + 0xaa], ax
movzx eax, word [rsp + 0x8a]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x90], rax
add rax, rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0xf0], rax
test r12d, r12d
jne 0x140226cfc
test rdi, rdi
je 0x140226cfc
mov r14d, dword [rdi + 0x14]
cmp r14w, 0x100
je 0x140225dde
test byte [rdi + 0x12], 0x80
je 0x140225e12
mov rax, qword [rsi + 8]
mov rcx, qword [rsp + 0x70]
movsx rdx, word [rax + rcx]
mov rax, rdx
test edx, edx
js 0x140225e0a
mov rdx, qword [rsi + 0x18]
imul rax, rax, 0x18
add rax, qword [rdx + 8]
test byte [rax + 8], 0xf
je 0x140225e12
jmp 0x140226ce4
inc edx
je 0x140226ce4
mov rax, qword [rdi + 0x28]
and rax, qword [rbx + 8]
mov qword [rsp + 0x60], rax
jne 0x140226ce4
test byte [rdi + 0x13], 1
je 0x140225e36
cmp r14w, 0x10
je 0x140226ce4
mov rax, qword [rsp + 0x1e8]
test byte [rax + 0x3c], 0x58
je 0x140225e5a
mov rcx, qword [rdi]
mov rdx, rax
call fcn.14018a0a0
mov r12d, eax
test eax, eax
je 0x140226ce7
cmp byte [rsi + 0x62], 0
mov al, byte [r15 + 0x2c]
je 0x140225e78
movzx edx, word [rsi + 0x5e]
dec edx
cmp dword [rsp + 0x8c], edx
jne 0x140225e78
or eax, 2
jmp 0x140225e7b
or eax, 1
mov byte [r15 + 0x2c], al
mov eax, dword [rsp + 0x9c]
mov ecx, dword [r15 + 0x28]
mov dword [rbx + 0x38], eax
mov ax, word [rsp + 0x8a]
mov dword [rsp + 0xf8], ecx
mov word [rbx + 0x18], ax
mov ax, word [rsp + 0xda]
mov word [rbx + 0x1a], ax
mov eax, dword [rsp + 0xdc]
mov word [rbx + 0x1c], ax
mov eax, dword [rsp + 0x98]
mov word [rbx + 0x3c], ax
cmp word [rbx + 0x40], ax
jbe 0x140225f0a
movzx edx, word [rbx + 0x3c]
mov rcx, qword [rbx + 0x48]
mov r8, qword [rbx + 8]
lea eax, [rdx + 1]
mov word [rbx + 0x3c], ax
not r8
mov qword [rcx + rdx*8], rdi
mov rdx, qword [rsp + 0xb0]
or rdx, qword [rdi + 0x28]
and rdx, r8
mov qword [rbx], rdx
mov edx, r14d
and dx, 1
mov word [rsp + 0x80], dx
jne 0x140225f2f
jmp 0x140226003
movzx r8d, word [rsp + 0x98]
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
inc r8d
call fcn.140228350
test eax, eax
je 0x140225ec8
xor r12d, r12d
jmp 0x140226cfc
mov r8, qword [rdi]
test byte [r8 + 5], 0x10
je 0x140225f6e
mov dword [rsp + 0x58], 0x2e
movzx eax, ax
xor edx, edx
xor r10d, r10d
dec eax
cmp eax, edx
jle 0x140225f96
mov r9, qword [rcx + rdx*8]
test r9, r9
je 0x140225f69
mov r11d, dword [rsp + 0x58]
cmp qword [r9], r8
cmove r11d, r10d
mov dword [rsp + 0x58], r11d
inc rdx
jmp 0x140225f4b
mov rax, qword [r8 + 0x20]
mov dword [rsp + 0x58], 0
test rax, rax
je 0x140225f96
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
test eax, eax
je 0x140225f96
movsxd rcx, eax
call fcn.1401ebd00
cwde
mov dword [rsp + 0x58], eax
cmp byte [rsi + 0x64], 0
jns 0x140225ffa
cmp word [rsp + 0xaa], 9
jle 0x140225ffa
mov ecx, dword [rsp + 0x58]
call fcn.14018c3b0
mov rcx, qword [rsp + 0x70]
mov r8d, eax
mov rax, qword [rsi + 0x10]
mov ax, word [rax + rcx]
add eax, 0xa
sub ax, word [rsp + 0xaa]
sub eax, dword [rsp + 0x58]
add ax, r8w
jns 0x140225ffa
cmp word [rsp + 0xa8], 1
jg 0x140226ce4
mov rax, qword [rsp + 0x78]
test byte [rax + 0x62], 2
jne 0x140226ce4
or dword [rbx + 0x38], 0x100000
or dword [rbx + 0x38], 4
jmp 0x1402262ad
test r14b, 0x82
je 0x140226093
mov rax, qword [rsi + 8]
mov rcx, qword [rsp + 0x70]
movsx edx, word [rax + rcx]
mov eax, dword [rbx + 0x38]
mov ecx, eax
or ecx, 1
mov dword [rbx + 0x38], ecx
cmp edx, 0xffffffff
je 0x140226062
test edx, edx
js 0x140226071
cmp word [rsp + 0xa8], 0
jne 0x140226071
movzx edx, word [rsi + 0x5e]
mov ecx, edx
dec edx
cmp dword [rsp + 0x8c], edx
jne 0x140226071
test byte [rsi + 0x64], 8
jne 0x140226062
dec cx
jne 0x140226069
cmp byte [rsi + 0x62], 0
je 0x140226069
cmp r14w, 2
jne 0x140226069
or eax, 0x1001
jmp 0x14022606e
or eax, 0x10001
mov dword [rbx + 0x38], eax
cmp byte [rsp + 0x149], 1
mov dword [rsp + 0x58], 0
jbe 0x1402262ad
or dword [rbx + 0x38], 0x200000
jmp 0x1402262ad
test r14w, 0x100
je 0x1402260ac
or dword [rbx + 0x38], 8
mov dword [rsp + 0x58], 0
jmp 0x1402262ad
mov rax, qword [rsp + 0x1e8]
mov ebp, 1
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x58], eax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
call fcn.1401dbcf0
movzx r12d, word [rsi + 0x60]
sub r12d, dword [rsp + 0x8c]
cmp r12d, eax
cmovle eax, r12d
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x90]
lea r13, [rax + 1]
cmp dword [rsp + 0x40], ebp
jle 0x140226133
mov rdx, qword [rdi]
movsxd rax, ebp
shl rax, 5
mov rcx, qword [rdx + 0x10]
mov r11, qword [rcx + 0x20]
mov rcx, qword [rdx + 0x18]
add r11, rax
mov rdx, qword [rcx + 0x20]
mov r12, qword [r11 + 8]
test byte [rcx + 5], 0x10
je 0x140226127
add rax, qword [rdx + 0x20]
mov r8, qword [rax + 8]
jmp 0x14022612c
mov r8, qword [rdx + rax + 8]
cmp byte [r12], 0xa7
je 0x140226145
mov eax, dword [rbx + 0x38]
test r14b, 0x24
jne 0x1402261e7
jmp 0x14022624e
mov qword [rsp + 0x48], r8
mov eax, dword [rsp + 0x58]
cmp eax, dword [r12 + 0x2c]
jne 0x140226133
mov rax, qword [rsi + 8]
mov ax, word [rax + r13*2]
cmp word [r12 + 0x30], ax
jne 0x140226133
mov rax, qword [rsi + 0x38]
mov rcx, qword [rsp + 0x90]
mov cl, byte [rax + rcx]
cmp byte [rax + r13], cl
jne 0x140226133
mov rcx, r12
call fcn.1401d7f10
mov r8, qword [rsp + 0x48]
movsx edx, al
mov rcx, r8
call fcn.1401d39b0
movsx edx, word [r12 + 0x30]
mov rcx, qword [rsi + 0x18]
mov r10d, eax
call fcn.1401fe770
cmp r10b, al
jne 0x140226133
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov rdx, r12
call fcn.1401cec70
test rax, rax
je 0x140226133
mov rdx, qword [rsi + 0x40]
mov rcx, qword [rax]
mov rdx, qword [rdx + r13*8]
inc r13
call fcn.1401fe2c0
test eax, eax
jne 0x140226133
inc ebp
jmp 0x1402260f0
or eax, 0x22
mov word [rbx + 0x1a], bp
mov dword [rbx + 0x38], eax
test byte [rdi + 0x13], 1
je 0x14022627f
movzx r8d, word [rbx + 0x3c]
mov rcx, qword [rsp + 0x78]
lea rax, [rdi + 0x38]
mov rdx, rbx
mov qword [rsp + 0x40], rax
inc r8d
call fcn.140228350
mov dword [rsp + 0x58], eax
test eax, eax
jne 0x140225f27
movzx eax, word [rbx + 0x3c]
mov rdx, qword [rbx + 0x48]
mov qword [rsp + 0x48], rdi
lea ecx, [rax + 1]
mov word [rbx + 0x3c], cx
mov rcx, qword [rsp + 0x40]
mov qword [rdx + rax*8], rcx
or dword [rbx + 0x38], 0x10
mov word [rbx + 0x1c], 1
jmp 0x1402262ad
mov edx, eax
mov word [rbx + 0x1c], bp
or edx, 0x12
mov dword [rbx + 0x38], edx
test al, 0x20
je 0x140226297
movzx edx, word [rbx + 0x3c]
mov rax, qword [rbx + 0x48]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x58], 0
mov rax, qword [rax + rdx*8 - 0x10]
mov qword [rsp + 0x48], rax
jmp 0x1402262ad
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], 0
jmp 0x1402262ad
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0
mov ebp, dword [rbx + 0x18]
test byte [rbx + 0x38], 2
je 0x1402269f7
mov r12, qword [rbx + 0x20]
movsx eax, word [rbx + 0x16]
mov r13d, dword [r12 + 0x68]
mov dword [rsp + 0x5c], eax
test r13d, r13d
jle 0x140226971
movzx eax, bp
mov dword [rsp + 0xac], eax
cmp eax, dword [r12 + 0x6c]
jge 0x140226971
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
test byte [rax + 0x61], 8
jne 0x140226971
mov r14d, dword [r15 + 0x28]
cmp dword [rsp + 0xac], r14d
movzx edi, bp
jne 0x140226613
mov rdx, qword [r15 + 0x20]
movzx eax, word [rbx + 0x1c]
movzx r13d, word [rbx + 0x1a]
mov qword [rsp + 0x108], rdx
mov dword [rsp + 0xa0], eax
test rdx, rdx
je 0x14022633b
mov word [rdx + 0x1c], r14w
test r14d, r14d
jne 0x14022635b
mov rax, qword [r12 + 0x88]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x80], rax
jmp 0x14022638b
lea r9, [rsp + 0x110]
xor r8d, r8d
mov rcx, r12
call fcn.1402251c0
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x68], rax
add rax, qword [rsp + 0x118]
mov qword [rsp + 0x80], rax
mov rax, qword [r12 + 0x38]
cmp byte [rax + rdi], 0
je 0x1402263b4
mov eax, r13d
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov r13d, dword [rsp + 0xa0]
mov dword [rsp + 0xa0], eax
jmp 0x1402263be
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x1402264b3
mov rax, qword [rdi]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x108]
mov rdx, r12
mov r9, qword [rax + 0x18]
lea rax, [rsp + 0x104]
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0xb8], r9
call fcn.1401fe010
mov dword [rsp + 0xac], 0xfffffffe
mov r13d, eax
test eax, eax
jne 0x1402264c1
mov edx, dword [rsp + 0x104]
test edx, edx
je 0x1402264c1
mov r9, qword [rsp + 0xb8]
mov rcx, r9
lea r9, [rsp + 0x110]
call fcn.1401dbcf0
mov rcx, r12
cmp edx, eax
mov edx, 0xc
mov eax, 0x18
cmovge eax, edx
mov rdx, qword [rsp + 0x108]
xor r8d, r8d
mov r10d, eax
mov dword [rsp + 0xb8], r10d
call fcn.1402251c0
mov r10d, dword [rsp + 0xb8]
xor edx, edx
mov dword [rsp + 0xac], eax
mov rax, qword [rsp + 0x110]
mov ecx, r10d
and ecx, dword [rdi + 0x14]
test cx, cx
je 0x140226498
mov rdx, qword [rsp + 0x118]
add rax, rdx
cmp qword [rsp + 0x68], rax
cmovae rax, qword [rsp + 0x68]
xor edi, edi
dec dword [rsp + 0x5c]
mov qword [rsp + 0x68], rax
jmp 0x1402264c1
mov dword [rsp + 0xac], 0xfffffffe
xor r13d, r13d
mov dword [rsp + 0xb8], 0xffffffff
test rbp, rbp
je 0x1402265ba
mov rax, qword [rbp]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x108]
mov rdx, r12
mov r9, qword [rax + 0x18]
lea rax, [rsp + 0x104]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0xa0], r9
mov dword [rsp + 0x20], eax
call fcn.1401fe010
mov r13d, eax
test eax, eax
jne 0x1402265ba
mov edx, dword [rsp + 0x104]
test edx, edx
je 0x1402265ba
mov r9, qword [rsp + 0xa0]
mov r14d, 0xc
mov rcx, r9
lea r9, [rsp + 0x110]
call fcn.1401dbcf0
mov r8d, 1
mov rcx, r12
cmp edx, eax
mov rdx, qword [rsp + 0x108]
mov eax, 0x18
cmovl r14d, eax
call fcn.1402251c0
and r14d, dword [rbp + 0x14]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0x110]
test r14w, r14w
je 0x140226596
mov rcx, qword [rsp + 0x118]
mov qword [rsp + 0x60], rcx
add rax, qword [rsp + 0x60]
cmp qword [rsp + 0x80], rax
cmovbe rax, qword [rsp + 0x80]
dec dword [rsp + 0x5c]
xor ebp, ebp
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x108]
mov qword [r15 + 0x20], rax
test r13d, r13d
jne 0x14022697b
mov rcx, qword [rsp + 0x80]
mov eax, 0xa
cmp qword [rsp + 0x68], rcx
jae 0x140226600
sub rcx, qword [rsp + 0x68]
call fcn.1401ebd00
mov ecx, dword [rsp + 0xb8]
cmp dword [rsp + 0xac], ecx
jne 0x140226600
sub eax, 0x14
cwde
cmp dword [rsp + 0x5c], eax
cmovle eax, dword [rsp + 0x5c]
mov dword [rsp + 0x5c], eax
jmp 0x14022697b
cmp qword [r12 + 0x20], 0
je 0x140226626
mov rax, qword [r12 + 0x20]
mov bpl, byte [rax + rdi]
jmp 0x14022663b
mov rcx, qword [rsp + 0x68]
mov rdx, r12
call fcn.1401e8850
test rax, rax
jne 0x14022661b
mov bpl, 0x41
mov rax, qword [r12 + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov rdx, qword [rax + rdi*8]
call fcn.1401eb890
cmp qword [rsp + 0x48], 0
mov qword [rsp + 0xb8], rax
je 0x1402266af
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
movzx r8d, bpl
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
call fcn.14021c290
mov dword [rsp + 0xa0], 0
mov edi, eax
jmp 0x1402266bc
mov dword [rsp + 0xa0], 0xffffffff
xor edi, edi
cmp qword [rsp + 0x40], 0
je 0x1402266c8
test edi, edi
je 0x1402266ce
lea eax, [r13 + 1]
jmp 0x140226715
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
movzx r8d, bpl
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
call fcn.14021c290
cmp qword [rsp + 0x110], 0
mov dword [rsp + 0x80], 0
mov edi, eax
jne 0x14022671c
mov eax, dword [r12 + 0x68]
mov dword [rsp + 0x80], eax
cmp qword [rsp + 0x108], 0
jne 0x14022673b
mov r13, qword [rsp + 0x110]
test r13, r13
jne 0x14022673b
xor edi, edi
jmp 0x140226947
lea rax, [rsp + 0x104]
xor r13d, r13d
mov qword [rsp + 0xe8], rax
test edi, edi
jne 0x1402268e9
mov eax, dword [rsp + 0x60]
cmp dword [r12 + 0x68], eax
jle 0x1402268e9
imul rax, qword [rsp + 0x60], 0x28
add rax, qword [r12 + 0x78]
mov r14, qword [rax]
mov edx, dword [rax + 8]
mov dword [rsp + 0x100], 0
movzx eax, byte [r14]
mov dword [rsp + 0xc4], edx
test al, al
js 0x14022679f
mov dword [rsp + 0x104], eax
mov r8d, 1
jmp 0x1402267b3
mov rdx, qword [rsp + 0xe8]
mov rcx, r14
call fcn.1401e8160
movzx r8d, al
movsxd rbp, dword [rsp + 0x104]
cmp ebp, r8d
jle 0x1402267d4
mov dword [rsp + 0xc8], 0
cmp dword [rsp + 0xc4], ebp
jge 0x140226806
mov ecx, 0x14162
jmp 0x140226860
mov ecx, dword [rsp + 0x100]
call fcn.14020beb0
inc dword [rsp + 0xc8]
mov edx, dword [rsp + 0xc8]
add eax, ebp
cmp dword [rsp + 0xac], edx
jl 0x140226852
movsxd rbp, eax
movsxd rcx, r8d
add rcx, r14
movzx eax, byte [rcx]
test al, al
js 0x14022681e
mov dword [rsp + 0x100], eax
mov al, 1
jmp 0x14022683b
mov rdx, qword [rsp + 0xf0]
mov dword [rsp + 0xfc], r8d
call fcn.1401e8160
mov r8d, dword [rsp + 0xfc]
movzx eax, al
add r8d, eax
cmp r8d, dword [rsp + 0x104]
jle 0x1402267de
mov ecx, 0x14168
jmp 0x140226860
cmp dword [rsp + 0xc4], eax
jge 0x14022686b
mov ecx, 0x1416e
call fcn.1401d41b0
test eax, eax
jne 0x1402268dd
jmp 0x1402268aa
test r13, r13
jne 0x140226882
mov rcx, qword [rsp + 0x68]
call fcn.1402015f0
mov r13, rax
test rax, rax
je 0x1402268a3
mov edx, dword [rsp + 0x100]
lea rcx, [r14 + rbp]
mov r8, r13
call fcn.14020bdd0
mov rax, qword [rsp + 0x68]
mov al, byte [rax + 0x64]
mov byte [r13 + 0x16], al
jmp 0x1402268aa
mov edi, 7
jmp 0x1402268df
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x140226e45
mov r8, qword [rsp + 0xb8]
mov rdx, r13
call fcn.1401ec2e0
cmp eax, 0x80000000
adc dword [rsp + 0xa0], 0
jmp 0x140226e45
mov edi, eax
inc qword [rsp + 0x60]
jmp 0x14022674e
mov r10d, dword [rsp + 0x80]
sub r10d, dword [rsp + 0xa0]
cmp qword [rsp + 0x48], 0
sete dl
cmp qword [rsp + 0x40], 0
sete al
or dl, al
jne 0x140226917
xor edi, edi
cmp r10d, 1
jle 0x140226947
movsxd rcx, dword [r12 + 0x68]
mov edi, 1
call fcn.1401ebd00
test r10d, r10d
mov ecx, 1
cmovg ecx, r10d
movsx r9d, ax
movsxd rcx, ecx
call fcn.1401ebd00
cwde
sub r9d, eax
sub word [rbx + 0x16], r9w
mov rcx, qword [rsp + 0x108]
call fcn.140201590
mov rcx, qword [rsp + 0x110]
call fcn.140201590
mov rcx, r13
call fcn.140201590
test edi, edi
jne 0x140226bdc
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, dword [rsp + 0x5c]
test rdi, rdi
je 0x14022699d
mov edx, dword [rdi + 0x10]
test dx, dx
jg 0x140226990
add eax, edx
jmp 0x14022699d
test byte [rdi + 0x12], 0x80
jne 0x14022699d
mov eax, dword [rsp + 0x5c]
sub eax, 0x14
test rbp, rbp
je 0x1402269cb
mov edx, dword [rbp + 0x10]
test dx, dx
jg 0x1402269ae
add eax, edx
jmp 0x1402269b7
test byte [rbp + 0x12], 0x80
jne 0x1402269b7
sub eax, 0x14
test rdi, rdi
je 0x1402269cb
cmp word [rdi + 0x10], 0
jle 0x1402269cb
test dx, dx
jle 0x1402269cb
sub eax, 0x14
xor edx, edx
test rdi, rdi
mov ecx, dword [rsp + 0x5c]
setne dl
cmp rbp, 1
sbb edx, 0xffffffff
sub ecx, edx
cmp ax, 0xa
mov edx, 0xa
cmovl eax, edx
cwde
cmp eax, ecx
cmovg eax, ecx
jmp 0x140226e9a
lea eax, [rbp + 1]
mov word [rsp + 0x5c], ax
mov word [rbx + 0x18], ax
mov eax, dword [rdi + 0x10]
test ax, ax
jg 0x140226a28
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + 0x70]
cmp word [rdx + rcx], 0
js 0x140226a28
add ax, word [rbx + 0x16]
sub eax, dword [rsp + 0x58]
jmp 0x140226e9a
cmp word [rsp + 0xa8], 0
mov qword [rsp + 0x108], 0
jne 0x140226e78
cmp dword [rsi + 0x68], 0
je 0x140226e78
movzx eax, word [rsp + 0x5c]
mov dword [rsp + 0x68], eax
cmp dword [rsi + 0x6c], eax
jl 0x140226e78
cmp word [rsp + 0x80], 0
je 0x140226a77
mov rax, qword [rdi]
test byte [rax + 5], 0x10
jne 0x140226e78
mov rax, qword [rsp + 0x78]
test byte [rax + 0x61], 8
jne 0x140226e78
mov rax, qword [rdi]
test r14w, 0x182
je 0x140226ab2
mov r8, qword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x108]
mov rdx, r15
call fcn.140224ee0
mov r12d, eax
jmp 0x140226b66
mov rbp, qword [rax + 0x20]
mov rax, qword [r15 + 0x10]
xor r10d, r10d
lea r9, [rsp + 0x110]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x10]
movsx ecx, word [rax]
call fcn.1401ebe30
mov r11d, dword [r15 + 0x28]
mov r13, rax
cmp dword [rbp], r10d
jle 0x140226b50
mov rax, r10
mov rcx, qword [rsp + 0x50]
mov rdx, r15
mov dword [rsp + 0xac], r11d
shl rax, 5
mov qword [rsp + 0xa0], r10
mov r8, qword [rbp + rax + 8]
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x110], r13
call fcn.140224ee0
mov r10, qword [rsp + 0xa0]
mov r11d, dword [rsp + 0xac]
mov rdx, qword [rsp + 0x110]
add qword [rsp + 0x60], rdx
mov r12d, eax
inc r10
test eax, eax
mov dword [r15 + 0x28], r11d
mov r9, qword [rsp + 0x80]
je 0x140226adc
jmp 0x140226b66
cmp r13, qword [rsp + 0x60]
cmova r13, qword [rsp + 0x60]
xor r12d, r12d
mov qword [rsp + 0x108], r13
cmp r12d, 0xc
je 0x140226b75
test r12d, r12d
jne 0x140226cfc
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x140226e78
call fcn.1401ebd00
cmp dword [rsp + 0x68], 1
mov word [rbx + 0x16], ax
jne 0x140226bbe
mov rcx, qword [rsi + 0x10]
movsx edx, ax
add edx, 9
movsx ecx, word [rcx]
cmp edx, ecx
jl 0x140226bbe
mov dx, word [rdi + 0x12]
mov ecx, edx
or ch, 0x40
mov word [rdi + 0x12], cx
and dh, 0x20
je 0x140226bbe
or byte [r15 + 0x2d], 4
cmp ax, word [rsp + 0x9a]
jle 0x140226bd4
mov ax, word [rsp + 0x9a]
mov word [rbx + 0x16], ax
mov eax, dword [rsp + 0x58]
sub word [rbx + 0x16], ax
mov al, byte [rsi + 0x64]
mov bp, word [rbx + 0x16]
and eax, 3
cmp al, 3
jne 0x140226bef
lea eax, [rbp + 0x10]
jmp 0x140226c0d
movsx eax, word [rsi + 0x5c]
mov rdi, qword [rsp + 0x1e8]
imul eax, eax, 0xf
mov rdx, qword [rdi + 0x20]
movsx ecx, word [rdx + 0x3c]
cdq
idiv ecx
lea eax, [rbp + rax + 1]
movsx ecx, word [rsp + 0xaa]
movsx edx, ax
call fcn.1401ebd60
mov word [rbx + 0x14], ax
test dword [rbx + 0x38], 0x4000140
jne 0x140226c3c
lea edx, [rbp + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.1401ebd60
mov word [rbx + 0x14], ax
mov edi, dword [rsp + 0x58]
add edi, dword [rsp + 0xa8]
mov rdx, rbx
lea eax, [rdi + rbp]
add word [rbx + 0x14], di
mov rcx, qword [r15 + 8]
mov word [rbx + 0x16], ax
mov r8d, dword [rsp + 0xc0]
call fcn.1402281d0
mov rdx, rbx
mov rcx, r15
call fcn.140227f40
mov r12d, eax
mov eax, dword [rbx + 0x38]
test al, 2
cmovne bp, word [rsp + 0x9a]
mov word [rbx + 0x16], bp
test al, 0x10
jne 0x140226ccb
mov eax, dword [rbx + 0x18]
cmp ax, word [rsi + 0x60]
jae 0x140226ccb
cmp ax, word [rsi + 0x5e]
jb 0x140226ca4
mov dl, byte [rsi + 0x64]
and edx, 3
cmp dl, 2
je 0x140226ccb
cmp ax, 3
jbe 0x140226cb4
mov rcx, qword [rsp + 0x50]
call fcn.1401f79b0
mov rdx, qword [rsp + 0x1e8]
movsx r9d, di
mov r8, rsi
mov rcx, r15
call fcn.140225c30
mov ax, word [rsp + 0x9a]
mov word [rbx + 0x16], ax
mov eax, dword [rsp + 0xf8]
mov dword [r15 + 0x28], eax
jmp 0x140226ce7
xor r12d, r12d
lea rcx, [rsp + 0x120]
call fcn.140229680
mov rdi, rax
jmp 0x140225dba
mov rax, qword [rsp + 0xb0]
mov di, word [rsp + 0xde]
mov qword [rbx], rax
mov rax, qword [rsp + 0xe0]
mov qword [rbx + 0x16], rax
mov rax, qword [rsp + 0xd0]
mov qword [rbx + 0x38], rax
cmp word [rsp + 0x8a], di
jne 0x140226ea3
mov edx, dword [rsp + 0x8c]
movzx eax, word [rsi + 0x5e]
inc edx
cmp edx, eax
jge 0x140226ea3
mov edi, dword [rsp + 0x98]
cmp word [rsp + 0x8a], di
jne 0x140226ea3
mov al, byte [rsi + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x140226ea3
mov rax, qword [rsp + 0x78]
test byte [rax + 0x61], 0x40
jne 0x140226ea3
mov rax, qword [rsi + 0x10]
mov rdi, qword [rsp + 0x70]
cmp word [rax + rdi + 2], 0x29
jle 0x140226ea3
movzx r8d, word [rsp + 0x98]
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
inc r8d
call fcn.140228350
mov r12d, eax
test eax, eax
jne 0x140226ea3
movzx eax, word [rbx + 0x3c]
mov rdx, qword [rbx + 0x48]
mov r8, rsi
inc word [rbx + 0x18]
mov rdi, qword [rsp + 0x70]
lea ecx, [rax + 1]
inc word [rbx + 0x3e]
mov word [rbx + 0x3c], cx
mov rcx, r15
mov qword [rdx + rax*8], 0
mov rax, qword [rsi + 0x10]
or dword [rbx + 0x38], 0x8000
mov r9w, word [rax + rdi]
mov ax, word [rax + rdi + 2]
mov edi, dword [rsp + 0xcc]
mov edx, eax
sub edx, r9d
add word [rbx + 0x16], dx
lea r9d, [r9 + rdi + 5]
mov rdx, qword [rsp + 0x1e8]
sub r9d, eax
movsx r9d, r9w
call fcn.140225c30
mov ax, word [rsp + 0x9a]
mov word [rbx + 0x16], ax
mov ax, word [rsp + 0x8a]
mov word [rbx + 0x18], ax
mov word [rbx + 0x3e], ax
mov eax, dword [rsp + 0x9c]
mov dword [rbx + 0x38], eax
jmp 0x140226ea3
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x1402268df
mov r8, qword [rsp + 0xb8]
mov rdx, r13
call fcn.1401ec2e0
cmp eax, 0x80000000
adc dword [rsp + 0x80], 0
jmp 0x1402268df
mov rdx, qword [rsi + 0x10]
movzx ebp, word [rsp + 0x5c]
mov ax, word [rbx + 0x16]
add ax, word [rdx + rbp*2]
sub ax, word [rdx + rbp*2 - 2]
test r14w, 0x100
lea edx, [rax + 0xa]
cmovne eax, edx
mov word [rbx + 0x16], ax
jmp 0x140226bdc
mov eax, r12d
add rsp, 0x198
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret