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

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x180182008]
xor rax, rsp
mov qword [rbp + 0xe8], rax
xor r14d, r14d
mov dword [rbp - 0x50], r9d
xorps xmm0, xmm0
mov qword [rbp - 0x48], r8
mov r9, r8
mov qword [rbp - 0x80], rcx
mov r8, rcx
mov dword [rsp + 0x78], edx
xor ecx, ecx
mov dword [rsp + 0x50], r14d
mov dword [rbp - 0x6c], r14d
mov eax, edx
mov dword [rbp + 0xe0], ecx
mov r13d, r14d
mov r10, qword [r8 + 0x48]
mov edi, r14d
mov qword [rsp + 0x68], r10
mov r12d, r14d
mov byte [rbp + 0xe4], cl
mov qword [rbp + 0x30], rcx
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
test r9, r9
jne 0x180047799
lea eax, [rcx + 7]
jmp 0x180048ba1
movzx ecx, word [r8 + 0x18]
movzx edx, byte [r8 + 0xc]
mov qword [rsp + 0x248], rbx
mov qword [rsp + 0x1f8], rsi
mov qword [rsp + 0x1f0], r15
lea ebx, [rdx + rcx]
cmp ebx, 2
jae 0x1800477cd
mov r9d, r14d
mov dword [rsp + 0x44], r14d
jmp 0x180047809
test eax, eax
jne 0x1800477db
mov r9d, r14d
mov dword [rsp + 0x44], r14d
jmp 0x1800477fc
cmp eax, ebx
jne 0x1800477f3
mov eax, dword [rbp + 0x150]
lea r9d, [rax - 2]
add r9d, ebx
mov dword [rsp + 0x44], r9d
jmp 0x180047802
lea r9d, [rax - 1]
mov dword [rsp + 0x44], r9d
mov eax, dword [rbp + 0x150]
mov ebx, 2
sub ebx, eax
mov eax, r9d
mov dword [rsp + 0x58], ebx
sub eax, edx
lea r11d, [rbx + 1]
add eax, ebx
mov dword [rsp + 0x4c], r11d
cmp eax, ecx
jne 0x18004782c
movzx ecx, byte [r8 + 9]
add rcx, 8
jmp 0x180047848
add eax, eax
movsxd rcx, eax
mov rax, qword [r8 + 0x60]
movzx edx, word [rcx + rax]
movzx eax, word [r8 + 0x1a]
ror dx, 8
movzx ecx, dx
and rcx, rax
add rcx, qword [r8 + 0x50]
lea r15, [rbp + 0x40]
movsxd rax, ebx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov edx, dword [rcx]
bswap edx
mov dword [rsp + 0x60], edx
lea r15, [r15 + rax*4]
mov dword [rbp - 0x70], edx
lea rsi, [rax*8]
test edi, edi
jne 0x180048a69
movsxd rax, ebx
lea r8, [rbp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov rcx, r10
lea r8, [r8 + rax*8]
call fcn.1800404a0
mov dword [rsp + 0x30], eax
mov edi, eax
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x180048a69
mov rcx, qword [rbp + rsi + 0x58]
cmp dword [rcx + 0x14], r12d
jge 0x1800478c9
call fcn.180040030
mov dword [rsp + 0x30], eax
mov edi, eax
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x180047a01
mov rax, qword [rbp + rsi + 0x58]
add r13d, 4
sub r15, 4
sub rsi, 8
movzx ecx, word [rax + 0x18]
mov eax, ebx
add r13d, ecx
dec ebx
test eax, eax
je 0x180047a1c
mov r8, qword [rbp - 0x80]
movzx edx, byte [r8 + 0xc]
test dl, dl
je 0x180047940
mov eax, dword [rsp + 0x44]
movzx ecx, word [r8 + 0x1c]
add eax, ebx
cmp eax, ecx
jne 0x180047940
mov rdx, qword [r8 + 0x28]
mov rcx, r8
mov qword [rbp + rsi - 0x68], rdx
mov eax, dword [rdx]
bswap eax
mov dword [rsp + 0x60], eax
mov dword [rbp - 0x70], eax
call qword [r8 + 0x78]
mov rcx, qword [rbp - 0x80]
mov edx, dword [rsp + 0x60]
mov r10, qword [rsp + 0x68]
movzx eax, ax
mov byte [rcx + 0xc], r12b
mov dword [r15], eax
jmp 0x180047872
mov rax, qword [r8 + 0x60]
mov ecx, dword [rsp + 0x44]
sub ecx, edx
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 + rsi - 0x68], rdi
mov eax, dword [rdi]
bswap eax
mov dword [rsp + 0x60], eax
mov dword [rbp - 0x70], eax
call qword [r8 + 0x78]
mov rdx, qword [rsp + 0x68]
movzx r14d, ax
mov dword [r15], r14d
test byte [rdx + 0x28], 0xc
je 0x1800479cc
mov rax, qword [rbp - 0x80]
mov ecx, edi
sub ecx, dword [rax + 0x50]
lea eax, [r14 + rcx]
cmp eax, dword [rdx + 0x38]
jg 0x1800479cc
movsxd rcx, ecx
mov r8d, r14d
add rcx, qword [rbp - 0x48]
mov rdx, rdi
call fcn.180133760
mov rcx, qword [rbp - 0x80]
mov rax, qword [rbp - 0x48]
sub rax, qword [rcx + 0x50]
add rax, rdi
mov qword [rbp + rsi - 0x68], rax
mov rdi, qword [rbp - 0x80]
lea r9, [rsp + 0x34]
mov edx, dword [rsp + 0x44]
mov r8d, r14d
mov rcx, rdi
movzx eax, byte [rdi + 0xc]
sub edx, eax
add edx, ebx
call fcn.180046520
mov edx, dword [rsp + 0x60]
xor r14d, r14d
mov r10, qword [rsp + 0x68]
mov edi, dword [rsp + 0x34]
jmp 0x180047872
movsxd r8, ebx
lea rcx, [rbp + 0x58]
xor edx, edx
lea r8, [r8*8]
call fcn.180131080
jmp 0x180048a8d
mov rdi, qword [rsp + 0x68]
lea ebx, [r13 + 3]
and ebx, 0xfffffffc
mov eax, dword [rdi + 0x34]
lea ecx, [rbx + rbx*4]
lea ecx, [rax + rcx*2]
movsxd rcx, ecx
call fcn.180028660
mov qword [rbp - 0x20], rax
mov r8, rax
test rax, rax
jne 0x180047a4d
lea edi, [rax + 7]
jmp 0x180048a9e
mov rcx, qword [rbp + 0x58]
xor r13d, r13d
mov edx, dword [rsp + 0x4c]
movsxd rax, ebx
mov qword [rbp - 0x28], rcx
movzx r10d, byte [rcx + 8]
movzx r11d, byte [rcx + 2]
lea r9, [r8 + rax*8]
shl r10w, 2
mov qword [rbp - 0x18], r9
lea rax, [r9 + rax*2]
mov qword [rsp + 0x70], rax
mov word [rsp + 0x40], r10w
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x54], r13d
test edx, edx
jle 0x180047e2b
mov esi, dword [rbp - 0x30]
mov qword [rbp - 0x78], r13
nop
mov r15, qword [rbp + r13*8 + 0x58]
mov rax, qword [rcx + 0x50]
mov rdi, qword [r15 + 0x50]
movzx ebx, word [r15 + 0x12]
movzx ecx, byte [rax]
add rbx, rdi
movzx r13d, word [r15 + 0x18]
movzx r14d, word [r15 + 0x1a]
cmp byte [rdi], cl
jne 0x180047e20
movzx r8d, byte [r15 + 0xc]
xor edx, edx
movsxd rax, esi
add r8, r13
add r8, r8
lea rcx, [r9 + rax*2]
call fcn.180131080
movzx ecx, byte [r15 + 0xc]
test cl, cl
je 0x180047b70
movzx eax, word [r15 + 0x1c]
cmp r13w, ax
jb 0x180047caf
mov r9, qword [rbp - 0x20]
xor r8d, r8d
cmp r8w, ax
jae 0x180047b3b
mov edx, eax
nop
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
and rcx, r14
movsxd rax, esi
add rcx, rdi
inc esi
mov qword [r9 + rax*8], rcx
sub rdx, 1
jne 0x180047b10
movzx ecx, byte [r15 + 0xc]
mov dword [rbp - 0x30], esi
test cl, cl
je 0x180047b70
lea rdx, [r15 + 0x28]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx]
lea rdx, [rdx + 8]
movsxd rcx, esi
inc r8d
inc esi
mov qword [r9 + rcx*8], rax
movzx eax, byte [r15 + 0xc]
cmp r8d, eax
jl 0x180047b50
mov dword [rbp - 0x30], esi
movzx ecx, word [r15 + 0x12]
movzx edx, word [r15 + 0x18]
add rcx, rdi
lea r8, [rcx + rdx*2]
cmp rbx, r8
jae 0x180047bb5
mov rdx, qword [rbp - 0x20]
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
and rcx, r14
movsxd rax, esi
add rcx, rdi
inc esi
mov qword [rdx + rax*8], rcx
cmp rbx, r8
jb 0x180047b90
mov dword [rbp - 0x30], esi
mov r13, qword [rbp - 0x78]
mov edx, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x38]
mov dword [rbp + r13*4 + 0xb0], esi
cmp edx, dword [rsp + 0x58]
jge 0x180047c85
test r11b, r11b
jne 0x180047c85
movzx ecx, word [rbp + r13*4 + 0x40]
mov rax, qword [rbp - 0x18]
mov r8d, ecx
mov rdx, qword [rbp + r13*8 - 0x68]
movsxd rbx, r12d
add r12d, ecx
add rbx, qword [rsp + 0x70]
movsxd rdi, esi
lea r14, [rax + rdi*2]
mov word [r14], cx
mov rcx, rbx
call fcn.180133760
movzx r10d, word [rsp + 0x40]
mov r8, qword [rbp - 0x20]
lea rax, [rbx + r10]
mov qword [r8 + rdi*8], rax
sub word [r14], r10w
cmp byte [r15 + 8], 0
jne 0x180047c47
mov rax, qword [r15 + 0x50]
inc esi
mov rcx, qword [r8 + rdi*8]
mov edx, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x38]
mov eax, dword [rax + 8]
mov dword [rcx], eax
mov dword [rbp - 0x30], esi
jmp 0x180047c8b
cmp word [r14], 4
jae 0x180047c75
mov rcx, qword [rsp + 0x70]
movsxd rax, r12d
add rcx, rax
nop dword [rax]
mov byte [rcx], 0
lea rcx, [rcx + 1]
inc word [r14]
inc r12d
cmp word [r14], 4
jb 0x180047c60
mov edx, dword [rsp + 0x54]
inc esi
mov r11d, dword [rsp + 0x38]
mov dword [rbp - 0x30], esi
jmp 0x180047c8b
movzx r10d, word [rsp + 0x40]
movsxd rcx, dword [rsp + 0x4c]
inc edx
inc r13
mov dword [rsp + 0x54], edx
mov qword [rbp - 0x78], r13
cmp r13, rcx
jge 0x180047ce0
mov rcx, qword [rbp + 0x58]
mov r9, qword [rbp - 0x18]
jmp 0x180047aa0
mov r9d, 0x12ada
lea rax, [0x180161dd4]
mov edi, 0xb
mov ecx, edi
mov qword [rsp + 0x20], rax
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002b870
jmp 0x180048a8a
mov rax, qword [rsp + 0x68]
lea r15, [rbp + 0x20]
movzx r8d, r10w
lea r12, [rbp - 0x10]
xor r9d, r9d
mov dword [rsp + 0x54], r8d
mov edx, r9d
lea r13, [rbp + 0x1c]
mov r10d, dword [rax + 0x38]
mov ecx, r9d
add r10d, 0xfffffff4
mov qword [rsp + 0x70], rdx
add r10d, r8d
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x48], r10d
nop dword [rax]
mov r8d, dword [rbp + rdx*4 + 0xb0]
mov rbx, qword [rbp + rdx*8 + 0x58]
mov dword [rsp + 0x58], r8d
mov rax, qword [rbx + 0x58]
mov qword [r12], rax
mov dword [r15], r8d
test ecx, ecx
je 0x180047d59
cmp r8d, dword [r13]
jne 0x180047d59
dec ecx
sub r12, 8
sub r13, 4
mov dword [rsp + 0x3c], ecx
sub r15, 4
test r11b, r11b
jne 0x180047d83
mov rax, qword [rbp - 0x80]
add r12, 8
inc ecx
add r13, 4
add r15, 4
mov dword [rsp + 0x3c], ecx
mov rax, qword [rax + 0x58]
mov qword [r12], rax
lea eax, [r8 + 1]
mov dword [r15], eax
mov edi, r10d
lea rax, [rbp + 0x40]
sub edi, dword [rbx + 0x14]
lea rax, [rax + rdx*4]
cmp byte [rbx + 0xc], 0
mov r14d, r9d
mov qword [rbp - 0x68], rax
mov dword [rax], edi
jbe 0x180047de6
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 0x180047da4
mov rax, qword [rbp - 0x68]
xor r9d, r9d
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x58]
mov r10d, dword [rsp + 0x48]
mov r11d, dword [rsp + 0x38]
mov dword [rax], edi
mov dword [rbp + rdx*4 + 0x70], r8d
inc ecx
movsxd r8, dword [rsp + 0x4c]
inc rdx
add r12, 8
mov qword [rsp + 0x70], rdx
add r13, 4
mov dword [rsp + 0x3c], ecx
add r15, 4
cmp rdx, r8
jl 0x180047d20
mov rcx, qword [rbp + 0x58]
xor r13d, r13d
mov r9, qword [rbp - 0x18]
jmp 0x180047e43
mov r9d, 0x12ac2
jmp 0x180047cb5
movzx edx, r10w
mov r10d, dword [rdi + 0x38]
add r10d, 0xfffffff4
mov dword [rsp + 0x54], edx
add r10d, edx
mov dword [rsp + 0x48], r10d
mov eax, dword [rsp + 0x4c]
mov r12d, r13d
mov dword [rsp + 0x3c], eax
mov edx, eax
test eax, eax
jle 0x18004800b
mov ecx, dword [rbp - 0x30]
mov r15d, 1
mov rsi, r13
nop dword [rax]
nop dword [rax + rax]
mov ebx, dword [rbp + rsi + 0x40]
cmp ebx, r10d
jle 0x180047f2f
nop dword [rax]
cmp r15d, edx
jl 0x180047ea4
lea eax, [r15 + 1]
mov dword [rsp + 0x3c], eax
cmp rsi, 0xc
jg 0x180047ff1
mov dword [rbp + rsi + 0x44], r13d
mov ebx, dword [rbp + rsi + 0x40]
mov dword [rbp + rsi + 0x74], ecx
movsxd rdi, dword [rbp + rsi + 0x70]
movzx eax, word [r9 + rdi*2 - 2]
lea r14d, [rdi - 1]
test ax, ax
jne 0x180047ed2
mov edx, r14d
lea rcx, [rbp - 0x30]
call fcn.1800469a0
mov r10d, dword [rsp + 0x48]
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x38]
movzx eax, ax
add eax, 2
sub ebx, eax
mov dword [rbp + rsi + 0x40], ebx
test r11b, r11b
jne 0x180047f16
cmp edi, dword [rbp - 0x30]
jge 0x180047f13
movzx eax, word [r9 + rdi*2]
test ax, ax
jne 0x180047f06
mov edx, edi
lea rcx, [rbp - 0x30]
call fcn.1800469a0
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x38]
mov r10d, dword [rsp + 0x48]
movzx eax, ax
add eax, 2
jmp 0x180047f16
mov eax, r13d
add dword [rbp + rsi + 0x44], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rbp - 0x30]
mov dword [rbp + rsi + 0x70], r14d
cmp ebx, r10d
jg 0x180047e80
movsxd rdi, dword [rbp + rsi + 0x70]
cmp edi, ecx
jge 0x180047fb1
lea r14, [r9 + rdi*2]
nop dword [rax]
movzx eax, word [r14]
test ax, ax
jne 0x180047f5c
mov edx, edi
lea rcx, [rbp - 0x30]
call fcn.1800469a0
mov ecx, dword [rbp - 0x30]
mov r10d, dword [rsp + 0x48]
movzx eax, ax
add eax, 2
add ebx, eax
cmp ebx, r10d
jg 0x180047fd5
inc edi
mov dword [rbp + rsi + 0x40], ebx
add r14, 2
mov dword [rbp + rsi + 0x70], edi
cmp byte [rsp + 0x38], 0
jne 0x180047fa9
cmp edi, ecx
jge 0x180047fa6
movzx eax, word [r14]
test ax, ax
jne 0x180047f9e
mov edx, edi
lea rcx, [rbp - 0x30]
call fcn.1800469a0
mov ecx, dword [rbp - 0x30]
mov r10d, dword [rsp + 0x48]
movzx eax, ax
add eax, 2
jmp 0x180047fa9
mov eax, r13d
sub dword [rbp + rsi + 0x44], eax
cmp edi, ecx
jl 0x180047f40
mov edx, r15d
mov dword [rsp + 0x3c], edx
inc r12d
inc r15d
add rsi, 4
cmp r12d, edx
jge 0x180048007
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x38]
jmp 0x180047e70
cmp edi, ecx
jge 0x180047fb1
test r12d, r12d
jle 0x180047fe4
mov eax, dword [rbp + rsi + 0x6c]
jmp 0x180047fe7
mov eax, r13d
cmp edi, eax
jle 0x180047ffc
mov edx, dword [rsp + 0x3c]
jmp 0x180047fb8
mov r9d, 0x12b3f
jmp 0x180047cb5
mov r9d, 0x12b60
jmp 0x180047cb5
mov rcx, qword [rbp + 0x58]
lea eax, [rdx - 1]
movsxd r12, eax
mov qword [rbp - 0x68], r12
mov dword [rsp + 0x58], eax
test eax, eax
jle 0x18004815d
nop dword [rax]
nop word [rax + rax]
mov rsi, qword [rbp - 0x18]
lea rcx, [r12*4]
mov edi, dword [rbp + rcx + 0x40]
lea r8, [rbp + 0x70]
mov r15d, dword [rbp + rcx + 0x3c]
sub r8, 4
mov qword [rbp - 0x78], rcx
mov qword [rsp + 0x70], r8
mov r13d, dword [r8 + rcx]
lea ebx, [r13 - 1]
mov eax, ebx
sub eax, dword [rsp + 0x38]
movsxd r14, eax
inc r14
cmp word [rsi + r14*2], 0
lea edx, [rax + 1]
lea r14, [rsi + r14*2]
jne 0x180048082
lea rcx, [rbp - 0x30]
call fcn.1800469a0
mov r12d, dword [rsp + 0x58]
movsxd rax, ebx
lea rsi, [rsi + rax*2]
nop
movzx eax, word [rsi]
test ax, ax
jne 0x1800480a3
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1800469a0
movzx edx, word [r14]
movzx r8d, ax
test edi, edi
je 0x1800480df
cmp dword [rbp + 0x150], 0
jne 0x18004810c
mov ecx, dword [rsp + 0x3c]
add edx, edi
dec ecx
mov eax, 2
cmp r12d, ecx
mov ecx, 0
cmove eax, ecx
mov ecx, r15d
sub ecx, eax
lea eax, [rdx + 2]
sub ecx, r8d
cmp eax, ecx
jg 0x18004810c
mov rcx, qword [rbp - 0x78]
lea edi, [rdx + 2]
mov eax, 0xfffffffe
sub rsi, 2
sub eax, r8d
sub r14, 2
mov r8, qword [rsp + 0x70]
add r15d, eax
mov r13d, ebx
mov dword [r8 + rcx], ebx
sub ebx, 1
jns 0x180048090
jmp 0x180048115
mov r8, qword [rsp + 0x70]
mov rcx, qword [rbp - 0x78]
mov r12, qword [rbp - 0x68]
xor r14d, r14d
mov dword [rbp + rcx + 0x40], edi
mov dword [rbp + rcx + 0x3c], r15d
cmp r12, 1
jbe 0x180048132
mov eax, dword [rcx + r8 - 4]
jmp 0x180048135
mov eax, r14d
cmp r13d, eax
jle 0x1800481cb
dec dword [rsp + 0x58]
dec r12
mov qword [rbp - 0x68], r12
test r12, r12
jg 0x180048030
mov rcx, qword [rbp + 0x58]
xor r13d, r13d
mov edx, dword [rsp + 0x3c]
mov rax, qword [rcx + 0x50]
mov esi, r13d
movsxd r14, edx
mov r12d, 1
movzx r15d, byte [rax]
mov dword [rsp + 0x3c], r15d
test edx, edx
jle 0x180048310
mov rbx, r13
movsxd rcx, dword [rsp + 0x4c]
cmp rbx, rcx
jge 0x180048265
mov rdi, qword [rbp + rbx*8 + 0x58]
mov qword [rbp + rbx*8 + 0x88], rdi
mov qword [rbp + rbx*8 + 0x58], r13
mov qword [rbp - 0x68], rdi
mov rcx, qword [rdi + 0x70]
test byte [rcx + 0x34], 4
mov rdx, qword [rcx + 0x28]
je 0x180048201
mov eax, dword [rcx + 0x30]
cmp dword [rdx + 0x20], eax
jb 0x180048201
cmp dword [rdx + 0x80], 0
je 0x1800481fc
call fcn.180038420
jmp 0x180048226
lea rax, [0x180161dd4]
mov edi, 0xb
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0x12b8c
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002b870
jmp 0x180048a8d
mov eax, r13d
jmp 0x180048226
mov eax, dword [rdx + 0x30]
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x18004822a
mov eax, dword [rdx + 0xc8]
cmp dword [rdx + 0xb8], eax
jbe 0x180048221
call fcn.18003a1c0
jmp 0x180048226
call fcn.18003a110
mov dword [rsp + 0x30], eax
inc dword [rsp + 0x50]
mov edx, r13d
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x78]
sub eax, dword [rsp + 0x44]
cmp esi, eax
mov rax, qword [rdi + 0x70]
mov edi, dword [rsp + 0x30]
sete dl
inc edx
movsx ecx, word [rax + 0x36]
cmp ecx, edx
jne 0x180048542
test edi, edi
jne 0x180048a8a
jmp 0x180048302
mov r9d, dword [rsp + 0x60]
lea r8, [rbp - 0x70]
cmp dword [rbp + 0x150], 0
lea rdx, [rbp - 0x68]
mov rcx, qword [rsp + 0x68]
cmovne r9d, r12d
mov byte [rsp + 0x20], 0
call fcn.180044e80
mov dword [rsp + 0x30], eax
mov edi, eax
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x180048a8a
mov rdi, qword [rbp - 0x68]
mov edx, r15d
mov rcx, rdi
call fcn.1800403a0
mov rcx, qword [rsp + 0x68]
inc dword [rsp + 0x50]
mov eax, dword [rbp - 0x30]
mov qword [rbp + rbx*8 + 0x88], rdi
cmp byte [rcx + 0x21], 0
mov dword [rbp + rbx*4 + 0xb0], eax
je 0x1800482fb
mov edx, dword [rdi + 4]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r8b, 5
mov rax, qword [rbp - 0x80]
mov r9d, dword [rax + 4]
call fcn.18003eea0
mov edi, dword [rsp + 0x34]
mov dword [rsp + 0x30], edi
test edi, edi
jne 0x180048a8a
mov edx, dword [rbp - 0x70]
mov dword [rsp + 0x60], edx
inc esi
inc rbx
cmp rbx, r14
jl 0x180048181
movsxd r9, dword [rsp + 0x50]
mov r15, r9
test r9d, r9d
jle 0x18004833a
mov rdx, r13
mov rax, qword [rbp + rdx*8 + 0x88]
mov ecx, dword [rax + 4]
mov dword [rbp + rdx*4 + 0xc8], ecx
inc rdx
cmp rdx, r15
jl 0x180048320
lea r8d, [r9 - 1]
mov r11d, r13d
mov dword [rsp + 0x58], r8d
test r8d, r8d
jle 0x180048465
lea rbx, [rbp + 0x88]
mov r13, r12
mov qword [rbp - 0x68], rbx
mov eax, r8d
lea r8d, [r11 + 1]
mov r10d, r11d
mov dword [rsp + 0x78], r8d
mov r9d, r8d
lea r12, [r13 - 1]
mov r8, r13
cmp r13, r15
jge 0x180048444
nop
mov rax, qword [rbp + r12*8 + 0x88]
mov edx, dword [rax + 4]
mov rax, qword [rbp + r8*8 + 0x88]
mov ecx, dword [rax + 4]
cmp ecx, edx
mov rax, r8
cmovae rax, r12
mov r12, rax
mov eax, r9d
cmovae eax, r10d
inc r9d
inc r8
mov r10d, eax
cmp r8, r15
jl 0x180048380
cmp eax, r11d
je 0x180048440
mov rcx, qword [rbx]
xor edx, edx
mov eax, dword [0x180182f58]
mov r8, qword [rbp + r12*8 + 0x88]
mov r9, qword [rsp + 0x68]
mov r14d, dword [rcx + 4]
mov rcx, qword [rcx + 0x70]
mov esi, dword [r8 + 4]
div dword [r9 + 0x34]
movzx ebx, word [rcx + 0x34]
lea edx, [rax + 1]
mov rax, qword [r8 + 0x70]
movzx edi, word [rax + 0x34]
mov word [rcx + 0x34], di
call fcn.180033e20
mov rax, qword [rbp + r12*8 + 0x88]
mov edx, r14d
mov rcx, qword [rax + 0x70]
mov word [rcx + 0x34], bx
call fcn.180033e20
mov rbx, qword [rbp - 0x68]
mov edx, esi
mov rax, qword [rbx]
mov rcx, qword [rax + 0x70]
mov word [rcx + 0x34], di
call fcn.180033e20
mov rax, qword [rbx]
mov dword [rax + 4], esi
mov rax, qword [rbp + r12*8 + 0x88]
mov dword [rax + 4], r14d
mov eax, dword [rsp + 0x58]
mov r11d, dword [rsp + 0x78]
add rbx, 8
inc r13
mov qword [rbp - 0x68], rbx
cmp r11d, eax
jl 0x180048360
mov r9d, dword [rsp + 0x50]
xor r13d, r13d
test byte [rsp + 0x3c], 8
lea r8, [r15 - 1]
mov rax, qword [rbp + r8*8 + 0x88]
mov ecx, dword [rax + 4]
mov rax, qword [rbp - 0x40]
bswap ecx
mov dword [rax], ecx
jne 0x1800484b7
cmp dword [rsp + 0x4c], r9d
je 0x1800484b7
mov rcx, qword [rbp - 0x38]
lea rdx, [rbp + 0x58]
lea rax, [rbp + 0x88]
cmovge rax, rdx
mov rax, qword [rax + rcx*8]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + r8*8 + 0x88]
mov rcx, qword [rax + 0x50]
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov r10, qword [rsp + 0x68]
cmp byte [r10 + 0x21], 0
je 0x1800486d7
mov rbx, qword [rbp + 0x88]
mov r14d, r13d
movzx esi, word [rbx + 0x18]
movzx eax, byte [rbx + 0xc]
add esi, eax
cmp dword [rbp - 0x30], 0
jle 0x1800486e1
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x88]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp + 0x70]
mov rdi, r13
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], rdx
mov r13, rbx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x58], rcx
mov r12, qword [rcx]
mov r11d, dword [rsp + 0x38]
cmp r14d, esi
jne 0x18004858a
mov r9d, dword [rsp + 0x48]
xor edx, edx
mov r10d, dword [rsp + 0x54]
test r11b, r11b
sete dl
inc rdi
cmp rdi, r15
jge 0x180048555
mov rbx, qword [rbp + rdi*8 + 0x88]
jmp 0x18004855a
test edi, edi
jne 0x180048a8a
mov r9d, 0x12bad
jmp 0x180047cb5
mov rbx, qword [rbp + rdi*8 + 0x58]
movzx eax, word [rbx + 0x18]
movzx ecx, byte [rbx + 0xc]
add eax, edx
add ecx, eax
add esi, ecx
cmp r14d, esi
je 0x180048530
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rbp - 0x78]
mov dword [rsp + 0x54], r10d
mov r10, qword [rsp + 0x68]
mov dword [rsp + 0x48], r9d
cmp r14d, dword [r8]
jne 0x1800485ad
mov r13, qword [rdx + 8]
add rdx, 8
add r8, 4
mov qword [rbp - 0x78], rdx
mov qword [rsp + 0x70], r8
test r11b, r11b
je 0x18004869f
cmp rdi, r15
jge 0x1800485cf
mov eax, dword [rbp + rdi*4 + 0xc8]
cmp dword [r13 + 4], eax
jne 0x1800485cf
cmp r12, qword [rbx + 0x50]
jb 0x1800485cf
cmp r12, qword [rbx + 0x58]
jb 0x18004869a
cmp word [rsp + 0x40], 0
jne 0x1800485fe
mov edx, dword [r12]
lea rax, [rsp + 0x34]
mov r9d, dword [r13 + 4]
mov r8b, 5
bswap edx
mov rcx, r10
mov qword [rsp + 0x20], rax
call fcn.18003eea0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
test ax, ax
jne 0x180048617
mov edx, r14d
lea rcx, [rbp - 0x30]
call fcn.1800469a0
cmp ax, word [r13 + 0x10]
jbe 0x180048684
cmp dword [rsp + 0x30], 0
jne 0x180048a86
lea r8, [rbp - 0x68]
mov rdx, r12
mov rcx, r13
call qword [r13 + 0x80]
movzx edx, word [rbp - 0x54]
cmp edx, dword [rbp - 0x58]
jae 0x180048690
mov rcx, qword [rbx + 0x58]
cmp rcx, r12
jb 0x180048655
lea rax, [r12 + rdx]
cmp rcx, rax
jb 0x1800486c8
movzx eax, word [rbp - 0x52]
mov r8b, 3
mov r9d, dword [r13 + 4]
mov rcx, qword [r13 + 0x48]
mov edx, dword [rax + r12 - 4]
lea rax, [rsp + 0x34]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.18003eea0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
jmp 0x180048688
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x180048a86
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x78]
add rcx, 8
add rax, 2
inc r14d
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x78], rax
cmp r14d, dword [rbp - 0x30]
jge 0x1800486d3
mov rdx, qword [rbp - 0x78]
mov r10, qword [rsp + 0x68]
jmp 0x180048511
mov r9d, 0x11106
jmp 0x180047cb5
lea r8, [r15 - 1]
mov rbx, qword [rbp + 0x88]
xor r13d, r13d
test r8, r8
jle 0x180048849
mov r12, r13
mov r13d, dword [rbp + 0x20]
movsxd rbx, dword [rbp + r12*4 + 0x70]
mov rcx, qword [rbp - 0x18]
mov r14, qword [rbp + r12*8 + 0x88]
mov r10, qword [rbp - 0x20]
movsxd rsi, dword [rbp - 0x6c]
movzx ecx, word [rcx + rbx*2]
add rsi, qword [rbp - 0x48]
mov r9d, ecx
add r9d, dword [rsp + 0x54]
cmp byte [r14 + 8], 0
mov rdi, qword [r10 + rbx*8]
jne 0x180048733
mov rcx, qword [r14 + 0x50]
mov eax, dword [rdi]
mov dword [rcx + 8], eax
jmp 0x1800487c8
cmp byte [rsp + 0x38], 0
je 0x1800487ae
dec ebx
lea r8, [rbp + 0xc8]
movsxd rdx, ebx
mov rcx, r14
mov rdx, qword [r10 + rdx*8]
call qword [r14 + 0x80]
mov rdx, qword [rbp + 0xc8]
lea rcx, [rsi + 4]
mov rdi, rsi
cmp rdx, 0x7f
ja 0x18004877a
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
xor esi, esi
lea r9d, [rax + 4]
jmp 0x1800487c8
cmp rdx, 0x3fff
ja 0x1800487a1
mov rax, rdx
and dl, 0x7f
shr rax, 7
or al, 0x80
mov byte [rcx + 1], dl
mov byte [rcx], al
xor esi, esi
mov eax, 2
lea r9d, [rax + 4]
jmp 0x1800487c8
call fcn.18002d470
xor esi, esi
lea r9d, [rax + 4]
jmp 0x1800487c8
sub rdi, 4
cmp ecx, 4
jne 0x1800487c8
mov rax, qword [rbp - 0x80]
mov rdx, rdi
mov rcx, rax
call qword [rax + 0x78]
movzx r9d, ax
add dword [rbp - 0x6c], r9d
xor eax, eax
cmp r13d, ebx
jg 0x1800487e2
cmp rax, 6
jge 0x1800487e2
inc rax
cmp dword [rbp + rax*4 + 0x20], ebx
jle 0x1800487d3
mov rcx, qword [rbp + rax*8 - 0x10]
cmp rcx, rdi
jb 0x1800487fb
movsxd rax, r9d
add rax, rdi
cmp rcx, rax
jb 0x1800488b1
mov eax, dword [r14 + 4]
mov r8, rdi
mov ebx, dword [rsp + 0x44]
mov edx, ebx
mov rcx, qword [rbp - 0x80]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call fcn.180046650
mov dword [rsp + 0x30], eax
mov edi, eax
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x180048a8a
inc ebx
lea rax, [r15 - 1]
inc r12
mov dword [rsp + 0x44], ebx
cmp r12, rax
jl 0x1800486f1
mov rbx, qword [rbp + 0x88]
mov r8d, dword [rsp + 0x50]
mov r12d, 1
sub r12d, r8d
cmp r12d, r8d
jge 0x18004894d
mov edi, dword [rbp + 0x70]
mov esi, dword [rsp + 0x48]
nop word [rax + rax]
mov eax, r12d
cdq
xor eax, edx
sub eax, edx
movsxd rbx, eax
cmp byte [rbp + rbx + 0xe0], 0
jne 0x18004893a
test r12d, r12d
jns 0x18004889f
mov ecx, dword [rbp + rbx*4 + 0x6c]
cmp dword [rbp + rbx*4 + 0xac], ecx
jl 0x18004893a
test eax, eax
jne 0x1800488bc
xor r14d, r14d
mov r9d, edi
mov edx, r14d
mov r8d, r14d
jmp 0x1800488f6
mov r9d, 0x12c75
jmp 0x180047cb5
xor r13d, r13d
cmp eax, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x38]
jge 0x1800488da
test al, al
mov edx, r13d
sete dl
add edx, dword [rbp + rbx*4 + 0xac]
jmp 0x1800488dd
mov edx, dword [rbp - 0x30]
mov r9d, dword [rbp + rbx*4 + 0x70]
test al, al
mov r8d, r13d
sete r8b
add r8d, dword [rbp + rbx*4 + 0x6c]
sub r9d, r8d
xor r14d, r14d
mov rcx, qword [rbp + rbx*8 + 0x88]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.180046f50
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x180048a80
mov rax, qword [rbp + rbx*8 + 0x88]
mov ecx, esi
sub ecx, dword [rbp + rbx*4 + 0x40]
mov r8d, dword [rsp + 0x50]
mov byte [rbp + rbx + 0xe0], 1
mov dword [rax + 0x14], ecx
inc r12d
cmp r12d, r8d
jl 0x180048870
mov rbx, qword [rbp + 0x88]
cmp dword [rbp - 0x50], 0
je 0x1800489f8
mov rdi, qword [rbp - 0x80]
cmp word [rdi + 0x18], 0
jne 0x1800489f8
movzx eax, byte [rdi + 9]
cmp eax, dword [rbx + 0x14]
jg 0x1800489f8
mov edx, 0xffffffff
mov rcx, rbx
call fcn.18003f770
mov rcx, qword [rbp + 0x88]
lea r8, [rsp + 0x34]
mov rdx, rdi
mov dword [rsp + 0x34], eax
call fcn.180047610
mov edi, dword [rsp + 0x34]
test edi, edi
jne 0x1800489b9
mov rcx, qword [rbp + 0x88]
mov rdx, rcx
mov r8d, dword [rcx + 4]
mov rcx, qword [rcx + 0x48]
call fcn.180045830
mov edi, eax
xor r14d, r14d
movsxd rax, dword [rsp + 0x4c]
mov rbx, rax
cmp r15, rax
jge 0x180048a8d
nop dword [rax]
mov rcx, qword [rbp + r15*8 + 0x58]
test edi, edi
jne 0x1800489eb
mov r8d, dword [rcx + 4]
mov rdx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.180045830
mov edi, eax
inc r15
cmp r15, rbx
jl 0x1800489d0
jmp 0x180048a8d
mov r10, qword [rsp + 0x68]
xor r14d, r14d
cmp byte [r10 + 0x21], r14b
je 0x180048a60
cmp word [rsp + 0x40], r14w
jne 0x180048a60
test r15, r15
jle 0x180048a60
mov ebx, r14d
nop word [rax + rax]
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 + 0x34]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.18003eea0
mov r10, qword [rsp + 0x68]
inc rbx
cmp rbx, r15
jl 0x180048a20
mov edi, dword [rsp + 0x34]
jmp 0x1800489bc
mov edi, dword [rsp + 0x30]
jmp 0x1800489bc
lea eax, [rbx + 1]
xor edx, edx
movsxd r8, eax
lea rcx, [rbp + 0x58]
shl r8, 3
call fcn.180131080
jmp 0x180048a8d
mov edi, dword [rsp + 0x30]
jmp 0x180048a8d
mov edi, dword [rsp + 0x30]
xor r14d, r14d
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x180048a9e
mov rcx, rax
call fcn.180028850
movsxd rax, dword [rsp + 0x4c]
mov r15, qword [rsp + 0x1f0]
mov rsi, rax
test eax, eax
jle 0x180048b19
mov rbx, r14
mov r8, qword [rbp + rbx*8 + 0x58]
test r8, r8
je 0x180048b11
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x180048b09
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
imul rdx, qword [r10 + 0xc8]
mov r9, qword [rcx]
call qword [r9 + 0x90]
jmp 0x180048b11
mov rcx, r8
call fcn.180033c40
inc rbx
cmp rbx, rsi
jl 0x180048ab5
movsxd rbx, dword [rsp + 0x50]
mov rsi, qword [rsp + 0x1f8]
test rbx, rbx
jle 0x180048b97
nop dword [rax + rax]
mov r8, qword [rbp + r14*8 + 0x88]
test r8, r8
je 0x180048b8f
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x180048b87
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
imul rdx, qword [r10 + 0xc8]
mov r9, qword [rcx]
call qword [r9 + 0x90]
jmp 0x180048b8f
mov rcx, r8
call fcn.180033c40
inc r14
cmp r14, rbx
jl 0x180048b30
mov rbx, qword [rsp + 0x248]
mov eax, edi
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.18012f130
add rsp, 0x200
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret