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

Disassembly:
push rbp
push rsi
push rdi
push r13
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x18016f298]
xor rax, rsp
mov qword [rbp + 0xb8], rax
xor edi, edi
mov dword [rbp - 0x30], r9d
mov r9, rcx
mov qword [rbp - 0x50], rcx
xor ecx, ecx
mov qword [rbp - 0x28], r8
mov dword [rsp + 0x50], edi
mov r13d, edi
mov dword [rsp + 0x68], edi
mov esi, edi
mov r10, qword [r9 + 0x48]
mov qword [rsp + 0x78], r10
mov dword [rbp - 0x40], edi
mov dword [rbp + 0xb0], ecx
mov byte [rbp + 0xb4], cl
mov dword [rsp + 0x58], edi
mov dword [rbp - 0x70], edi
mov qword [rbp - 0x60], rdi
test r8, r8
jne 0x18002b8f6
lea eax, [rdi + 7]
jmp 0x18002cd2a
movzx ecx, word [r9 + 0x16]
movzx r8d, byte [r9 + 0xc]
mov qword [rsp + 0x218], rbx
mov qword [rsp + 0x1d0], r12
mov qword [rsp + 0x1c8], r14
lea ebx, [r8 + rcx]
mov qword [rsp + 0x1c0], r15
cmp ebx, 2
jae 0x18002b92d
mov edx, edi
jmp 0x18002b955
test edx, edx
jne 0x18002b935
mov edx, edi
jmp 0x18002b948
cmp edx, ebx
jne 0x18002b946
mov eax, dword [rbp + 0x120]
lea edx, [rax - 2]
add edx, ebx
jmp 0x18002b94e
dec edx
mov eax, dword [rbp + 0x120]
mov ebx, 2
sub ebx, eax
mov eax, edx
mov dword [rsp + 0x54], edx
sub eax, r8d
mov dword [rbp - 0x78], ebx
add eax, ebx
lea r11d, [rbx + 1]
mov dword [rbp - 0x3c], r11d
cmp eax, ecx
jne 0x18002b97a
movzx ecx, byte [r9 + 9]
add rcx, 8
jmp 0x18002b996
add eax, eax
movsxd rcx, eax
mov rax, qword [r9 + 0x60]
movzx edx, word [rcx + rax]
movzx eax, word [r9 + 0x18]
ror dx, 8
movzx ecx, dx
and rcx, rax
add rcx, qword [r9 + 0x50]
lea r12, [rbp]
movsxd rax, ebx
mov qword [rbp - 0x20], rcx
mov r14d, dword [rcx]
bswap r14d
movsxd rcx, r11d
lea r12, [r12 + rax*4]
mov dword [rbp - 0x80], r14d
lea r15, [rax*8]
mov dword [rsp + 0x60], r14d
mov qword [rbp - 0x38], rcx
lea rax, [0x1801567a4]
mov dword [rsp + 0x70], ebx
cmp r14d, dword [r10 + 0x3c]
jbe 0x18002ba0b
mov r9d, 0xfe14
mov qword [rsp + 0x20], rax
lea r8, str.database_corruption
mov ecx, ntohl
lea rdx, str._s_at_line__d_of___.10s_
call fcn.180012930
mov r14d, ntohl
mov dword [rsp + 0x40], r14d
jmp 0x18002baa4
mov rax, qword [r10]
lea r8, [rbp + 0xa0]
xor r9d, r9d
mov edx, r14d
mov rcx, rax
call qword [rax + 0x108]
mov dword [rsp + 0x40], eax
mov r14d, eax
test eax, eax
jne 0x18002baa4
mov rdx, qword [rbp + 0xa0]
mov rax, qword [rdx + 0x10]
mov qword [rbp + r15 + 0x18], rax
cmp byte [rax], sil
jne 0x18002ba9d
mov rcx, qword [rdx + 0x10]
mov r8d, dword [rbp - 0x80]
cmp r8d, dword [rcx + 4]
je 0x18002ba7c
mov rax, qword [rdx + 8]
cmp r8d, 1
mov qword [rcx + 0x50], rax
mov rax, qword [rsp + 0x78]
mov qword [rcx + 0x48], rax
mov eax, edi
mov qword [rcx + 0x70], rdx
mov edx, 0x64
cmove eax, edx
mov dword [rcx + 4], r8d
mov byte [rcx + 9], al
mov rcx, qword [rbp + r15 + 0x18]
call fcn.180025470
mov dword [rsp + 0x40], eax
mov r14d, eax
test eax, eax
je 0x18002ba9d
mov rcx, qword [rbp + r15 + 0x18]
call fcn.180025ad0
jmp 0x18002baa4
mov r14d, edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], r14d
test r14d, r14d
jne 0x18002cc76
mov rax, qword [rbp + r15 + 0x18]
sub r12, 4
sub r15, 8
movzx edx, word [rax + 0x16]
movzx ecx, byte [rax + 0xc]
mov eax, ebx
add ecx, r13d
dec ebx
lea r13d, [rdx + 1]
add r13d, ecx
test eax, eax
je 0x18002bcc2
mov r8, qword [rbp - 0x50]
movzx edx, byte [r8 + 0xc]
test dl, dl
je 0x18002bb31
mov eax, dword [rsp + 0x54]
movzx ecx, word [r8 + 0x1a]
add eax, ebx
cmp eax, ecx
jne 0x18002bb31
mov rdx, qword [r8 + 0x28]
mov rcx, r8
mov qword [rbp + r15 - 0x18], rdx
mov r14d, dword [rdx]
bswap r14d
mov dword [rbp - 0x80], r14d
mov dword [rsp + 0x60], r14d
call qword [r8 + 0x78]
mov r10, qword [rsp + 0x78]
movzx eax, ax
mov dword [r12], eax
mov rax, qword [rbp - 0x50]
mov byte [rax + 0xc], sil
jmp 0x18002b9c7
mov ecx, dword [rsp + 0x54]
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 + 0x18]
ror dx, 8
movzx edi, dx
and rdi, rax
add rdi, qword [r8 + 0x50]
mov rdx, rdi
mov qword [rbp + r15 - 0x18], rdi
mov eax, dword [rdi]
bswap eax
mov dword [rbp - 0x80], eax
mov dword [rsp + 0x60], eax
call qword [r8 + 0x78]
mov rdx, qword [rsp + 0x78]
movzx r14d, ax
mov dword [r12], r14d
test byte [rdx + 0x26], 0xc
je 0x18002bbc0
mov rax, qword [rbp - 0x50]
mov ecx, edi
sub ecx, dword [rax + 0x50]
lea eax, [r14 + rcx]
cmp eax, dword [rdx + 0x34]
jg 0x18002bbed
movsxd rcx, ecx
mov r8d, r14d
add rcx, qword [rbp - 0x28]
mov rdx, rdi
call fcn.180109e10
mov rcx, qword [rbp - 0x50]
sub rdi, qword [rcx + 0x50]
add rdi, qword [rbp - 0x28]
mov qword [rbp + r15 - 0x18], rdi
jmp 0x18002bbc4
mov rcx, qword [rbp - 0x50]
movzx eax, byte [rcx + 0xc]
lea r9, [rsp + 0x44]
mov edx, dword [rsp + 0x54]
mov r8d, r14d
sub edx, eax
add edx, ebx
call fcn.18002aac0
mov r10, qword [rsp + 0x78]
xor edi, edi
mov r14d, dword [rbp - 0x80]
jmp 0x18002b9c7
lea rax, [0x1801567a4]
mov r9d, 0x112b6
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, ntohl
call fcn.180012930
movsxd r8, dword [rsp + 0x70]
lea rcx, [rbp + 0x18]
shl r8, 3
xor edx, edx
mov r14d, ntohl
call fcn.18010a4e0
xor edi, edi
mov rsi, qword [rbp - 0x38]
mov rbx, rdi
mov r15, qword [rsp + 0x1c0]
mov r12, qword [rsp + 0x1d0]
test rsi, rsi
jle 0x18002cca4
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rbp + rbx*8 + 0x18]
test r8, r8
je 0x18002cc98
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x18002cc90
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 0x18002cc98
mov rax, qword [rsp + 0x78]
lea ebx, [r13 + 3]
and ebx, 0xfffffffc
mov eax, dword [rax + 0x30]
lea ecx, [rbx + rbx*4]
lea ecx, [rax + rcx*2]
movsxd rcx, ecx
call fcn.18000ff10
mov qword [rbp - 0x60], rax
mov rdx, rax
test rax, rax
jne 0x18002bcf4
lea r14d, [rax + 7]
jmp 0x18002bc33
movsxd rax, ebx
mov r12d, edi
mov dword [rsp + 0x4c], edi
mov r13, rdi
lea rdx, [rdx + rax*8]
lea rax, [rdx + rax*2]
mov qword [rbp - 0x58], rdx
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x68], rax
movzx r8d, byte [rax + 8]
movzx eax, byte [rax + 3]
shl r8w, 2
mov word [rsp + 0x48], r8w
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x38], rsi
jg 0x18002bec4
mov rax, qword [rsp + 0x78]
xor r13d, r13d
movzx ecx, r8w
mov r12d, r13d
mov eax, dword [rax + 0x34]
add eax, 0xfffffff4
add eax, ecx
mov rcx, qword [rbp - 0x38]
mov dword [rsp + 0x4c], eax
test rcx, rcx
jle 0x18002bdda
mov r8, rcx
lea rdx, [rbp + 0x70]
shl r8, 2
lea rcx, [rbp - 0x18]
call fcn.180109e10
mov ecx, dword [rsp + 0x4c]
mov rsi, qword [rbp - 0x38]
mov rbx, qword [rbp + r12*8 + 0x18]
mov edi, ecx
mov r15d, r13d
movzx eax, word [rbx + 0x14]
sub edi, eax
mov dword [rbp + r12*4], edi
cmp byte [rbx + 0xc], r13b
jbe 0x18002bdca
lea r14, [rbx + 0x28]
nop
mov rdx, qword [r14]
mov rcx, rbx
call qword [rbx + 0x78]
movzx eax, ax
inc r15d
add eax, 2
lea r14, [r14 + 8]
add edi, eax
movzx eax, byte [rbx + 0xc]
cmp r15d, eax
jl 0x18002bda0
mov ecx, dword [rsp + 0x4c]
mov dword [rbp + r12*4], edi
inc r12
cmp r12, rsi
jl 0x18002bd80
mov esi, dword [rsp + 0x58]
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rbp - 0x3c]
mov r12d, r13d
mov dword [rsp + 0x68], ecx
mov edx, ecx
mov dword [rsp + 0x70], r13d
test ecx, ecx
jle 0x18002c235
lea rdi, [rbp - 0x18]
mov r15d, 1
sub rdi, 4
mov r14, r13
mov qword [rbp - 0x78], rdi
nop dword [rax + rax]
cmp dword [rbp + r14], eax
jle 0x18002c133
nop dword [rax + rax]
cmp r15d, edx
jl 0x18002be41
lea eax, [r15 + 1]
mov dword [rsp + 0x68], eax
cmp r14, 0xc
jg 0x18002c21f
mov dword [rbp + r14 + 4], r13d
mov dword [rbp + r14 - 0x14], esi
movsxd rbx, dword [rbp + r14 - 0x18]
mov rcx, qword [rbp - 0x58]
lea edi, [rbx - 1]
movsxd rax, edi
movzx eax, word [rcx + rax*2]
test ax, ax
jne 0x18002be6f
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.18002add0
mov esi, dword [rbp - 0x70]
mov rcx, qword [rbp - 0x58]
mov dword [rsp + 0x58], esi
movzx eax, ax
add eax, 2
sub dword [rbp + r14], eax
cmp qword [rbp - 0x48], r13
jne 0x18002c112
cmp ebx, esi
jge 0x18002c10f
mov rax, rbx
movzx eax, word [rcx + rbx*2]
test ax, ax
jne 0x18002beaa
mov edx, ebx
lea rcx, [rbp - 0x70]
call fcn.18002add0
mov esi, dword [rbp - 0x70]
mov dword [rsp + 0x58], esi
movzx eax, ax
add eax, 2
jmp 0x18002c112
mov rdx, qword [rbp - 0x58]
mov r15, qword [rbp + r13*8 + 0x18]
mov rax, qword [rbp + 0x18]
mov rdi, qword [r15 + 0x50]
mov rcx, qword [rax + 0x50]
movzx ebx, word [r15 + 0x12]
movzx r14d, word [r15 + 0x18]
add rbx, rdi
movzx eax, byte [rcx]
cmp byte [rdi], al
jne 0x18002c0da
movzx eax, byte [r15 + 0xc]
movzx r8d, word [r15 + 0x16]
add r8, rax
movsxd rax, esi
add r8, r8
lea rcx, [rdx + rax*2]
xor edx, edx
call fcn.18010a4e0
cmp byte [r15 + 0xc], 0
jbe 0x18002bf84
movzx eax, word [r15 + 0x1a]
mov r9, qword [rbp - 0x60]
test eax, eax
je 0x18002bf4f
mov edx, eax
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
movzx eax, r14w
and rcx, rax
movsxd rax, esi
add rcx, rdi
inc esi
mov dword [rbp - 0x70], esi
mov qword [r9 + rax*8], rcx
sub rdx, 1
jne 0x18002bf21
mov dword [rsp + 0x58], esi
xor r8d, r8d
cmp byte [r15 + 0xc], r8b
jbe 0x18002bf84
lea rdx, [r15 + 0x28]
nop dword [rax]
mov rax, qword [rdx]
lea rdx, [rdx + 8]
movsxd rcx, esi
inc r8d
inc esi
mov dword [rbp - 0x70], esi
mov qword [r9 + rcx*8], rax
movzx eax, byte [r15 + 0xc]
cmp r8d, eax
jl 0x18002bf60
mov dword [rsp + 0x58], esi
movzx edx, word [r15 + 0x16]
movzx ecx, word [r15 + 0x12]
add rcx, rdi
lea rax, [rcx + rdx*2]
xor ecx, ecx
mov r8, rax
mov edx, ecx
sub r8, rbx
inc r8
shr r8, 1
cmp rbx, rax
cmova r8, rcx
test r8, r8
je 0x18002bff0
mov r9, qword [rbp - 0x60]
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
ror ax, 8
inc rdx
movzx ecx, ax
movzx eax, r14w
and rcx, rax
movsxd rax, esi
add rcx, rdi
inc esi
mov dword [rbp - 0x70], esi
mov qword [r9 + rax*8], rcx
cmp rdx, r8
jb 0x18002bfc0
mov dword [rsp + 0x58], esi
mov dword [rbp + r13*4 + 0x70], esi
cmp r12d, dword [rbp - 0x78]
jge 0x18002c0ba
cmp qword [rbp - 0x48], 0
jne 0x18002c0ba
movzx ecx, word [rbp + r13*4]
movsxd r12, dword [rsp + 0x68]
mov r8d, ecx
mov rax, qword [rbp - 0x58]
mov rbx, r12
add rbx, qword [rsp + 0x70]
add r12d, ecx
mov rdx, qword [rbp + r13*8 - 0x18]
movsxd rdi, esi
lea r14, [rax + rdi*2]
mov dword [rsp + 0x68], r12d
mov word [r14], cx
mov rcx, rbx
call fcn.180109e10
movzx r8d, word [rsp + 0x48]
mov rdx, qword [rbp - 0x60]
lea rax, [rbx + r8]
mov qword [rdx + rdi*8], rax
sub word [r14], r8w
cmp byte [r15 + 8], 0
jne 0x18002c07e
mov rax, qword [r15 + 0x50]
inc esi
mov rcx, qword [rdx + rdi*8]
mov r12d, dword [rsp + 0x4c]
mov dword [rsp + 0x58], esi
mov eax, dword [rax + 8]
mov dword [rcx], eax
mov dword [rbp - 0x70], esi
jmp 0x18002c0c0
cmp word [r14], 4
jae 0x18002c0aa
mov rcx, qword [rsp + 0x70]
movsxd rax, r12d
add rcx, rax
mov byte [rcx], 0
lea rcx, [rcx + 1]
inc word [r14]
inc r12d
cmp word [r14], 4
jb 0x18002c090
mov dword [rsp + 0x68], r12d
mov r12d, dword [rsp + 0x4c]
inc esi
mov dword [rsp + 0x58], esi
mov dword [rbp - 0x70], esi
jmp 0x18002c0c0
movzx r8d, word [rsp + 0x48]
inc r12d
inc r13
mov dword [rsp + 0x4c], r12d
cmp r13, qword [rbp - 0x38]
jl 0x18002bec0
jmp 0x18002bd3c
mov r9d, 0x112f7
lea rax, [0x1801567a4]
mov ecx, ntohl
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call fcn.180012930
mov r14d, ntohl
jmp 0x18002cc5c
mov eax, r13d
add dword [rbp + r14 + 4], eax
mov eax, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x68]
mov dword [rbp + r14 - 0x18], edi
cmp dword [rbp + r14], eax
jg 0x18002be20
mov rdi, qword [rbp - 0x78]
cmp dword [rbp + r14 - 0x18], esi
jge 0x18002c1da
mov r8, qword [rbp - 0x58]
mov edi, dword [rsp + 0x4c]
mov r12, qword [rbp - 0x48]
nop word [rax + rax]
movsxd rbx, dword [rbp + r14 - 0x18]
mov rax, rbx
movzx eax, word [r8 + rbx*2]
test ax, ax
jne 0x18002c174
mov edx, ebx
lea rcx, [rbp - 0x70]
call fcn.18002add0
mov r8, qword [rbp - 0x58]
mov esi, dword [rbp - 0x70]
mov edx, dword [rbp + r14]
movzx ecx, ax
add ecx, 2
add edx, ecx
cmp edx, edi
jg 0x18002c1cd
inc ebx
mov dword [rbp + r14], edx
mov dword [rbp + r14 - 0x18], ebx
test r12, r12
jne 0x18002c1c4
cmp ebx, esi
jge 0x18002c1c1
movsxd rax, ebx
movzx eax, word [r8 + rax*2]
test ax, ax
jne 0x18002c1b9
mov edx, ebx
lea rcx, [rbp - 0x70]
call fcn.18002add0
mov r8, qword [rbp - 0x58]
mov esi, dword [rbp - 0x70]
movzx ecx, ax
add ecx, 2
jmp 0x18002c1c4
mov ecx, r13d
sub dword [rbp + r14 + 4], ecx
cmp ebx, esi
jl 0x18002c150
mov r12d, dword [rsp + 0x70]
mov rdi, qword [rbp - 0x78]
mov dword [rsp + 0x58], esi
mov ecx, dword [rbp + r14 - 0x18]
cmp ecx, esi
jl 0x18002c1ec
mov edx, r15d
mov dword [rsp + 0x68], edx
jmp 0x18002c202
test r12d, r12d
jle 0x18002c1f7
mov eax, dword [rdi + r14]
jmp 0x18002c1fa
mov eax, r13d
cmp ecx, eax
jle 0x18002c22a
mov edx, dword [rsp + 0x68]
inc r12d
inc r15d
add r14, 4
mov dword [rsp + 0x70], r12d
cmp r12d, edx
jge 0x18002c235
mov eax, dword [rsp + 0x4c]
jmp 0x18002be10
mov r9d, 0x11364
jmp 0x18002c0e0
mov r9d, 0x11385
jmp 0x18002c0e0
lea eax, [rdx - 1]
movsxd r13, eax
mov r12, r13
test eax, eax
jle 0x18002c367
mov r8, qword [rbp - 0x58]
lea rax, [rbp - 0x18]
lea rcx, [rbp]
sub rax, rcx
add rax, 0xfffffffffffffffc
mov qword [rbp + 0xa0], rax
mov ebx, dword [rbp + r12*4 - 0x1c]
lea rax, [rbp + r12*4 - 4]
mov r15d, dword [rax]
dec ebx
mov esi, dword [rbp + r12*4]
mov edx, ebx
sub edx, dword [rbp - 0x48]
inc edx
movsxd rax, edx
lea r14, [rax + rax]
cmp word [r14 + r8], 0
jne 0x18002c297
lea rcx, [rbp - 0x70]
call fcn.18002add0
mov r8, qword [rbp - 0x58]
movsxd rax, ebx
lea rdi, [rax + rax]
nop
cmp word [rdi + r8], 0
jne 0x18002c2b7
mov edx, ebx
lea rcx, [rbp - 0x70]
call fcn.18002add0
mov r8, qword [rbp - 0x58]
test esi, esi
je 0x18002c2f4
cmp dword [rbp + 0x120], 0
jne 0x18002c31f
mov ecx, dword [rsp + 0x68]
mov eax, 2
dec ecx
mov edx, r15d
cmp r13d, ecx
mov ecx, 0
cmove eax, ecx
lea ecx, [rsi + 2]
sub edx, eax
movzx eax, word [rdi + r8]
sub edx, eax
movzx eax, word [r14 + r8]
add ecx, eax
cmp ecx, edx
jg 0x18002c31f
movzx eax, word [r14 + r8]
mov ecx, 0xfffffffe
add eax, 2
mov dword [rbp + r12*4 - 0x1c], ebx
add esi, eax
sub r14, 2
movzx eax, word [rdi + r8]
sub rdi, 2
sub ecx, eax
add r15d, ecx
sub ebx, 1
jns 0x18002c2a0
mov dword [rbp + r12*4 - 4], r15d
lea rax, [rbp + r12*4 - 4]
mov dword [rbp + r12*4], esi
cmp r12, 1
jle 0x18002c340
mov rcx, qword [rbp + 0xa0]
mov eax, dword [rax + rcx]
jmp 0x18002c342
xor eax, eax
cmp dword [rbp + r12*4 - 0x1c], eax
jle 0x18002c3e9
dec r13d
dec r12
test r12, r12
jg 0x18002c260
mov esi, dword [rbp - 0x70]
mov edx, dword [rsp + 0x68]
mov dword [rsp + 0x58], esi
mov rax, qword [rbp + 0x18]
xor r13d, r13d
movsxd r14, edx
mov edi, r13d
mov rcx, qword [rax + 0x50]
movzx r12d, byte [rcx]
mov dword [rbp - 0x78], r12d
test edx, edx
jle 0x18002c4ec
lea r15d, [r13 + 1]
nop dword [rax]
cmp rdi, qword [rbp - 0x38]
jge 0x18002c44a
mov rax, qword [rbp + rdi*8 + 0x18]
mov qword [rbp + rdi*8 + 0x30], rax
mov qword [rbp + rdi*8 + 0x18], r13
mov qword [rsp + 0x70], rax
mov rbx, qword [rax + 0x70]
test byte [rbx + 0x34], 4
mov rcx, qword [rbx + 0x28]
je 0x18002c407
mov eax, dword [rbx + 0x30]
cmp dword [rcx + 0x1c], eax
jb 0x18002c407
cmp dword [rcx + 0x80], r13d
je 0x18002c3fe
mov rcx, rbx
call fcn.18001b300
test eax, eax
je 0x18002c3f4
mov rcx, rbx
call fcn.18001de40
mov dword [rsp + 0x40], eax
mov edx, eax
jmp 0x18002c435
mov r9d, 0x113af
jmp 0x18002c0e0
mov dword [rsp + 0x40], r13d
mov edx, r13d
jmp 0x18002c435
mov edx, r13d
mov dword [rsp + 0x40], edx
jmp 0x18002c435
mov edx, dword [rcx + 0x2c]
mov dword [rsp + 0x40], edx
test edx, edx
jne 0x18002c435
mov eax, dword [rcx + 0xbc]
cmp dword [rcx + 0xb8], eax
mov rcx, rbx
jbe 0x18002c42a
call fcn.18001f760
jmp 0x18002c42f
call fcn.18001f640
mov dword [rsp + 0x40], eax
mov edx, eax
inc dword [rsp + 0x50]
mov dword [rsp + 0x44], edx
test edx, edx
jne 0x18002cc57
jmp 0x18002c4e0
mov r9d, dword [rbp - 0x80]
lea r8, [rsp + 0x60]
cmp dword [rbp + 0x120], r13d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
cmovne r9d, r15d
mov byte [rsp + 0x20], r13b
call fcn.1800298c0
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
test eax, eax
jne 0x18002cc57
mov rbx, qword [rsp + 0x70]
mov edx, r12d
mov rcx, rbx
call fcn.180025780
mov rcx, qword [rsp + 0x78]
inc dword [rsp + 0x50]
mov qword [rbp + rdi*8 + 0x30], rbx
mov dword [rbp + rdi*4 + 0x70], esi
cmp byte [rcx + 0x21], r13b
je 0x18002c4d7
mov edx, dword [rbx + 4]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r8b, 5
mov rax, qword [rbp - 0x50]
mov r9d, dword [rax + 4]
call fcn.180024490
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x18002cc57
mov r8d, dword [rsp + 0x60]
mov dword [rbp - 0x80], r8d
inc rdi
cmp rdi, r14
jl 0x18002c390
movsxd r9, dword [rsp + 0x50]
mov rdx, r13
mov r15, r9
test r9d, r9d
jle 0x18002c54e
nop dword [rax]
mov rax, qword [rbp + rdx*8 + 0x30]
mov r8d, dword [rax + 4]
mov rax, qword [rax + 0x70]
mov dword [rbp + rdx*4 + 0x88], r8d
mov dword [rbp + rdx*4 + 0x58], r8d
movzx ecx, word [rax + 0x34]
mov rax, r13
mov word [rbp + rdx*2 + 0xa0], cx
test rdx, rdx
jle 0x18002c546
nop
cmp dword [rbp + rax*4 + 0x88], r8d
je 0x18002c6f8
inc rax
cmp rax, rdx
jl 0x18002c530
inc rdx
cmp rdx, r15
jl 0x18002c500
mov rdi, r13
test r9d, r9d
jle 0x18002c625
mov rsi, qword [rsp + 0x78]
mov r12d, 1
nop word [rax + rax]
mov r10d, r13d
mov rbx, r13
mov edx, r12d
mov rcx, r12
cmp r12, r15
jge 0x18002c5b7
mov r9, r13
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rbp + r9 + 0x58]
lea r8, [rcx*4]
cmp dword [rbp + r8 + 0x58], eax
jae 0x18002c5ad
mov r10d, edx
mov rbx, rcx
mov r9, r8
inc edx
inc rcx
cmp rcx, r15
jl 0x18002c590
mov r14d, dword [rbp + rbx*4 + 0x58]
mov dword [rbp + rbx*4 + 0x58], 0xffffffff
cmp rbx, rdi
je 0x18002c60c
jle 0x18002c5e6
mov rax, qword [rbp + rbx*8 + 0x30]
mov edx, dword [rsi + 0x3c]
inc edx
add edx, r10d
mov rcx, qword [rax + 0x70]
mov word [rcx + 0x34], r13w
call fcn.180019800
mov rax, qword [rbp + rdi*8 + 0x30]
mov edx, r14d
mov rcx, qword [rax + 0x70]
movzx eax, word [rbp + rbx*2 + 0xa0]
mov word [rcx + 0x34], ax
call fcn.180019800
mov rax, qword [rbp + rdi*8 + 0x30]
mov dword [rax + 4], r14d
inc rdi
cmp rdi, r15
jl 0x18002c570
mov esi, dword [rsp + 0x58]
mov r12d, dword [rbp - 0x78]
mov r9d, dword [rsp + 0x50]
lea eax, [r9 - 1]
movsxd r8, eax
mov qword [rbp + 0xa0], r8
mov rax, qword [rbp + r8*8 + 0x30]
mov ecx, dword [rax + 4]
mov rax, qword [rbp - 0x20]
bswap ecx
mov dword [rax], ecx
test r12b, 8
jne 0x18002c67c
mov eax, dword [rbp - 0x3c]
cmp eax, r9d
je 0x18002c67c
cmp r9d, eax
lea rcx, [rbp + 0x18]
lea rdx, [rbp + 0x30]
cmovle rdx, rcx
dec eax
movsxd rcx, eax
mov rax, qword [rdx + rcx*8]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + r8*8 + 0x30]
mov rcx, qword [rax + 0x50]
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x78]
cmp byte [rcx + 0x21], r13b
je 0x18002c881
mov rbx, qword [rbp + 0x30]
mov r10d, dword [rcx + 0x34]
mov dword [rsp + 0x70], r10d
movzx eax, byte [rbx + 0xc]
movzx r9d, word [rbx + 0x16]
mov r13, qword [rbx + 0x50]
add r9d, eax
xor eax, eax
mov dword [rsp + 0x60], r9d
mov r14d, eax
test esi, esi
jle 0x18002c887
mov r11, qword [rbp - 0x60]
lea rdx, [rbp + 0x30]
lea r8, [rbp - 0x18]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x68], r8
mov edi, eax
mov ecx, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
nop dword [rax]
mov r12, qword [rax + r11]
cmp r14d, r9d
jne 0x18002c736
inc rdi
cmp rdi, r15
jge 0x18002c703
mov rdx, qword [rbp + rdi*8 + 0x30]
jmp 0x18002c708
mov r9d, 0x113f9
jmp 0x18002c0e0
mov rdx, qword [rbp + rdi*8 + 0x18]
movzx eax, word [rdx + 0x16]
xor ecx, ecx
cmp dword [rbp - 0x48], ecx
mov r13, qword [rdx + 0x50]
sete cl
add ecx, eax
movzx eax, byte [rdx + 0xc]
mov rdx, qword [rsp + 0x58]
add r9d, eax
mov rax, qword [rbp - 0x78]
add r9d, ecx
mov rcx, qword [rbp - 0x80]
mov dword [rsp + 0x60], r9d
cmp r14d, dword [r8]
jne 0x18002c75c
mov rbx, qword [rdx + 8]
add rdx, 8
add r8, 4
mov qword [rsp + 0x58], rdx
cmp qword [rbp - 0x48], 0
mov qword [rsp + 0x68], r8
je 0x18002c851
cmp rdi, r15
jge 0x18002c781
mov eax, dword [rbp + rdi*4 + 0x88]
cmp dword [rbx + 4], eax
jne 0x18002c781
cmp r12, r13
jb 0x18002c781
movsxd rax, r10d
add rax, r13
cmp r12, rax
jb 0x18002c84d
cmp word [rsp + 0x48], 0
jne 0x18002c7b2
mov edx, dword [r12]
lea rax, [rsp + 0x44]
mov r9d, dword [rbx + 4]
mov r8b, 5
mov rcx, qword [rsp + 0x78]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.180024490
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov rax, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x58]
movzx eax, word [rax + rcx]
test ax, ax
jne 0x18002c7d2
mov edx, r14d
lea rcx, [rbp - 0x70]
call fcn.18002add0
mov esi, dword [rbp - 0x70]
cmp ax, word [rbx + 0x10]
jbe 0x18002c82f
cmp dword [rsp + 0x40], 0
jne 0x18002cc57
lea r8, [rbp + 0x58]
mov rdx, r12
mov rcx, rbx
call qword [rbx + 0x80]
movzx eax, word [rbp + 0x6c]
cmp eax, dword [rbp + 0x68]
jae 0x18002c83b
movzx eax, word [rbp + 0x6e]
mov r8b, 3
mov r9d, dword [rbx + 4]
sub eax, 4
mov rcx, qword [rbx + 0x48]
cdqe
mov edx, dword [rax + r12]
lea rax, [rsp + 0x44]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.180024490
mov edx, dword [rsp + 0x44]
mov dword [rsp + 0x40], edx
jmp 0x18002c833
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x18002cc57
mov r11, qword [rbp - 0x60]
mov r10d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rbp - 0x78]
mov r9d, dword [rsp + 0x60]
add rax, 8
mov rdx, qword [rsp + 0x58]
add rcx, 2
inc r14d
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], rcx
cmp r14d, esi
jl 0x18002c6e0
mov r8, qword [rbp + 0xa0]
xor r13d, r13d
mov rbx, qword [rbp + 0x30]
jmp 0x18002c88a
xor r13d, r13d
mov r12, r13
test r8, r8
jle 0x18002c9cf
mov r13, qword [rbp + 0xa0]
nop dword [rax]
movsxd rdx, dword [rbp + r12*4 - 0x18]
mov rcx, qword [rbp - 0x58]
mov r14, qword [rbp + r12*8 + 0x30]
mov r10, qword [rbp - 0x60]
movzx r9d, word [rsp + 0x48]
movzx ecx, word [rcx + rdx*2]
movsxd rdi, dword [rbp - 0x40]
add r9d, ecx
add rdi, qword [rbp - 0x28]
cmp byte [r14 + 8], 0
mov rbx, qword [r10 + rdx*8]
jne 0x18002c8e0
mov rcx, qword [r14 + 0x50]
mov eax, dword [rbx]
mov dword [rcx + 8], eax
jmp 0x18002c976
cmp qword [rbp - 0x48], 0
je 0x18002c95c
lea eax, [rdx - 1]
mov rcx, r14
movsxd rdx, eax
lea r8, [rbp + 0x88]
mov rdx, qword [r10 + rdx*8]
call qword [r14 + 0x80]
mov rdx, qword [rbp + 0x88]
lea rcx, [rdi + 4]
mov rbx, rdi
cmp rdx, 0x7f
ja 0x18002c928
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
xor edi, edi
lea r9d, [rax + 4]
jmp 0x18002c976
cmp rdx, 0x3fff
ja 0x18002c94f
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 0x18002c976
call fcn.180014260
xor edi, edi
lea r9d, [rax + 4]
jmp 0x18002c976
sub rbx, 4
cmp ecx, 4
jne 0x18002c976
mov rax, qword [rbp - 0x50]
mov rdx, rbx
mov rcx, rax
call qword [rax + 0x78]
movzx r9d, ax
mov rcx, qword [rbp - 0x50]
lea rax, [rsp + 0x44]
add dword [rbp - 0x40], r9d
mov r8, rbx
mov ebx, dword [rsp + 0x54]
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.18002ac00
mov r14d, dword [rsp + 0x44]
mov dword [rsp + 0x40], r14d
test r14d, r14d
jne 0x18002cc5c
inc ebx
inc r12
mov dword [rsp + 0x54], ebx
cmp r12, r13
jl 0x18002c8a0
mov rbx, qword [rbp + 0x30]
xor r13d, r13d
mov r9d, dword [rsp + 0x50]
mov r12d, 1
sub r12d, r9d
cmp r12d, r9d
jge 0x18002cace
mov edi, dword [rbp - 0x18]
nop dword [rax]
mov eax, r12d
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
movsxd rbx, r8d
cmp byte [rbp + rbx + 0xb0], 0
jne 0x18002cabe
test r12d, r12d
jns 0x18002ca28
lea ecx, [r8 - 1]
movsxd rdx, ecx
mov eax, dword [rbp + rdx*4 - 0x18]
cmp dword [rbp + rdx*4 + 0x70], eax
jl 0x18002cabe
test r8d, r8d
jne 0x18002ca38
mov esi, r13d
mov r8d, r13d
mov r9d, edi
jmp 0x18002ca73
cmp r8d, dword [rbp - 0x3c]
jge 0x18002ca54
cmp dword [rbp - 0x48], 0
lea eax, [r8 - 1]
mov esi, r13d
movsxd rcx, eax
sete sil
add esi, dword [rbp + rcx*4 + 0x70]
cmp dword [rbp - 0x48], 0
lea eax, [r8 - 1]
mov r9d, dword [rbp + rbx*4 - 0x18]
mov r8d, r13d
sete r8b
movsxd rcx, eax
add r8d, dword [rbp + rcx*4 - 0x18]
sub r9d, r8d
mov rcx, qword [rbp + rbx*8 + 0x30]
lea rax, [rbp - 0x70]
mov edx, esi
mov qword [rsp + 0x20], rax
call fcn.18002b1e0
mov dword [rsp + 0x40], eax
mov r14d, eax
mov dword [rsp + 0x44], eax
test eax, eax
jne 0x18002cc5c
mov rax, qword [rbp + rbx*8 + 0x30]
movzx ecx, word [rsp + 0x4c]
sub cx, word [rbp + rbx*4]
mov esi, dword [rbp - 0x70]
mov r9d, dword [rsp + 0x50]
mov word [rax + 0x14], cx
mov byte [rbp + rbx + 0xb0], 1
inc r12d
cmp r12d, r9d
jl 0x18002c9f0
mov rbx, qword [rbp + 0x30]
cmp dword [rbp - 0x30], 0
je 0x18002cbc1
mov rsi, qword [rbp - 0x50]
cmp word [rsi + 0x16], 0
jne 0x18002cbc1
movzx eax, byte [rsi + 9]
cmp ax, word [rbx + 0x14]
ja 0x18002cbc1
or edx, 0xffffffff
mov rcx, rbx
call fcn.180024a80
mov r13, qword [rbp + 0x30]
mov edx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x18002cc22
mov rdi, qword [r13 + 0x50]
mov r14, qword [rsi + 0x50]
movzx ebx, byte [r13 + 9]
mov r12, qword [r13 + 0x48]
mov esi, dword [rsi + 4]
lea eax, [rbx + 5]
movzx edx, byte [rax + rdi + 1]
movzx eax, byte [rax + rdi]
mov r8d, dword [r12 + 0x34]
shl eax, 8
or edx, eax
mov ecx, edx
sub r8d, edx
add rcx, r14
add rdx, rdi
call fcn.180109e10
movzx ecx, word [r13 + 0x16]
lea rdx, [rdi + rbx]
movzx eax, word [r13 + 0x12]
lea r8, [rax + rcx*2]
xor ecx, ecx
mov eax, 0x64
cmp esi, 1
cmove ecx, eax
add rcx, r14
call fcn.180109e10
mov rbx, qword [rbp - 0x50]
mov rcx, rbx
mov byte [rbx], 0
call fcn.180025470
mov dword [rsp + 0x40], eax
mov edx, eax
test eax, eax
jne 0x18002cba1
cmp byte [r12 + 0x21], al
je 0x18002cba5
mov rcx, rbx
call fcn.180027120
mov edx, eax
mov dword [rsp + 0x40], eax
test edx, edx
jne 0x18002cc22
mov rcx, qword [rbp + 0x30]
mov rdx, rcx
mov r8d, dword [rcx + 4]
mov rcx, qword [rcx + 0x48]
call fcn.18002a060
mov edx, eax
mov dword [rsp + 0x40], eax
jmp 0x18002cc22
mov r10, qword [rsp + 0x78]
cmp byte [r10 + 0x21], 0
je 0x18002cc1e
cmp word [rsp + 0x48], 0
jne 0x18002cc1e
mov rbx, r13
test r15, r15
jle 0x18002cc1e
nop dword [rax]
mov rcx, qword [rbp + rbx*8 + 0x30]
mov r8b, 5
mov rax, qword [rcx + 0x50]
mov r9d, dword [rcx + 4]
mov rcx, r10
mov edx, dword [rax + 8]
lea rax, [rsp + 0x44]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.180024490
mov r10, qword [rsp + 0x78]
inc rbx
cmp rbx, r15
jl 0x18002cbe0
mov edx, dword [rsp + 0x44]
mov dword [rsp + 0x40], edx
jmp 0x18002cc22
mov edx, dword [rsp + 0x40]
mov rbx, qword [rbp - 0x38]
cmp r15, rbx
jge 0x18002cc57
nop dword [rax + rax]
mov rcx, qword [rbp + r15*8 + 0x18]
test edx, edx
jne 0x18002cc4b
mov r8d, dword [rcx + 4]
mov rdx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.18002a060
mov edx, eax
inc r15
cmp r15, rbx
jl 0x18002cc30
mov dword [rsp + 0x40], edx
mov r14d, dword [rsp + 0x40]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x18002bc31
mov rcx, rax
call fcn.180010010
jmp 0x18002bc31
lea eax, [rbx + 1]
xor edx, edx
movsxd r8, eax
lea rcx, [rbp + 0x18]
shl r8, 3
call fcn.18010a4e0
jmp 0x18002bc33
mov rcx, r8
call fcn.1800195b0
inc rbx
cmp rbx, rsi
jl 0x18002bc60
movsxd rbx, dword [rsp + 0x50]
test rbx, rbx
jle 0x18002cd17
nop
mov r8, qword [rbp + rdi*8 + 0x30]
test r8, r8
je 0x18002cd0f
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x18002cd07
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 0x18002cd0f
mov rcx, r8
call fcn.1800195b0
inc rdi
cmp rdi, rbx
jl 0x18002ccb0
mov rbx, qword [rsp + 0x218]
mov eax, r14d
mov r14, qword [rsp + 0x1c8]
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.180107470
add rsp, 0x1d8
pop r13
pop rdi
pop rsi
pop rbp
ret