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

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x148]
sub rsp, 0x248
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor edi, edi
mov dword [rbp - 0x5c], r9d
mov r9, rcx
mov qword [rbp - 0x78], rcx
xor ecx, ecx
mov qword [rbp - 0x50], r8
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x54], edi
mov r10, qword [r9 + 0x48]
mov qword [rsp + 0x70], r10
mov dword [rbp - 0x60], edi
mov dword [rbp + 0xf8], ecx
mov byte [rbp + 0xfc], cl
mov dword [rbp - 0x30], edi
mov qword [rbp - 0x20], rdi
test r8, r8
jne 0x14017d6ba
lea eax, [rdi + 7]
jmp 0x14017ec1d
movzx ecx, word [r9 + 0x18]
movzx r8d, byte [r9 + 0xc]
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x240], rsi
mov qword [rsp + 0x238], r12
mov qword [rsp + 0x230], r13
lea ebx, [r8 + rcx]
mov qword [rsp + 0x228], r14
mov qword [rsp + 0x220], r15
cmp ebx, 2
jae 0x14017d701
mov edx, edi
jmp 0x14017d729
test edx, edx
jne 0x14017d709
mov edx, edi
jmp 0x14017d71c
cmp edx, ebx
jne 0x14017d71a
mov eax, dword [rbp + 0x180]
lea edx, [rax - 2]
add edx, ebx
jmp 0x14017d722
dec edx
mov eax, dword [rbp + 0x180]
mov ebx, 2
sub ebx, eax
mov eax, edx
mov dword [rsp + 0x68], edx
sub eax, r8d
mov dword [rsp + 0x78], ebx
add eax, ebx
lea r11d, [rbx + 1]
mov dword [rsp + 0x6c], r11d
cmp eax, ecx
jne 0x14017d750
movzx ecx, byte [r9 + 9]
add rcx, 8
jmp 0x14017d76c
add eax, eax
movsxd rcx, eax
mov rax, qword [r9 + 0x60]
movzx edx, word [rcx + rax]
movzx eax, word [r9 + 0x1a]
ror dx, 8
movzx ecx, dx
and rcx, rax
add rcx, qword [r9 + 0x50]
lea r12, [rbp + 0x58]
mov qword [rbp - 0x58], rcx
mov eax, dword [rcx]
movsxd rcx, ebx
bswap eax
mov dword [rbp - 0x68], eax
mov esi, eax
mov dword [rbp - 0x70], eax
lea r12, [r12 + rcx*4]
mov qword [rbp - 0x38], rcx
lea r15, [rcx*8]
lea rcx, [0x140257244]
movsxd r13, ebx
cmp esi, dword [r10 + 0x40]
jbe 0x14017d7da
mov qword [rsp + 0x20], rcx
lea r8, str.database_corruption
mov ecx, VariantTimeToDosDateTime
lea rdx, str._s_at_line__d_of___.10s_
mov r9d, 0x103d4
call fcn.140174d40
mov r14d, VariantTimeToDosDateTime
mov dword [rsp + 0x44], r14d
jmp 0x14017d8c7
mov rax, qword [r10]
lea r8, [rsp + 0x60]
xor r9d, r9d
mov edx, esi
mov rcx, rax
call qword [rax + 0x108]
mov dword [rsp + 0x44], eax
mov r14d, eax
test eax, eax
jne 0x14017d8c7
mov rdx, qword [rsp + 0x60]
mov rax, qword [rdx + 0x10]
mov qword [rbp + r15 + 0x70], rax
cmp byte [rax], r14b
jne 0x14017d8c0
mov rcx, qword [rdx + 0x10]
cmp esi, dword [rcx + 4]
je 0x14017d84c
mov rax, qword [rdx + 8]
cmp esi, 1
mov qword [rcx + 0x50], rax
mov rax, qword [rsp + 0x70]
mov qword [rcx + 0x48], rax
mov eax, edi
mov qword [rcx + 0x70], rdx
mov edx, 0x64
cmove eax, edx
mov dword [rcx + 4], esi
mov byte [rcx + 9], al
mov rax, qword [rbp + r15 + 0x70]
mov rcx, rax
call fcn.1401801a0
mov dword [rsp + 0x44], eax
mov r14d, eax
test eax, eax
je 0x14017d8c0
mov r8, qword [rbp + r15 + 0x70]
test r8, r8
je 0x14017d8c7
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x14017d8b6
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + 0x90]
jmp 0x14017d8c7
mov rcx, r8
call fcn.1401c9be0
jmp 0x14017d8c7
mov r14d, edi
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], r14d
test r14d, r14d
jne 0x14017eb60
mov rcx, qword [rbp + r15 + 0x70]
cmp dword [rcx + 0x14], r14d
jge 0x14017d8f8
call fcn.14017f410
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14017da24
mov ecx, ebx
sub r12, 4
dec ebx
sub r15, 8
test ecx, ecx
je 0x14017db12
mov r8, qword [rbp - 0x78]
movzx edx, byte [r8 + 0xc]
test dl, dl
je 0x14017d965
mov eax, dword [rsp + 0x68]
movzx ecx, word [r8 + 0x1c]
add eax, ebx
cmp eax, ecx
jne 0x14017d965
mov rdx, qword [r8 + 0x28]
mov rcx, r8
mov qword [rbp + r15 + 0x100], rdx
mov r14d, dword [rdx]
bswap r14d
mov dword [rbp - 0x68], r14d
mov dword [rbp - 0x70], r14d
call qword [r8 + 0x78]
mov r10, qword [rsp + 0x70]
mov esi, r14d
movzx eax, ax
mov dword [r12], eax
mov rax, qword [rbp - 0x78]
mov byte [rax + 0xc], 0
jmp 0x14017d797
mov ecx, dword [rsp + 0x68]
movzx eax, dl
sub ecx, eax
mov rax, qword [r8 + 0x60]
add ecx, ebx
add ecx, ecx
movsxd rcx, ecx
movzx edx, word [rcx + rax]
mov rcx, r8
movzx eax, word [r8 + 0x1a]
ror dx, 8
movzx edi, dx
and rdi, rax
add rdi, qword [r8 + 0x50]
mov rdx, rdi
mov qword [rbp + r15 + 0x100], rdi
mov eax, dword [rdi]
bswap eax
mov dword [rbp - 0x68], eax
mov esi, eax
mov dword [rbp - 0x70], eax
call qword [r8 + 0x78]
mov rdx, qword [rsp + 0x70]
movzx r14d, ax
mov dword [r12], r14d
test byte [rdx + 0x28], 0xc
je 0x14017d9fb
mov rax, qword [rbp - 0x78]
mov ecx, edi
sub ecx, dword [rax + 0x50]
lea eax, [r14 + rcx]
cmp eax, dword [rdx + 0x38]
jg 0x14017da3c
movsxd rcx, ecx
mov r8d, r14d
add rcx, qword [rbp - 0x50]
mov rdx, rdi
call fcn.140132e10
mov rcx, qword [rbp - 0x78]
sub rdi, qword [rcx + 0x50]
add rdi, qword [rbp - 0x50]
mov qword [rbp + r15 + 0x100], rdi
jmp 0x14017d9ff
mov rcx, qword [rbp - 0x78]
movzx eax, byte [rcx + 0xc]
lea r9, [rsp + 0x40]
mov edx, dword [rsp + 0x68]
mov r8d, r14d
sub edx, eax
add edx, ebx
call fcn.1401889b0
mov r10, qword [rsp + 0x70]
xor edi, edi
jmp 0x14017d797
movsxd r8, ebx
lea rcx, [rbp + 0x70]
xor edx, edx
lea r8, [r8*8]
call fcn.140132a80
jmp 0x14017da80
lea rax, [0x140257244]
mov r9d, 0x1192d
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, VariantTimeToDosDateTime
call fcn.140174d40
mov r8, r13
lea rcx, [rbp + 0x70]
shl r8, 3
xor edx, edx
mov r14d, VariantTimeToDosDateTime
call fcn.140132a80
xor edi, edi
movsxd rax, dword [rsp + 0x6c]
mov r15, qword [rsp + 0x220]
mov rsi, rax
mov r13, qword [rsp + 0x230]
mov r12, qword [rsp + 0x238]
test eax, eax
jle 0x14017eb8e
mov rbx, rdi
nop dword [rax + rax]
mov r8, qword [rbp + rbx*8 + 0x70]
test r8, r8
je 0x14017eb82
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x14017eb7a
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + 0x90]
jmp 0x14017eb82
mov rax, qword [rsp + 0x70]
mov esi, dword [rsp + 0x6c]
mov r8d, dword [rax + 0x34]
mov eax, 0xaaaaaaab
lea ecx, [r8 - 8]
mul ecx
mov ebx, edx
shr ebx, 2
add ebx, 4
imul ebx, esi
add ebx, 3
and ebx, 0xfffffffc
lea eax, [rbx + rbx*4]
lea ecx, [r8 + rax*2]
movsxd rcx, ecx
call fcn.1401c6070
mov qword [rbp - 0x20], rax
mov r8, rax
test rax, rax
jne 0x14017db5f
lea r14d, [rax + 7]
jmp 0x14017da80
movsxd rax, ebx
xor r12d, r12d
mov r13d, r12d
lea rdx, [r8 + rax*8]
lea rax, [rax + rax*4]
mov qword [rbp - 0x18], rdx
lea rax, [r8 + rax*2]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x28], rax
movzx r9d, byte [rax + 8]
movzx r10d, byte [rax + 3]
shl r9w, 2
mov word [rsp + 0x4c], r9w
mov dword [rsp + 0x48], r10d
test esi, esi
jle 0x14017ddf6
nop word [rax + rax]
mov r14, qword [rbp + r12*8 + 0x70]
mov rax, qword [rbp + 0x70]
mov rdi, qword [r14 + 0x50]
mov rcx, qword [rax + 0x50]
movzx ebx, word [r14 + 0x12]
movzx esi, word [r14 + 0x18]
add rbx, rdi
movzx r15d, word [r14 + 0x1a]
movzx eax, byte [rcx]
cmp byte [rdi], al
jne 0x14017dfe8
movzx r8d, byte [r14 + 0xc]
movzx eax, si
add r8, rax
movsxd rax, dword [rbp - 0x30]
add r8, r8
lea rcx, [rdx + rax*2]
xor edx, edx
call fcn.140132a80
movzx ecx, byte [r14 + 0xc]
test cl, cl
je 0x14017dc94
movzx eax, word [r14 + 0x1c]
cmp si, ax
jb 0x14017dde1
mov r9d, dword [rbp - 0x30]
xor r10d, r10d
mov r11, qword [rbp - 0x20]
cmp r10w, ax
jae 0x14017dc61
movzx edx, ax
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
movzx eax, r15w
and rcx, rax
movsxd rax, r9d
add rcx, rdi
inc r9d
mov qword [r11 + rax*8], rcx
sub rdx, 1
jne 0x14017dc30
movzx ecx, byte [r14 + 0xc]
mov dword [rbp - 0x30], r9d
mov r8d, r10d
test cl, cl
je 0x14017dc97
lea rdx, [r14 + 0x28]
nop dword [rax]
mov rax, qword [rdx]
lea rdx, [rdx + 8]
movsxd rcx, r9d
inc r8d
inc r9d
mov qword [r11 + rcx*8], rax
movzx eax, byte [r14 + 0xc]
cmp r8d, eax
jl 0x14017dc70
mov dword [rbp - 0x30], r9d
jmp 0x14017dc97
xor r10d, r10d
movzx edx, word [r14 + 0x18]
movzx ecx, word [r14 + 0x12]
mov r9d, dword [rbp - 0x30]
add rcx, rdi
lea rax, [rcx + rdx*2]
mov rdx, r10
mov r8, rax
sub r8, rbx
inc r8
shr r8, 1
cmp rbx, rax
cmova r8, r10
test r8, r8
je 0x14017dcfe
mov r10, qword [rbp - 0x20]
nop dword [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
ror ax, 8
inc rdx
movzx ecx, ax
movzx eax, r15w
and rcx, rax
movsxd rax, r9d
add rcx, rdi
inc r9d
mov qword [r10 + rax*8], rcx
cmp rdx, r8
jb 0x14017dcd0
mov dword [rbp - 0x30], r9d
mov r10d, dword [rsp + 0x48]
mov dword [rbp + r12*4 + 0xc8], r9d
cmp r13d, dword [rsp + 0x78]
jge 0x14017ddc2
test r10b, r10b
jne 0x14017ddc2
movzx ecx, word [rbp + r12*4 + 0x58]
movsxd r15, dword [rsp + 0x54]
mov r8d, ecx
mov rax, qword [rbp - 0x18]
mov rbx, r15
add rbx, qword [rsp + 0x60]
add r15d, ecx
mov rdx, qword [rbp + r12*8 + 0x100]
movsxd rdi, r9d
lea rsi, [rax + rdi*2]
mov dword [rsp + 0x54], r15d
mov word [rsi], cx
mov rcx, rbx
call fcn.140132e10
movzx r9d, word [rsp + 0x4c]
mov r8, qword [rbp - 0x20]
lea rax, [rbx + r9]
mov qword [r8 + rdi*8], rax
sub word [rsi], r9w
cmp byte [r14 + 8], 0
jne 0x14017dd8f
mov rax, qword [r14 + 0x50]
mov rcx, qword [r8 + rdi*8]
inc dword [rbp - 0x30]
mov r10d, dword [rsp + 0x48]
mov eax, dword [rax + 8]
mov dword [rcx], eax
jmp 0x14017ddc8
cmp word [rsi], 4
jae 0x14017ddb8
mov rcx, qword [rsp + 0x60]
movsxd rax, r15d
add rcx, rax
mov byte [rcx], 0
lea rcx, [rcx + 1]
inc word [rsi]
inc r15d
cmp word [rsi], 4
jb 0x14017dda0
mov dword [rsp + 0x54], r15d
inc dword [rbp - 0x30]
mov r10d, dword [rsp + 0x48]
jmp 0x14017ddc8
movzx r9d, word [rsp + 0x4c]
movsxd rsi, dword [rsp + 0x6c]
inc r13d
inc r12
cmp r12, rsi
jge 0x14017ddf3
mov rdx, qword [rbp - 0x18]
jmp 0x14017dbb0
mov ecx, 0x11988
call fcn.1401b01f0
mov r14d, eax
jmp 0x14017eaec
xor r12d, r12d
mov rax, qword [rsp + 0x70]
mov ecx, r12d
movzx r9d, r9w
mov dword [rsp + 0x50], ecx
mov eax, dword [rax + 0x38]
add eax, 0xfffffff4
add r9d, eax
mov dword [rsp + 0x54], r9d
test esi, esi
jle 0x14017df25
mov rdx, r12
lea r15, [rbp + 0x20]
mov qword [rsp + 0x60], rdx
lea r12, [rbp - 0x10]
lea r13, [rbp + 0x1c]
mov r8d, dword [rbp + rdx*4 + 0xc8]
mov rbx, qword [rbp + rdx*8 + 0x70]
mov dword [rsp + 0x78], r8d
mov rax, qword [rbx + 0x58]
mov qword [r12], rax
mov dword [r15], r8d
test ecx, ecx
je 0x14017de69
cmp r8d, dword [r13]
jne 0x14017de69
dec ecx
sub r12, 8
sub r13, 4
mov dword [rsp + 0x50], ecx
sub r15, 4
test r10b, r10b
jne 0x14017de93
mov rax, qword [rbp - 0x78]
add r12, 8
inc ecx
add r13, 4
add r15, 4
mov dword [rsp + 0x50], ecx
mov rax, qword [rax + 0x58]
mov qword [r12], rax
lea eax, [r8 + 1]
mov dword [r15], eax
mov edi, r9d
lea rax, [rbp + 0x58]
sub edi, dword [rbx + 0x14]
lea rax, [rax + rdx*4]
xor r14d, r14d
mov qword [rbp - 0x80], rax
mov dword [rax], edi
cmp byte [rbx + 0xc], r14b
jbe 0x14017def7
lea rsi, [rbx + 0x28]
mov rdx, qword [rsi]
mov rcx, rbx
call qword [rbx + 0x78]
movzx eax, ax
inc r14d
add eax, 2
lea rsi, [rsi + 8]
add edi, eax
movzx eax, byte [rbx + 0xc]
cmp r14d, eax
jl 0x14017deb4
mov rax, qword [rbp - 0x80]
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x78]
mov r9d, dword [rsp + 0x54]
mov r10d, dword [rsp + 0x48]
mov esi, dword [rsp + 0x6c]
mov dword [rax], edi
inc ecx
mov dword [rbp + rdx*4 + 0x40], r8d
inc rdx
movsxd rax, esi
add r12, 8
mov qword [rsp + 0x60], rdx
add r13, 4
mov dword [rsp + 0x50], ecx
add r15, 4
cmp rdx, rax
jl 0x14017de30
xor r12d, r12d
mov edx, esi
mov r13d, r12d
mov dword [rsp + 0x50], edx
test esi, esi
jle 0x14017e129
mov ecx, dword [rbp - 0x30]
mov r15d, 1
mov r14, r12
mov ebx, dword [rbp + r14 + 0x58]
cmp ebx, r9d
jle 0x14017e03a
cmp r15d, edx
jl 0x14017df76
lea eax, [r15 + 1]
mov dword [rsp + 0x50], eax
cmp r14, 0xc
jg 0x14017e113
mov dword [rbp + r14 + 0x5c], r12d
mov ebx, dword [rbp + r14 + 0x58]
mov dword [rbp + r14 + 0x44], ecx
movsxd rdi, dword [rbp + r14 + 0x40]
mov rcx, qword [rbp - 0x18]
mov rax, rdi
lea esi, [rdi - 1]
movzx eax, word [rcx + rdi*2 - 2]
test ax, ax
jne 0x14017dfa8
mov edx, esi
lea rcx, [rbp - 0x30]
call fcn.140185250
mov rcx, qword [rbp - 0x18]
mov r9d, dword [rsp + 0x54]
mov r10d, dword [rsp + 0x48]
movzx eax, ax
add eax, 2
sub ebx, eax
mov dword [rbp + r14 + 0x58], ebx
test r10b, r10b
jne 0x14017e020
cmp edi, dword [rbp - 0x30]
jge 0x14017e01d
mov rax, rdi
movzx eax, word [rcx + rdi*2]
test ax, ax
jne 0x14017dfdb
mov edx, edi
lea rcx, [rbp - 0x30]
call fcn.140185250
mov r10d, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
jmp 0x14017e020
mov r9d, 0x11970
lea rax, [0x140257244]
mov ecx, VariantTimeToDosDateTime
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140174d40
mov r14d, VariantTimeToDosDateTime
jmp 0x14017eaec
mov eax, r12d
add dword [rbp + r14 + 0x5c], eax
mov ecx, dword [rbp - 0x30]
mov edx, dword [rsp + 0x50]
mov dword [rbp + r14 + 0x40], esi
cmp ebx, r9d
jg 0x14017df50
mov edi, dword [rbp + r14 + 0x40]
cmp edi, ecx
jge 0x14017e0d6
mov rdx, qword [rbp - 0x18]
nop dword [rax + rax]
movsxd rax, edi
movsxd rsi, edi
movzx eax, word [rdx + rax*2]
test ax, ax
jne 0x14017e076
mov edx, edi
lea rcx, [rbp - 0x30]
call fcn.140185250
mov ecx, dword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r9d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
add ebx, eax
cmp ebx, r9d
jg 0x14017e0f6
inc edi
mov dword [rbp + r14 + 0x58], ebx
cmp byte [rsp + 0x48], 0
mov dword [rbp + r14 + 0x40], edi
jne 0x14017e0c9
cmp edi, ecx
jge 0x14017e0c6
mov rax, rsi
movzx eax, word [rdx + rsi*2 + 2]
test ax, ax
jne 0x14017e0be
mov edx, edi
lea rcx, [rbp - 0x30]
call fcn.140185250
mov ecx, dword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r9d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
jmp 0x14017e0c9
mov eax, r12d
sub dword [rbp + r14 + 0x5c], eax
cmp edi, ecx
jl 0x14017e050
mov edx, r15d
mov dword [rsp + 0x50], edx
inc r13d
inc r15d
add r14, 4
cmp r13d, edx
jge 0x14017e129
mov r10d, dword [rsp + 0x48]
jmp 0x14017df42
cmp edi, ecx
jge 0x14017e0d6
test r13d, r13d
jle 0x14017e106
mov eax, dword [rbp + r14 + 0x3c]
jmp 0x14017e109
mov eax, r12d
cmp edi, eax
jle 0x14017e11e
mov edx, dword [rsp + 0x50]
jmp 0x14017e0dd
mov r9d, 0x119ed
jmp 0x14017dfee
mov r9d, 0x11a0e
jmp 0x14017dfee
lea eax, [rdx - 1]
movsxd rsi, eax
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x78], eax
test eax, eax
jle 0x14017e296
lea rax, [rbp + 0x40]
lea rcx, [rbp + 0x58]
sub rax, rcx
add rax, 0xfffffffffffffffc
mov qword [rbp + 0x100], rax
nop word [rax + rax]
mov r12d, dword [rbp + rsi*4 + 0x54]
lea rax, [rbp + 0x58]
mov r14d, dword [rax + rsi*4]
lea rax, [rax + rsi*4]
mov r8d, dword [rbp + rsi*4 + 0x3c]
mov rdi, qword [rbp - 0x18]
mov qword [rbp - 0x48], rax
lea rax, [rbp + rsi*4 + 0x54]
mov qword [rbp - 0x40], rax
lea ebx, [r8 - 1]
mov eax, ebx
sub eax, dword [rsp + 0x48]
movsxd r15, eax
inc r15
cmp word [rdi + r15*2], 0
lea edx, [rax + 1]
lea r15, [rdi + r15*2]
jne 0x14017e1b4
lea rcx, [rbp - 0x30]
call fcn.140185250
mov r8d, dword [rbp + rsi*4 + 0x3c]
movsxd rax, ebx
lea rsi, [rdi + rax*2]
nop dword [rax + rax]
cmp word [rsi], 0
mov edi, r8d
mov r8d, ebx
jne 0x14017e1da
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.140185250
mov r8d, ebx
test r14d, r14d
je 0x14017e217
cmp dword [rbp + 0x180], 0
jne 0x14017e24a
mov ecx, dword [rsp + 0x50]
mov eax, 2
dec ecx
mov edx, r12d
cmp dword [rsp + 0x78], ecx
mov ecx, 0
cmove eax, ecx
lea ecx, [r14 + 2]
sub edx, eax
movzx eax, word [rsi]
sub edx, eax
movzx eax, word [r15]
add ecx, eax
cmp ecx, edx
jg 0x14017e24a
movzx eax, word [r15]
mov ecx, 0xfffffffe
add eax, 2
sub r15, 2
add r14d, eax
mov edi, ebx
movzx eax, word [rsi]
sub rsi, 2
sub ecx, eax
mov rax, qword [rsp + 0x60]
add r12d, ecx
mov dword [rbp + rax*4 + 0x3c], ebx
sub ebx, 1
jns 0x14017e1c0
mov rax, qword [rbp - 0x48]
mov rsi, qword [rsp + 0x60]
mov dword [rax], r14d
mov rax, qword [rbp - 0x40]
mov dword [rax], r12d
xor r12d, r12d
cmp rsi, 1
jle 0x14017e272
mov rcx, qword [rbp + 0x100]
mov eax, dword [rax + rcx]
jmp 0x14017e275
mov eax, r12d
cmp edi, eax
jle 0x14017e30b
dec dword [rsp + 0x78]
dec rsi
mov qword [rsp + 0x60], rsi
test rsi, rsi
jg 0x14017e160
mov edx, dword [rsp + 0x50]
mov rax, qword [rbp + 0x70]
movsxd rsi, edx
mov rcx, qword [rax + 0x50]
movzx r15d, byte [rcx]
mov dword [rbp - 0x80], r15d
test edx, edx
jle 0x14017e413
mov rbx, r12
mov r13d, 1
nop word [rax + rax]
movsxd rcx, dword [rsp + 0x6c]
cmp rbx, rcx
jge 0x14017e366
mov rax, qword [rbp + rbx*8 + 0x70]
mov qword [rbp + rbx*8 + 0x88], rax
mov qword [rbp + rbx*8 + 0x70], r12
mov qword [rsp + 0x60], rax
mov rcx, qword [rax + 0x70]
test byte [rcx + 0x34], 4
mov rdx, qword [rcx + 0x28]
je 0x14017e320
mov eax, dword [rcx + 0x30]
cmp dword [rdx + 0x1c], eax
jb 0x14017e320
cmp dword [rdx + 0x80], 0
je 0x14017e316
call fcn.1401f3ae0
jmp 0x14017e348
mov r9d, 0x11a38
jmp 0x14017dfee
mov r14d, r12d
mov dword [rsp + 0x44], r12d
jmp 0x14017e34f
mov r14d, dword [rdx + 0x2c]
mov dword [rsp + 0x44], r14d
test r14d, r14d
jne 0x14017e34f
mov eax, dword [rdx + 0xbc]
cmp dword [rdx + 0xb8], eax
jbe 0x14017e343
call fcn.14019a5a0
jmp 0x14017e348
call fcn.14019b7b0
mov r14d, eax
mov dword [rsp + 0x44], eax
inc dword [rsp + 0x58]
mov dword [rsp + 0x40], r14d
test r14d, r14d
jne 0x14017eaec
jmp 0x14017e407
mov r9d, dword [rbp - 0x68]
lea r8, [rbp - 0x70]
cmp dword [rbp + 0x180], 0
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
cmovne r9d, r13d
mov byte [rsp + 0x20], 0
call fcn.14017a740
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14017eaec
mov rdi, qword [rsp + 0x60]
mov edx, r15d
mov rcx, rdi
call fcn.14020a930
mov rcx, qword [rsp + 0x70]
inc dword [rsp + 0x58]
mov eax, dword [rbp - 0x30]
mov qword [rbp + rbx*8 + 0x88], rdi
mov dword [rbp + rbx*4 + 0xc8], eax
cmp byte [rcx + 0x21], r14b
je 0x14017e401
mov edx, dword [rdi + 4]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8b, 5
mov rax, qword [rbp - 0x78]
mov r9d, dword [rax + 4]
call fcn.14019dc30
mov r14d, dword [rsp + 0x40]
mov dword [rsp + 0x44], r14d
test r14d, r14d
jne 0x14017eaec
mov eax, dword [rbp - 0x70]
mov dword [rbp - 0x68], eax
inc rbx
cmp rbx, rsi
jl 0x14017e2c0
movsxd rdx, dword [rsp + 0x58]
mov rsi, rdx
test edx, edx
jle 0x14017e55c
mov rdx, r12
nop word [rax + rax]
mov rax, qword [rbp + rdx*8 + 0x88]
mov r8d, dword [rax + 4]
mov rax, qword [rax + 0x70]
mov dword [rbp + rdx*4 + 0xe0], r8d
mov dword [rbp + rdx*4 + 0xb0], r8d
movzx ecx, word [rax + 0x34]
mov rax, r12
mov word [rbp + rdx*2 + 0x100], cx
test rdx, rdx
jle 0x14017e486
nop dword [rax]
nop dword [rax + rax]
cmp dword [rbp + rax*4 + 0xe0], r8d
je 0x14017e637
inc rax
cmp rax, rdx
jl 0x14017e470
inc rdx
cmp rdx, rsi
jl 0x14017e430
mov rdi, r12
mov r15d, 1
nop word [rax + rax]
mov r10d, r12d
mov rbx, r12
mov r9d, r15d
mov r8, r15
cmp r15, rsi
jge 0x14017e4df
mov edx, dword [rbp + rbx*4 + 0xb0]
mov rax, r8
cmp dword [rbp + r8*4 + 0xb0], edx
cmovae rax, rbx
mov rbx, rax
mov eax, r9d
cmovae eax, r10d
inc r9d
inc r8
mov r10d, eax
cmp r8, rsi
jl 0x14017e4b1
mov r14d, dword [rbp + rbx*4 + 0xb0]
mov dword [rbp + rbx*4 + 0xb0], 0xffffffff
cmp rbx, rdi
je 0x14017e548
jle 0x14017e51c
mov rax, qword [rsp + 0x70]
mov edx, dword [rax + 0x40]
mov rax, qword [rbp + rbx*8 + 0x88]
inc edx
add edx, r10d
mov rcx, qword [rax + 0x70]
mov word [rcx + 0x34], r12w
call fcn.1401c9b10
mov rax, qword [rbp + rdi*8 + 0x88]
mov edx, r14d
mov rcx, qword [rax + 0x70]
movzx eax, word [rbp + rbx*2 + 0x100]
mov word [rcx + 0x34], ax
call fcn.1401c9b10
mov rax, qword [rbp + rdi*8 + 0x88]
mov dword [rax + 4], r14d
inc rdi
cmp rdi, rsi
jl 0x14017e4a0
mov r15d, dword [rbp - 0x80]
mov edx, dword [rsp + 0x58]
lea r12, [rsi - 1]
mov rax, qword [rbp + r12*8 + 0x88]
mov ecx, dword [rax + 4]
mov rax, qword [rbp - 0x58]
bswap ecx
mov dword [rax], ecx
test r15b, 8
jne 0x14017e5ac
cmp dword [rsp + 0x6c], edx
je 0x14017e5ac
mov rcx, qword [rbp - 0x38]
lea rax, [rbp + 0x88]
lea r8, [rbp + 0x70]
cmovge rax, r8
mov rax, qword [rax + rcx*8]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + r12*8 + 0x88]
mov rcx, qword [rax + 0x50]
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov r10, qword [rsp + 0x70]
cmp byte [r10 + 0x21], 0
je 0x14017e7c0
mov rbx, qword [rbp + 0x88]
xor r15d, r15d
mov r13d, dword [rbp - 0x30]
movzx r14d, word [rbx + 0x18]
movzx eax, byte [rbx + 0xc]
add r14d, eax
test r13d, r13d
jle 0x14017e7cb
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x88]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp + 0x40]
mov qword [rbp - 0x80], rax
xor edi, edi
mov qword [rbp - 0x68], rdx
mov r13, rbx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x78], rcx
nop dword [rax]
mov r12, qword [rcx]
mov r9d, dword [rsp + 0x48]
cmp r15d, r14d
jne 0x14017e668
xor edx, edx
test r9b, r9b
sete dl
inc rdi
cmp rdi, rsi
jge 0x14017e642
mov rbx, qword [rbp + rdi*8 + 0x88]
jmp 0x14017e647
mov r9d, 0x11a82
jmp 0x14017dfee
mov rbx, qword [rbp + rdi*8 + 0x70]
movzx eax, word [rbx + 0x18]
movzx ecx, byte [rbx + 0xc]
add eax, edx
add ecx, eax
add r14d, ecx
cmp r15d, r14d
je 0x14017e625
mov rax, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x68]
cmp r15d, dword [r8]
jne 0x14017e68b
mov r13, qword [rdx + 8]
add rdx, 8
add r8, 4
mov qword [rbp - 0x68], rdx
mov qword [rsp + 0x60], r8
test r9b, r9b
je 0x14017e78e
cmp rdi, rsi
jge 0x14017e6ad
mov eax, dword [rbp + rdi*4 + 0xe0]
cmp dword [r13 + 4], eax
jne 0x14017e6ad
cmp r12, qword [rbx + 0x50]
jb 0x14017e6ad
cmp r12, qword [rbx + 0x58]
jb 0x14017e78a
cmp word [rsp + 0x4c], 0
jne 0x14017e6dc
mov edx, dword [r12]
lea rax, [rsp + 0x40]
mov r9d, dword [r13 + 4]
mov r8b, 5
bswap edx
mov rcx, r10
mov qword [rsp + 0x20], rax
call fcn.14019dc30
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov rax, qword [rbp - 0x80]
movzx eax, word [rax]
test ax, ax
jne 0x14017e6f4
mov edx, r15d
lea rcx, [rbp - 0x30]
call fcn.140185250
cmp ax, word [r13 + 0x10]
jbe 0x14017e76f
cmp dword [rsp + 0x44], 0
jne 0x14017eae7
lea r8, [rbp + 0xb0]
mov rdx, r12
mov rcx, r13
call qword [r13 + 0x80]
movzx edx, word [rbp + 0xc4]
cmp edx, dword [rbp + 0xc0]
jae 0x14017e77b
mov rcx, qword [rbx + 0x58]
cmp rcx, r12
jb 0x14017e73d
movzx eax, dx
add rax, r12
cmp rcx, rax
jb 0x14017e7b1
movzx eax, word [rbp + 0xc6]
mov r8b, 3
mov r9d, dword [r13 + 4]
mov rcx, qword [r13 + 0x48]
mov edx, dword [rax + r12 - 4]
lea rax, [rsp + 0x40]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.14019dc30
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
jmp 0x14017e773
mov eax, dword [rsp + 0x44]
test eax, eax
jne 0x14017eae7
mov r10, qword [rsp + 0x70]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rbp - 0x80]
add rcx, 8
add rax, 2
inc r15d
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rax
cmp r15d, dword [rbp - 0x30]
jge 0x14017e7bc
mov rdx, qword [rbp - 0x68]
jmp 0x14017e610
mov r9d, 0x100bc
jmp 0x14017dfee
lea r12, [rsi - 1]
mov rbx, qword [rbp + 0x88]
mov r13d, dword [rbp - 0x30]
test r12, r12
jle 0x14017e901
xor r15d, r15d
movsxd rdx, dword [rbp + r15*4 + 0x40]
mov rax, qword [rbp - 0x18]
mov r14, qword [rbp + r15*8 + 0x88]
mov rcx, qword [rbp - 0x20]
movzx r9d, word [rsp + 0x4c]
movzx eax, word [rax + rdx*2]
movsxd rdi, dword [rbp - 0x60]
add r9d, eax
add rdi, qword [rbp - 0x50]
cmp byte [r14 + 8], 0
mov rbx, qword [rcx + rdx*8]
jne 0x14017e81a
mov rcx, qword [r14 + 0x50]
mov eax, dword [rbx]
mov dword [rcx + 8], eax
jmp 0x14017e8ab
cmp byte [rsp + 0x48], 0
je 0x14017e891
mov rdx, qword [rcx + rdx*8 - 8]
lea r8, [rbp + 0xe0]
mov rcx, r14
call qword [r14 + 0x80]
mov rdx, qword [rbp + 0xe0]
lea rcx, [rdi + 4]
mov rbx, rdi
cmp rdx, 0x7f
ja 0x14017e85d
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
xor edi, edi
lea r9d, [rax + 4]
jmp 0x14017e8ab
cmp rdx, 0x3fff
ja 0x14017e884
mov rax, rdx
and dl, 0x7f
shr rax, 7
or al, 0x80
mov byte [rcx + 1], dl
mov byte [rcx], al
xor edi, edi
mov eax, 2
lea r9d, [rax + 4]
jmp 0x14017e8ab
call fcn.14019e600
xor edi, edi
lea r9d, [rax + 4]
jmp 0x14017e8ab
sub rbx, 4
cmp eax, 4
jne 0x14017e8ab
mov rax, qword [rbp - 0x78]
mov rdx, rbx
mov rcx, rax
call qword [rax + 0x78]
movzx r9d, ax
mov rcx, qword [rbp - 0x78]
lea rax, [rsp + 0x40]
add dword [rbp - 0x60], r9d
mov r8, rbx
mov ebx, dword [rsp + 0x68]
mov edx, ebx
mov qword [rsp + 0x30], rax
mov eax, dword [r14 + 4]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.140193540
mov r14d, dword [rsp + 0x40]
test r14d, r14d
jne 0x14017eaec
inc ebx
inc r15
mov dword [rsp + 0x68], ebx
cmp r15, r12
jl 0x14017e7d7
mov rbx, qword [rbp + 0x88]
jmp 0x14017e906
mov r14d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x58]
mov r15d, 1
sub r15d, r8d
cmp r15d, r8d
jge 0x14017e9ee
mov edi, dword [rbp + 0x40]
mov eax, r15d
cdq
xor eax, edx
sub eax, edx
movsxd rbx, eax
cmp byte [rbp + rbx + 0xf8], 0
jne 0x14017e9db
test r15d, r15d
jns 0x14017e94f
mov ecx, dword [rbp + rbx*4 + 0x3c]
cmp dword [rbp + rbx*4 + 0xc4], ecx
jl 0x14017e9db
test eax, eax
jne 0x14017e95f
xor eax, eax
mov r9d, edi
mov edx, eax
mov r8d, eax
jmp 0x14017e996
xor r12d, r12d
cmp eax, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x48]
jge 0x14017e97d
test al, al
mov edx, r12d
sete dl
add edx, dword [rbp + rbx*4 + 0xc4]
jmp 0x14017e980
mov edx, r13d
mov r9d, dword [rbp + rbx*4 + 0x40]
test al, al
mov r8d, r12d
sete r8b
add r8d, dword [rbp + rbx*4 + 0x3c]
sub r9d, r8d
mov rcx, qword [rbp + rbx*8 + 0x88]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.140188bd0
mov dword [rsp + 0x40], eax
mov r14d, eax
test eax, eax
jne 0x14017eaec
mov rax, qword [rbp + rbx*8 + 0x88]
mov ecx, dword [rsp + 0x54]
sub ecx, dword [rbp + rbx*4 + 0x58]
mov r8d, dword [rsp + 0x58]
mov dword [rax + 0x14], ecx
mov byte [rbp + rbx + 0xf8], 1
inc r15d
cmp r15d, r8d
jl 0x14017e920
mov rbx, qword [rbp + 0x88]
cmp dword [rbp - 0x5c], 0
je 0x14017ea53
mov rdi, qword [rbp - 0x78]
cmp word [rdi + 0x18], 0
jne 0x14017ea53
movzx eax, byte [rdi + 9]
cmp eax, dword [rbx + 0x14]
jg 0x14017ea53
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140187dd0
mov rcx, qword [rbp + 0x88]
lea r8, [rsp + 0x40]
mov rdx, rdi
mov dword [rsp + 0x40], eax
call fcn.140186ef0
mov r14d, dword [rsp + 0x40]
test r14d, r14d
jne 0x14017eaac
mov rcx, qword [rbp + 0x88]
mov rdx, rcx
mov r8d, dword [rcx + 4]
mov rcx, qword [rcx + 0x48]
call fcn.14018f7c0
mov r14d, eax
jmp 0x14017eaac
mov r10, qword [rsp + 0x70]
cmp byte [r10 + 0x21], 0
je 0x14017eaac
cmp word [rsp + 0x4c], 0
jne 0x14017eaac
test rsi, rsi
jle 0x14017eaac
xor ebx, ebx
nop
mov rcx, qword [rbp + rbx*8 + 0x88]
mov r8b, 5
mov rax, qword [rcx + 0x50]
mov r9d, dword [rcx + 4]
mov rcx, r10
mov edx, dword [rax + 8]
lea rax, [rsp + 0x40]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.14019dc30
mov r10, qword [rsp + 0x70]
inc rbx
cmp rbx, rsi
jl 0x14017ea70
mov r14d, dword [rsp + 0x40]
movsxd rax, dword [rsp + 0x6c]
mov rbx, rax
cmp rsi, rax
jge 0x14017eaec
nop dword [rax]
mov rcx, qword [rbp + rsi*8 + 0x70]
test r14d, r14d
jne 0x14017eadd
mov r8d, dword [rcx + 4]
mov rdx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.14018f7c0
mov r14d, eax
inc rsi
cmp rsi, rbx
jl 0x14017eac0
jmp 0x14017eaec
mov r14d, dword [rsp + 0x44]
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x14017da7e
cmp dword [0x1402a7da0], 0
je 0x14017eb52
mov rcx, qword [0x1402b2498]
test rcx, rcx
je 0x14017eb14
call qword [0x1402a7e20]
mov rcx, rbx
call qword [0x1402a7dd8]
dec qword [0x1402b2428]
movsxd rcx, eax
sub qword [0x1402b23e0], rcx
mov rcx, rbx
call qword [0x1402a7dc8]
mov rcx, qword [0x1402b2498]
test rcx, rcx
je 0x14017da7e
call qword [0x1402a7e30]
jmp 0x14017da7e
mov rcx, rbx
call qword [0x1402a7dc8]
jmp 0x14017da7e
lea eax, [rbx + 1]
xor edx, edx
movsxd r8, eax
lea rcx, [rbp + 0x70]
shl r8, 3
call fcn.140132a80
jmp 0x14017da80
mov rcx, r8
call fcn.1401c9be0
inc rbx
cmp rbx, rsi
jl 0x14017dab0
movsxd rbx, dword [rsp + 0x58]
mov rsi, qword [rsp + 0x240]
test rbx, rbx
jle 0x14017ec0a
mov r8, qword [rbp + rdi*8 + 0x88]
test r8, r8
je 0x14017ec02
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x14017ebfa
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + 0x90]
jmp 0x14017ec02
mov rcx, r8
call fcn.1401c9be0
inc rdi
cmp rdi, rbx
jl 0x14017eba0
mov rbx, qword [rsp + 0x278]
mov eax, r14d
mov r14, qword [rsp + 0x228]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140140100
add rsp, 0x248
pop rdi
pop rbp
ret