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

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
xor eax, eax
mov dword [rbp - 0x19], 0x110010
mov r12, rcx
mov dword [rbp - 0x15], 0x12
mov dword [rbp - 0x11], 0x70008
mov r14d, edx
mov dword [rbp - 0xd], 0x60009
mov dword [rbp - 9], 0x5000a
lea ecx, [rax + 0xf]
mov word [rbp + 0xb], cx
lea edx, [rax + 0xb]
mov dword [rbp - 5], 0x4000b
lea r8d, [rax + 0xc]
mov dword [rbp - 1], 0x3000c
mov dword [rbp + 3], 0x2000d
mov dword [rbp + 7], 0x1000e
test r12, r12
je 0x1800513b6
mov rbx, qword [r12 + 0x28]
test rbx, rbx
je 0x1800513b6
cmp qword [r12 + 0x10], rax
je 0x1800513b6
cmp qword [r12], rax
jne 0x180051318
cmp dword [r12 + 8], eax
jne 0x1800513b6
cmp dword [rbx], edx
jne 0x18005131f
mov dword [rbx], r8d
mov r9d, dword [r12 + 0x18]
mov r8d, r9d
mov r10, qword [r12 + 0x10]
mov r15, qword [r12]
mov r13d, dword [r12 + 8]
mov esi, dword [rbx + 0x40]
mov edi, dword [rbx + 0x44]
mov qword [rbp - 0x21], r10
mov qword [rbp - 0x29], r15
mov dword [rbp + 0x77], r9d
mov dword [rbp - 0x31], r13d
mov dword [rbp + 0x7f], r9d
mov dword [rbp + 0x67], eax
lea r11, [rbx + 0x68]
lea rdx, [rbx + 0x6c]
mov ecx, dword [rbx]
cmp ecx, 0xf
jg 0x180051ce4
je 0x180051a73
cmp ecx, 7
jg 0x1800519d7
je 0x1800517b0
xor eax, eax
test ecx, ecx
je 0x180051839
sub ecx, 1
je 0x1800513cf
sub ecx, 1
je 0x18005148b
sub ecx, 1
je 0x1800514e1
sub ecx, 1
je 0x180051561
sub ecx, 1
je 0x18005158b
cmp ecx, 1
je 0x180051693
mov eax, 0xfffffffe
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x10
cmp edi, ecx
jae 0x180051406
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
mov eax, 0x10
dec r13d
add edi, 8
cmp edi, eax
mov eax, 0
jb 0x1800513d8
mov dword [rbx + 0x10], esi
cmp sil, 8
jne 0x180051983
test esi, 0xe000
jne 0x180051983
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x180051434
mov eax, esi
shr eax, 8
and eax, 1
mov dword [rcx], eax
xor eax, eax
test dword [rbx + 0x10], 0x200
je 0x18005145f
mov byte [rbp - 0x39], sil
lea rdx, [rbp - 0x39]
shr esi, 8
mov r8d, 2
mov byte [rbp - 0x38], sil
mov ecx, dword [rbx + 0x18]
call fcn.180052f8c
mov dword [rbx + 0x18], eax
xor eax, eax
mov esi, eax
mov dword [rbx], 2
mov edi, eax
jmp 0x18005148b
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, 0x20
jb 0x18005146b
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x18005149c
mov dword [rax + 4], esi
test dword [rbx + 0x10], 0x200
je 0x1800514d5
mov eax, esi
mov byte [rbp - 0x39], sil
shr eax, 8
lea rdx, [rbp - 0x39]
mov byte [rbp - 0x38], al
mov r8d, 4
mov eax, esi
shr esi, 0x18
shr eax, 0x10
mov byte [rbp - 0x37], al
mov byte [rbp - 0x36], sil
mov ecx, dword [rbx + 0x18]
call fcn.180052f8c
mov dword [rbx + 0x18], eax
xor eax, eax
mov dword [rbx], 3
mov esi, eax
mov edi, eax
mov r14d, 0x10
jmp 0x180051509
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, r14d
jb 0x1800514e9
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18005152a
movzx eax, sil
mov dword [rcx + 8], eax
mov ecx, esi
mov rax, qword [rbx + 0x20]
shr ecx, 8
mov dword [rax + 0xc], ecx
test dword [rbx + 0x10], 0x200
je 0x180051553
mov byte [rbp - 0x39], sil
lea rdx, [rbp - 0x39]
shr esi, 8
mov r8d, 2
mov byte [rbp - 0x38], sil
mov ecx, dword [rbx + 0x18]
call fcn.180052f8c
mov dword [rbx + 0x18], eax
xor eax, eax
mov dword [rbx], 4
mov esi, eax
mov edi, eax
jmp 0x180051567
mov r14d, 0x10
test dword [rbx + 0x10], 0x400
jne 0x1800515fe
mov rax, qword [rbx + 0x20]
xor ecx, ecx
test rax, rax
je 0x180051583
mov qword [rax + 0x10], rcx
xor eax, eax
mov dword [rbx], 5
test dword [rbx + 0x10], 0x400
je 0x18005168a
mov r14d, dword [rbx + 0x48]
cmp r14d, r13d
cmova r14d, r13d
test r14d, r14d
je 0x180051681
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x180051654
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x180051654
mov ecx, dword [rax + 0x18]
sub ecx, dword [rbx + 0x48]
mov r8d, dword [rax + 0x1c]
lea eax, [r14 + rcx]
cmp eax, r8d
jbe 0x180051646
sub r8d, ecx
jmp 0x180051649
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, r14d
jb 0x1800515de
mov rax, qword [rbx + 0x20]
mov dword [rbx + 0x48], esi
test rax, rax
je 0x180051612
mov dword [rax + 0x18], esi
test dword [rbx + 0x10], 0x200
je 0x18005163b
mov byte [rbp - 0x39], sil
lea rdx, [rbp - 0x39]
shr esi, 8
mov r8d, 2
mov byte [rbp - 0x38], sil
mov ecx, dword [rbx + 0x18]
call fcn.180052f8c
mov dword [rbx + 0x18], eax
xor eax, eax
mov esi, eax
mov edi, eax
jmp 0x180051585
mov r8d, r14d
add rcx, rdx
mov rdx, r15
call fcn.1800532c0
test dword [rbx + 0x10], 0x200
je 0x18005166e
mov ecx, dword [rbx + 0x18]
mov r8d, r14d
mov rdx, r15
call fcn.180052f8c
mov dword [rbx + 0x18], eax
sub dword [rbx + 0x48], r14d
sub r13d, r14d
mov eax, r14d
add r15, rax
mov qword [rbp - 0x29], r15
xor eax, eax
cmp dword [rbx + 0x48], eax
jne 0x180051714
mov dword [rbx + 0x48], eax
mov dword [rbx], 6
test dword [rbx + 0x10], 0x800
je 0x180051795
test r13d, r13d
je 0x180051714
mov r14d, eax
jmp 0x1800516ae
mov r15, qword [rbp - 0x29]
mov eax, r14d
inc r14d
movzx r15d, byte [rax + r15]
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1800516da
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x1800516da
mov ecx, dword [rbx + 0x48]
cmp ecx, dword [rax + 0x28]
jae 0x1800516da
mov byte [rcx + rdx], r15b
inc dword [rbx + 0x48]
test r15d, r15d
je 0x1800516e4
cmp r14d, r13d
jb 0x1800516aa
test dword [rbx + 0x10], 0x200
je 0x1800516ff
mov rdx, qword [rbp - 0x29]
mov r8d, r14d
mov ecx, dword [rbx + 0x18]
call fcn.180052f8c
mov dword [rbx + 0x18], eax
mov eax, r14d
sub r13d, r14d
add qword [rbp - 0x29], rax
xor eax, eax
test r15d, r15d
je 0x1800517a6
mov r15d, dword [rbp + 0x67]
mov rax, qword [rbp - 0x21]
mov qword [r12 + 0x10], rax
mov eax, dword [rbp + 0x77]
mov dword [r12 + 0x18], eax
mov rax, qword [rbp - 0x29]
mov dword [r12 + 8], r13d
xor r13d, r13d
mov qword [r12], rax
mov dword [rbx + 0x40], esi
mov esi, dword [rbp + 0x6f]
mov dword [rbx + 0x44], edi
mov edi, dword [rbp + 0x7f]
cmp dword [rbx + 0x2c], r13d
jne 0x18005176d
cmp edi, dword [r12 + 0x18]
je 0x180052814
cmp dword [rbx], 0x1d
jge 0x180052814
cmp dword [rbx], 0x1a
jl 0x18005176d
cmp esi, 4
je 0x180052814
mov rdx, qword [r12 + 0x10]
mov r8d, edi
sub r8d, dword [r12 + 0x18]
mov rcx, r12
call fcn.180052b0c
test eax, eax
je 0x180052814
mov dword [rbx], 0x1e
jmp 0x1800527ff
mov rax, qword [rbx + 0x20]
xor ecx, ecx
test rax, rax
je 0x1800517a4
mov qword [rax + 0x20], rcx
xor eax, eax
mov ecx, 7
mov dword [rbx + 0x48], eax
mov dword [rbx], ecx
test dword [rbx + 0x10], 0x1000
je 0x180051993
test r13d, r13d
je 0x180051714
mov rcx, qword [rbp - 0x29]
mov r14d, eax
mov eax, r14d
inc r14d
movzx r15d, byte [rax + rcx]
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1800517fd
mov rdx, qword [rax + 0x30]
test rdx, rdx
je 0x1800517fd
mov ecx, dword [rbx + 0x48]
cmp ecx, dword [rax + 0x38]
jae 0x1800517f9
mov byte [rcx + rdx], r15b
inc dword [rbx + 0x48]
mov rcx, qword [rbp - 0x29]
test r15d, r15d
je 0x180051807
cmp r14d, r13d
jb 0x1800517cd
test dword [rbx + 0x10], 0x200
je 0x180051821
mov rdx, rcx
mov r8d, r14d
mov ecx, dword [rbx + 0x18]
call fcn.180052f8c
mov dword [rbx + 0x18], eax
mov eax, r14d
sub r13d, r14d
add qword [rbp - 0x29], rax
test r15d, r15d
jne 0x180051714
jmp 0x1800519a3
cmp dword [rbx + 8], eax
jne 0x180051849
mov dword [rbx], 0xc
jmp 0x18005135a
mov ecx, 0x10
cmp edi, ecx
jae 0x180051880
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
mov eax, 0x10
dec r13d
add edi, 8
cmp edi, eax
mov eax, 0
jb 0x180051852
test byte [rbx + 8], 2
je 0x1800518d3
cmp esi, 0x8b1f
jne 0x1800518d3
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180052f8c
mov dword [rbx + 0x18], eax
lea rdx, [rbp - 0x39]
mov word [rbp - 0x39], si
mov r8d, 2
mov ecx, dword [rbx + 0x18]
call fcn.180052f8c
mov dword [rbx + 0x18], eax
mov dword [rbx], 1
xor eax, eax
mov edi, eax
mov esi, eax
mov r8d, dword [rbp + 0x7f]
mov r9d, dword [rbp + 0x77]
mov r10, qword [rbp - 0x21]
jmp 0x180051352
mov dword [rbx + 0x10], eax
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1800518e3
or dword [rax + 0x40], 0xffffffff
test byte [rbx + 8], 1
je 0x180051981
movzx ecx, sil
mov eax, esi
shr eax, 8
shl ecx, 8
add ecx, eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
imul eax, eax, 0x1f
cmp ecx, eax
jne 0x18005197d
mov eax, esi
and al, 0xf
cmp al, 8
je 0x18005192e
xor eax, eax
mov qword [r12 + 0x20], rax
mov dword [rbx], 0x1d
jmp 0x180051356
shr esi, 4
add edi, 0xfffffffc
mov ecx, esi
xor eax, eax
and ecx, 0xf
add ecx, 8
cmp dword [rbx + 0x28], eax
jne 0x180051948
mov dword [rbx + 0x28], ecx
jmp 0x18005194d
cmp ecx, dword [rbx + 0x28]
ja 0x18005191e
mov eax, 1
xor r8d, r8d
shl eax, cl
xor edx, edx
xor ecx, ecx
mov dword [rbx + 0x14], eax
call fcn.180052cac
shr esi, 8
not esi
mov dword [rbx + 0x18], eax
and esi, 2
mov dword [r12 + 0x4c], eax
or esi, 9
mov dword [rbx], esi
jmp 0x1800518bc
lea rdx, [rbx + 0x6c]
xor eax, eax
mov qword [r12 + 0x20], rax
mov dword [rbx], 0x1d
jmp 0x18005135a
mov rax, qword [rbx + 0x20]
xor r8d, r8d
test rax, rax
je 0x1800519a3
mov qword [rax + 0x30], r8
mov r15, qword [rbp - 0x29]
lea r11, [rbx + 0x68]
mov r8d, dword [rbp + 0x7f]
lea rdx, [rbx + 0x6c]
mov r9d, dword [rbp + 0x77]
mov r10, qword [rbp - 0x21]
mov r14d, dword [rbp + 0x6f]
mov dword [rbx], 8
test dword [rbx + 0x10], 0x200
je 0x180051c80
jmp 0x180051c65
sub ecx, 8
je 0x1800519c5
sub ecx, 1
je 0x180051af5
sub ecx, 1
je 0x180051b31
sub ecx, 1
je 0x180051b6a
sub ecx, 1
je 0x180051b7e
sub ecx, 1
je 0x180051a10
cmp ecx, 1
jne 0x1800513b6
jmp 0x180051a6b
mov ecx, edi
and ecx, 7
shr esi, cl
sub edi, ecx
jmp 0x180051a3b
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, 0x20
jb 0x180051a1b
mov eax, esi
movzx ecx, si
not eax
shr eax, 0x10
cmp ecx, eax
jne 0x180051981
xor eax, eax
mov dword [rbx + 0x48], ecx
mov dword [rbx], 0xe
mov esi, eax
mov edi, eax
cmp r14d, 6
je 0x180051714
mov dword [rbx], 0xf
xor eax, eax
mov r14d, dword [rbx + 0x48]
test r14d, r14d
je 0x180051cd5
cmp r14d, r13d
cmova r14d, r13d
cmp r14d, r9d
cmova r14d, r9d
test r14d, r14d
je 0x180051714
mov r8d, r14d
mov rdx, r15
mov rcx, r10
call fcn.1800532c0
mov r9d, dword [rbp + 0x77]
sub r13d, r14d
mov r10, qword [rbp - 0x21]
sub r9d, r14d
mov eax, r14d
add r15, rax
mov dword [rbp + 0x77], r9d
add r10, rax
mov qword [rbp - 0x29], r15
sub dword [rbx + 0x48], r14d
mov r14d, dword [rbp + 0x6f]
mov qword [rbp - 0x21], r10
jmp 0x180051cc2
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, 0x20
jb 0x180051ad5
mov eax, esi
mov ecx, esi
shl ecx, 0x10
mov edx, 0xff00
and eax, edx
add ecx, eax
mov eax, esi
shr eax, 8
and eax, edx
shr esi, 0x18
shl ecx, 8
add eax, ecx
add eax, esi
mov dword [rbx + 0x18], eax
mov dword [r12 + 0x4c], eax
xor eax, eax
mov esi, eax
mov dword [rbx], 0xa
mov edi, eax
jmp 0x180051b33
xor eax, eax
cmp dword [rbx + 0xc], eax
je 0x1800527c5
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180052cac
mov r8d, dword [rbp + 0x7f]
lea r11, [rbx + 0x68]
mov r9d, dword [rbp + 0x77]
lea rdx, [rbx + 0x6c]
mov r10, qword [rbp - 0x21]
mov dword [rbx + 0x18], eax
mov dword [r12 + 0x4c], eax
mov dword [rbx], 0xb
cmp r14d, 5
je 0x180051714
cmp r14d, 6
je 0x180051714
xor eax, eax
cmp dword [rbx + 4], eax
je 0x180051bb9
mov ecx, edi
mov dword [rbx], 0x1a
and ecx, 7
shr esi, cl
sub edi, ecx
jmp 0x18005135a
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, 3
jb 0x180051b99
mov eax, esi
dec edi
and eax, 1
shr esi, 1
mov dword [rbx + 4], eax
mov eax, esi
and eax, 3
je 0x180051c32
sub eax, 1
je 0x180051bf8
sub eax, 1
je 0x180051bef
cmp eax, 1
jne 0x180051c38
xor eax, eax
mov qword [r12 + 0x20], rax
mov dword [rbx], 0x1d
jmp 0x180051c3a
mov eax, 0x10
mov dword [rbx], eax
jmp 0x180051c38
mov dword [r11], 9
lea rax, [0x18005cde0]
mov qword [rbx + 0x58], rax
lea rax, [0x18005d5e0]
mov qword [rbx + 0x60], rax
mov dword [rdx], 5
mov dword [rbx], 0x13
cmp r14d, 6
jne 0x180051c38
shr esi, 2
add edi, 0xfffffffe
jmp 0x180051714
mov dword [rbx], 0xd
xor eax, eax
shr esi, 2
add edi, 0xfffffffe
jmp 0x18005135a
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
mov eax, 0x10
cmp edi, eax
jb 0x180051c45
movzx eax, word [rbx + 0x18]
cmp esi, eax
jne 0x180051981
xor eax, eax
mov esi, eax
mov edi, eax
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x180051ca0
mov eax, dword [rbx + 0x10]
sar eax, 9
and eax, 1
mov dword [rcx + 0x3c], eax
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x40], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180052f8c
mov dword [rbx + 0x18], eax
mov dword [r12 + 0x4c], eax
mov dword [rbx], 0xb
mov r9d, dword [rbp + 0x77]
mov r10, qword [rbp - 0x21]
mov r8d, dword [rbp + 0x7f]
lea r11, [rbx + 0x68]
lea rdx, [rbx + 0x6c]
xor eax, eax
jmp 0x18005135a
mov r14d, dword [rbp + 0x6f]
mov dword [rbx], 0xb
jmp 0x18005135a
cmp ecx, 0x17
jg 0x180052601
je 0x18005256a
sub ecx, 0x10
je 0x180051d53
sub ecx, 1
je 0x180051dab
sub ecx, 1
je 0x180051e9a
sub ecx, 1
je 0x180052187
sub ecx, 1
je 0x18005218d
sub ecx, 1
je 0x1800523a3
cmp ecx, 1
jne 0x1800513b6
jmp 0x1800523fd
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, 0xe
jb 0x180051d33
mov ecx, esi
add edi, 0xfffffff2
shr esi, 5
and ecx, 0x1f
mov edx, esi
add ecx, 0x101
shr esi, 5
and edx, 0x1f
mov eax, esi
mov dword [rbx + 0x74], ecx
and eax, 0xf
shr esi, 4
add eax, 4
inc edx
mov dword [rbx + 0x78], edx
mov dword [rbx + 0x70], eax
cmp ecx, 0x11e
ja 0x18005191c
cmp edx, 0x1e
ja 0x18005191c
xor r8d, r8d
mov dword [rbx + 0x7c], r8d
lea eax, [r8 + 0x11]
mov dword [rbx], eax
jmp 0x180051dae
xor r8d, r8d
mov eax, dword [rbx + 0x70]
mov r10d, 7
cmp dword [rbx + 0x7c], eax
jae 0x180051e21
jmp 0x180051dde
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, 3
jb 0x180051dbe
mov eax, dword [rbx + 0x7c]
movzx edx, si
and dx, r10w
shr esi, 3
add edi, 0xfffffffd
movzx ecx, word [rbp + rax*2 - 0x19]
mov word [rbx + rcx*2 + 0x88], dx
inc dword [rbx + 0x7c]
mov eax, dword [rbx + 0x7c]
cmp eax, dword [rbx + 0x70]
jb 0x180051dde
jmp 0x180051e21
mov eax, dword [rbx + 0x7c]
movzx ecx, word [rbp + rax*2 - 0x19]
mov word [rbx + rcx*2 + 0x88], r8w
inc dword [rbx + 0x7c]
cmp dword [rbx + 0x7c], 0x13
jb 0x180051e0d
lea rax, [rbx + 0x548]
mov dword [r11], r10d
lea r9, [rbx + 0x80]
mov qword [rbx + 0x58], rax
xor ecx, ecx
mov qword [r9], rax
lea rax, [rbx + 0x308]
mov qword [rsp + 0x28], rax
lea rdx, [rbx + 0x88]
mov qword [rsp + 0x20], r11
lea r8d, [rcx + 0x13]
call fcn.1800532f0
mov r10, qword [rbp - 0x21]
lea r11, [rbx + 0x68]
xor r8d, r8d
mov dword [rbp + 0x67], eax
test eax, eax
je 0x180051e8e
mov r8d, dword [rbp + 0x7f]
xor eax, eax
mov r9d, dword [rbp + 0x77]
mov qword [r12 + 0x20], rax
mov dword [rbx], 0x1d
jmp 0x180051356
mov dword [rbx + 0x7c], r8d
mov dword [rbx], 0x12
jmp 0x180051e9d
xor r8d, r8d
mov eax, dword [rbx + 0x78]
add eax, dword [rbx + 0x74]
cmp dword [rbx + 0x7c], eax
jae 0x180052075
mov r9d, 1
jmp 0x180051ed4
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
add r15, r9
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
mov ecx, dword [r11]
mov eax, r9d
shl eax, cl
sub eax, r9d
mov ecx, eax
mov eax, esi
and rcx, rax
mov rax, qword [rbx + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [rbp - 0x35], eax
cmp ecx, edi
ja 0x180051eb4
mov edx, eax
mov ecx, 0x10
shr edx, 0x10
cmp dx, cx
jae 0x180051f2c
shr eax, 8
movzx ecx, al
mov eax, dword [rbx + 0x7c]
sub edi, ecx
shr esi, cl
mov word [rbx + rax*2 + 0x88], dx
add dword [rbx + 0x7c], r9d
mov ecx, dword [rbx + 0x7c]
jmp 0x180052054
jne 0x180051f8e
shr eax, 8
movzx edx, al
add edx, 2
jmp 0x180051f59
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
add r15, r9
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, edx
jb 0x180051f39
movzx ecx, byte [rbp - 0x34]
mov eax, dword [rbx + 0x7c]
sub edi, ecx
shr esi, cl
test eax, eax
je 0x180051e74
mov edx, esi
dec eax
and edx, 3
shr esi, 2
add edx, 3
add edi, 0xfffffffe
movzx r8d, word [rbx + rax*2 + 0x88]
jmp 0x180052029
movzx r9d, byte [rbp - 0x34]
mov eax, 0x11
cmp word [rbp - 0x33], ax
jne 0x180051fdf
lea edx, [r9 + 3]
jmp 0x180051fc4
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, edx
jb 0x180051fa4
mov ecx, r9d
mov eax, 0xfffffffd
shr esi, cl
mov edx, esi
and edx, 7
add edx, 3
shr esi, 3
jmp 0x18005201e
lea edx, [r9 + 7]
jmp 0x180052005
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, edx
jb 0x180051fe5
mov ecx, r9d
mov eax, 0xfffffff9
shr esi, cl
mov edx, esi
and edx, 0x7f
add edx, 0xb
shr esi, 7
sub eax, r9d
mov r9d, 1
add edi, eax
mov ecx, dword [rbx + 0x7c]
mov eax, dword [rbx + 0x78]
add ecx, edx
add eax, dword [rbx + 0x74]
cmp ecx, eax
ja 0x180052066
mov eax, dword [rbx + 0x7c]
mov word [rbx + rax*2 + 0x88], r8w
add dword [rbx + 0x7c], r9d
mov ecx, dword [rbx + 0x7c]
add edx, 0xffffffff
jne 0x180052038
mov r14d, dword [rbp + 0x6f]
mov eax, dword [rbx + 0x78]
add eax, dword [rbx + 0x74]
cmp ecx, eax
jae 0x180052075
xor r8d, r8d
jmp 0x180051ed4
xor eax, eax
mov qword [r12 + 0x20], rax
mov dword [rbx], 0x1d
jmp 0x180052077
xor eax, eax
cmp dword [rbx], 0x1d
lea rdx, [rbx + 0x6c]
mov r8d, dword [rbp + 0x7f]
mov r9d, dword [rbp + 0x77]
je 0x18005135a
cmp word [rbx + 0x288], ax
je 0x18005191e
mov r8d, dword [rbx + 0x74]
lea rax, [rbx + 0x548]
lea r14, [rbx + 0x80]
mov qword [rbx + 0x58], rax
lea r15, [rbx + 0x308]
mov qword [r14], rax
mov qword [rsp + 0x28], r15
lea rdx, [rbx + 0x88]
mov r9, r14
mov qword [rsp + 0x20], r11
mov ecx, 1
mov dword [r11], 9
call fcn.1800532f0
mov dword [rbp + 0x67], eax
test eax, eax
je 0x18005210b
mov r15, qword [rbp - 0x29]
xor eax, eax
mov r8d, dword [rbp + 0x7f]
mov r9d, dword [rbp + 0x77]
mov r10, qword [rbp - 0x21]
mov r14d, dword [rbp + 0x6f]
mov qword [r12 + 0x20], rax
mov dword [rbx], 0x1d
jmp 0x180051352
mov rax, qword [r14]
lea rcx, [rbx + 0x6c]
mov r8d, dword [rbx + 0x78]
mov r9, r14
mov qword [rbx + 0x60], rax
mov eax, dword [rbx + 0x74]
add rax, 0x44
mov dword [rcx], 6
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
mov ecx, 2
lea rdx, [rbx + rax*2]
call fcn.1800532f0
mov r14d, dword [rbp + 0x6f]
mov r15d, eax
mov dword [rbp + 0x67], eax
xor eax, eax
test r15d, r15d
je 0x180052167
mov r15, qword [rbp - 0x29]
mov qword [r12 + 0x20], rax
mov dword [rbx], 0x1d
jmp 0x1800518c2
mov dword [rbx], 0x13
cmp r14d, 6
je 0x180051718
mov r15, qword [rbp - 0x29]
mov r8d, dword [rbp + 0x7f]
mov r9d, dword [rbp + 0x77]
mov r10, qword [rbp - 0x21]
mov dword [rbx], 0x14
cmp r13d, 6
jb 0x18005220b
cmp r9d, 0x102
jb 0x18005220b
mov qword [r12 + 0x10], r10
mov edx, r8d
mov dword [r12 + 0x18], r9d
mov rcx, r12
mov qword [r12], r15
mov dword [r12 + 8], r13d
mov dword [rbx + 0x40], esi
mov dword [rbx + 0x44], edi
call fcn.1800536fc
cmp dword [rbx], 0xb
lea r11, [rbx + 0x68]
mov r10, qword [r12 + 0x10]
lea rdx, [rbx + 0x6c]
mov r15, qword [r12]
mov eax, 0
mov r9d, dword [r12 + 0x18]
mov r13d, dword [r12 + 8]
mov esi, dword [rbx + 0x40]
mov edi, dword [rbx + 0x44]
mov r8d, dword [rbp + 0x7f]
mov qword [rbp - 0x21], r10
mov dword [rbp + 0x77], r9d
mov qword [rbp - 0x29], r15
jne 0x18005135a
or dword [rbx + 0x1bdc], 0xffffffff
jmp 0x180051352
mov ecx, dword [rbx + 0x68]
xor r8d, r8d
mov r11, qword [rbx + 0x58]
mov dword [rbx + 0x1bdc], r8d
lea r10d, [r8 + 1]
mov eax, r10d
shl eax, cl
sub eax, r10d
mov ecx, eax
mov eax, esi
and rcx, rax
mov eax, dword [r11 + rcx*4]
jmp 0x18005226e
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
add r15, r10
mov ecx, dword [rbx + 0x68]
add esi, eax
mov eax, r10d
mov qword [rbp - 0x29], r15
shl eax, cl
dec r13d
sub eax, r10d
add edi, 8
mov ecx, eax
mov eax, esi
and rcx, rax
mov rax, qword [rbx + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x180052235
test al, al
je 0x180052345
test al, 0xf0
jne 0x180052345
mov r10d, eax
movzx ecx, al
shr r10d, 8
mov r9d, 1
movzx r8d, r10b
mov edx, eax
add ecx, r8d
mov dword [rbp - 0x35], eax
shl r9d, cl
mov ecx, r8d
dec r9d
shr eax, 0x10
and r9d, esi
shr r9d, cl
add r9d, eax
mov eax, dword [r11 + r9*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
movzx ecx, r10b
add r8d, ecx
cmp r8d, edi
jbe 0x180052337
mov r10d, 1
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
movzx r9d, byte [rbp - 0x34]
mov r8d, r10d
shl eax, cl
add r15, r10
add esi, eax
movzx ecx, dl
movzx eax, word [rbp - 0x33]
add ecx, r9d
shl r8d, cl
dec r13d
sub r8d, r10d
mov qword [rbp - 0x29], r15
and r8d, esi
mov ecx, r9d
shr r8d, cl
add edi, 8
add r8d, eax
mov rax, qword [rbx + 0x58]
mov eax, dword [rax + r8*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
add r8d, r9d
cmp r8d, edi
ja 0x1800522da
movzx ecx, byte [rbp - 0x34]
shr esi, cl
sub edi, ecx
mov dword [rbx + 0x1bdc], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [rbx + 0x1bdc], ecx
sub edi, ecx
shr esi, cl
mov ecx, eax
shr ecx, 0x10
mov dword [rbx + 0x48], ecx
test al, al
jne 0x18005236e
mov dword [rbx], 0x19
jmp 0x180051cba
test al, 0x20
je 0x18005237e
or dword [rbx + 0x1bdc], 0xffffffff
jmp 0x180051cb4
test al, 0x40
je 0x180052394
xor eax, eax
mov qword [r12 + 0x20], rax
mov dword [rbx], 0x1d
jmp 0x1800518c2
movzx ecx, al
and ecx, 0xf
mov dword [rbx], 0x15
mov dword [rbx + 0x50], ecx
mov edx, dword [rbx + 0x50]
test edx, edx
je 0x1800523ea
jmp 0x1800523cc
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, edx
jb 0x1800523ac
mov ecx, edx
mov eax, 1
shl eax, cl
sub edi, edx
dec eax
and eax, esi
shr esi, cl
add dword [rbx + 0x48], eax
add dword [rbx + 0x1bdc], edx
mov eax, dword [rbx + 0x48]
lea rdx, [rbx + 0x6c]
mov dword [rbx + 0x1be0], eax
mov dword [rbx], 0x16
mov ecx, dword [rdx]
mov r10d, 1
mov r11, qword [rbx + 0x60]
mov eax, r10d
shl eax, cl
sub eax, r10d
mov ecx, eax
mov eax, esi
and rcx, rax
mov eax, dword [r11 + rcx*4]
jmp 0x180052456
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
add r15, r10
mov ecx, dword [rdx]
add esi, eax
mov eax, r10d
mov qword [rbp - 0x29], r15
shl eax, cl
dec r13d
sub eax, r10d
add edi, 8
mov ecx, eax
mov eax, esi
and rcx, rax
mov rax, qword [rbx + 0x60]
mov eax, dword [rax + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x18005241e
test al, 0xf0
jne 0x180052529
mov r10d, eax
movzx ecx, al
shr r10d, 8
mov r9d, 1
movzx r8d, r10b
mov edx, eax
add ecx, r8d
mov dword [rbp - 0x35], eax
shl r9d, cl
mov ecx, r8d
dec r9d
shr eax, 0x10
and r9d, esi
shr r9d, cl
add r9d, eax
mov eax, dword [r11 + r9*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
movzx ecx, r10b
add r8d, ecx
cmp r8d, edi
jbe 0x180052517
mov r10d, 1
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
movzx r9d, byte [rbp - 0x34]
mov r8d, r10d
shl eax, cl
add r15, r10
add esi, eax
movzx ecx, dl
movzx eax, word [rbp - 0x33]
add ecx, r9d
shl r8d, cl
dec r13d
sub r8d, r10d
mov qword [rbp - 0x29], r15
and r8d, esi
mov ecx, r9d
shr r8d, cl
add edi, 8
add r8d, eax
mov rax, qword [rbx + 0x60]
mov eax, dword [rax + r8*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
add r8d, r9d
cmp r8d, edi
ja 0x1800524ba
movzx ecx, byte [rbp - 0x34]
lea rdx, [rbx + 0x6c]
shr esi, cl
sub edi, ecx
add dword [rbx + 0x1bdc], ecx
mov r8d, dword [rbp + 0x7f]
lea r11, [rbx + 0x68]
mov r9d, dword [rbp + 0x77]
mov ecx, eax
mov r10, qword [rbp - 0x21]
shr ecx, 8
movzx ecx, cl
add dword [rbx + 0x1bdc], ecx
sub edi, ecx
shr esi, cl
test al, 0x40
jne 0x180051981
mov ecx, eax
mov dword [rbx], 0x17
shr ecx, 0x10
mov dword [rbx + 0x4c], ecx
movzx ecx, al
and ecx, 0xf
mov dword [rbx + 0x50], ecx
mov edx, dword [rbx + 0x50]
test edx, edx
je 0x1800525b1
jmp 0x180052593
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
add edi, 8
cmp edi, edx
jb 0x180052573
mov ecx, edx
mov eax, 1
shl eax, cl
sub edi, edx
dec eax
and eax, esi
shr esi, cl
add dword [rbx + 0x4c], eax
add dword [rbx + 0x1bdc], edx
mov dword [rbx], 0x18
lea rdx, [rbx + 0x6c]
test r9d, r9d
je 0x180051714
mov ecx, dword [rbx + 0x4c]
mov eax, r8d
sub eax, r9d
cmp ecx, eax
jbe 0x180052777
sub ecx, eax
cmp ecx, dword [rbx + 0x30]
jbe 0x1800525ea
xor eax, eax
cmp dword [rbx + 0x1bd8], eax
jne 0x180051983
mov eax, dword [rbx + 0x34]
cmp ecx, eax
jbe 0x180052766
mov edx, dword [rbx + 0x2c]
sub ecx, eax
sub edx, ecx
jmp 0x18005276a
sub ecx, 0x18
je 0x1800525bb
sub ecx, 1
je 0x18005273e
sub ecx, 1
je 0x180052624
sub ecx, 1
jne 0x1800527e8
xor eax, eax
jmp 0x1800526ea
xor eax, eax
cmp dword [rbx + 8], eax
je 0x1800526e4
jmp 0x180052656
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
mov eax, 0
add edi, 8
cmp edi, 0x20
jb 0x180052631
sub r8d, r9d
add dword [r12 + 0x1c], r8d
add dword [rbx + 0x1c], r8d
test r8d, r8d
je 0x1800526a4
cmp dword [rbx + 0x10], eax
mov rdx, r10
mov ecx, dword [rbx + 0x18]
mov eax, r8d
je 0x180052684
sub rdx, rax
call fcn.180052f8c
jmp 0x18005268c
sub rdx, rax
call fcn.180052cac
mov r9d, dword [rbp + 0x77]
lea r11, [rbx + 0x68]
mov r10, qword [rbp - 0x21]
lea rdx, [rbx + 0x6c]
mov dword [rbx + 0x18], eax
mov dword [r12 + 0x4c], eax
mov eax, esi
mov dword [rbp + 0x7f], r9d
and eax, 0xff00
mov ecx, esi
shl ecx, 0x10
mov r8d, r9d
add ecx, eax
mov eax, esi
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
mov eax, esi
shr eax, 0x18
add ecx, eax
xor eax, eax
cmp dword [rbx + 0x10], eax
cmovne ecx, esi
cmp ecx, dword [rbx + 0x18]
jne 0x180051983
mov esi, eax
mov edi, eax
mov dword [rbx], 0x1b
cmp dword [rbx + 8], eax
je 0x18005272d
cmp dword [rbx + 0x10], eax
je 0x18005272d
jmp 0x18005271b
test r13d, r13d
je 0x180051714
movzx eax, byte [r15]
mov ecx, edi
shl eax, cl
inc r15
add esi, eax
mov qword [rbp - 0x29], r15
dec r13d
mov eax, 0
add edi, 8
cmp edi, 0x20
jb 0x1800526f6
cmp esi, dword [rbx + 0x1c]
jne 0x180051983
mov esi, eax
mov edi, eax
mov dword [rbx], 0x1c
mov r15d, 1
jmp 0x180051718
test r9d, r9d
je 0x180051714
mov al, byte [rbx + 0x48]
mov byte [r10], al
inc r10
dec r9d
mov qword [rbp - 0x21], r10
mov dword [rbp + 0x77], r9d
mov dword [rbx], 0x14
jmp 0x180051cce
sub eax, ecx
mov edx, eax
add rdx, qword [rbx + 0x38]
mov eax, dword [rbx + 0x48]
cmp ecx, eax
jbe 0x180052782
jmp 0x180052780
mov eax, dword [rbx + 0x48]
mov rdx, r10
sub rdx, rcx
mov ecx, eax
cmp ecx, r9d
cmova ecx, r9d
sub r9d, ecx
sub eax, ecx
mov dword [rbp + 0x77], r9d
sub rdx, r10
mov dword [rbx + 0x48], eax
mov al, byte [rdx + r10]
mov byte [r10], al
inc r10
add ecx, 0xffffffff
jne 0x180052798
xor eax, eax
mov qword [rbp - 0x21], r10
lea rdx, [rbx + 0x6c]
cmp dword [rbx + 0x48], eax
jne 0x18005135a
mov dword [rbx], 0x14
jmp 0x180051356
mov qword [r12 + 0x10], r10
mov eax, 2
mov dword [r12 + 0x18], r9d
mov qword [r12], r15
mov dword [r12 + 8], r13d
mov dword [rbx + 0x40], esi
mov dword [rbx + 0x44], edi
jmp 0x1800513bb
sub ecx, 1
je 0x180052733
sub ecx, 1
je 0x180052809
cmp ecx, 1
jne 0x1800513b6
mov eax, 0xfffffffc
jmp 0x1800513bb
mov r15d, 0xfffffffd
jmp 0x180051718
sub edi, dword [r12 + 0x18]
mov r9d, dword [rbp - 0x31]
sub r9d, dword [r12 + 8]
add dword [r12 + 0xc], r9d
add dword [r12 + 0x1c], edi
add dword [rbx + 0x1c], edi
mov dword [rbp - 0x31], r9d
cmp dword [rbx + 8], r13d
je 0x18005286b
test edi, edi
je 0x18005286b
mov rdx, qword [r12 + 0x10]
mov r8d, edi
mov ecx, dword [rbx + 0x18]
mov eax, edi
sub rdx, rax
cmp dword [rbx + 0x10], r13d
je 0x18005285a
call fcn.180052f8c
jmp 0x18005285f
call fcn.180052cac
mov r9d, dword [rbp - 0x31]
mov dword [rbx + 0x18], eax
mov dword [r12 + 0x4c], eax
cmp dword [rbx], 0x13
je 0x180052878
cmp dword [rbx], 0xe
mov r8d, r13d
jne 0x18005287e
mov r8d, 0x100
mov eax, dword [rbx + 4]
mov edx, r13d
neg eax
mov eax, 0x80
sbb ecx, ecx
and ecx, 0x40
cmp dword [rbx], 0xb
cmove edx, eax
lea eax, [r8 + rcx]
add edx, eax
add edx, dword [rbx + 0x44]
mov dword [r12 + 0x48], edx
test r9d, r9d
jne 0x1800528ad
test edi, edi
je 0x1800528b2
cmp esi, 4
jne 0x1800528be
test r15d, r15d
mov eax, 0xfffffffb
cmove r15d, eax
mov eax, r15d
jmp 0x1800513bb