Function at 0x18005a960
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1800c2040]
xor rax, rsp
mov qword [rbp - 8], rax
xor r13d, r13d
xorps xmm0, xmm0
mov qword [rbp - 0x30], r13
mov rbx, r9
mov qword [rbp - 0x10], r13
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov r15b, r13b
movdqu xmmword [rbp - 0x20], xmm0
test r8, r8
je 0x18005b9f2
test rdx, rdx
je 0x18005b9f2
mov rcx, qword [rdx + 0x80]
test rcx, rcx
je 0x18005b9f2
cmp r8, qword [rdx + 0x40]
jb 0x18005b9f2
mov eax, dword [rdx + 0x88]
add rcx, 0xfffffffffffffffe
add rcx, rax
cmp r8, rcx
ja 0x18005b9f2
movzx r8d, byte [r8]
lea rdx, [rsi + 1]
mov dword [r9], r8d
mov qword [rbp - 0x28], rdx
cmp r8b, 0x21
jae 0x18005b9f2
cmp r8b, 1
jne 0x18005aa6a
movzx r9d, byte [rdx]
cmp r9d, dword [rdi + 0x28]
ja 0x18005b9f2
movzx eax, byte [rdx + 2]
movzx ecx, byte [rdx + 4]
movzx r8d, byte [rdx + 1]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 3]
shl r8d, 8
or r8d, eax
shl r8d, 8
or r8d, ecx
lea ecx, [r9 + r8]
cmp ecx, dword [rdi + 0x28]
ja 0x18005b9f2
mov dword [rbx + 8], r9d
lea edx, [r8*4]
mov dword [rbx + 0xc], r13d
mov rcx, qword [rdi + 0x30]
add rcx, 4
add rdx, rcx
mov qword [rbx + 0x10], rdx
mov al, 1
jmp 0x18005b9f4
lea eax, [r8 - 2]
cmp al, 1
jbe 0x18005b92c
cmp r8b, 0xb
jne 0x18005aab2
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffe
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
mov dword [r9 + 8], ecx
jmp 0x18005aa63
lea r9, [rbp - 0x30]
mov rdx, rsi
lea r8, [rbp - 0x28]
mov rcx, rdi
call fcn.18005a834
test al, al
je 0x18005b9f2
mov r8d, dword [rbx]
cmp r8d, 4
je 0x18005b7a4
cmp r8d, 5
sete r15b
je 0x18005b7a4
cmp r8d, 6
je 0x18005b60b
cmp r8d, 7
sete r15b
je 0x18005b60b
cmp r8d, 8
je 0x18005b4c4
cmp r8d, 9
sete r15b
je 0x18005b4c4
cmp r8d, 0xa
jne 0x18005ab66
mov rdx, qword [rbp - 0x28]
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffe
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
mov rax, qword [rbp - 0x30]
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], r13b
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
mov dword [rbx + 0x18], ecx
jmp 0x18005aa63
lea eax, [r8 - 0xc]
mov r15d, 1
cmp eax, r15d
jbe 0x18005b2ec
lea eax, [r8 - 0xe]
cmp eax, r15d
jbe 0x18005b1fa
lea eax, [r8 - 0x10]
cmp eax, 7
ja 0x18005ae0e
mov rax, qword [rbp - 0x30]
mov r9, qword [rbp - 0x28]
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], r13b
cmp r9, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffe
add rcx, qword [rdi + 0x80]
cmp r9, rcx
ja 0x18005b9f2
movzx eax, byte [r9]
add r9, 2
shl ax, 8
movsx ecx, ax
movzx eax, byte [r9 - 1]
or ecx, eax
lea eax, [r8 - 0x10]
shl ecx, 2
mov dword [rbx + 0x18], ecx
cmp eax, 3
ja 0x18005ac29
cmp r9, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffe
add rcx, qword [rdi + 0x80]
cmp r9, rcx
ja 0x18005b9f2
movzx eax, byte [r9]
add r9, 2
shl ax, 8
movsx ecx, ax
movzx eax, byte [r9 - 1]
or ecx, eax
shl ecx, 2
lea eax, [r8 - 0x12]
mov dword [rbx + 0x1c], ecx
test eax, 0xfffffffa
je 0x18005ac40
mov dword [rbx + 0x20], r13d
mov ecx, r13d
jmp 0x18005ac96
cmp r9, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp r9, rcx
ja 0x18005b9f2
lea rdx, [r9 + 2]
movzx eax, byte [rdx - 2]
lea r9, [rdx + 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx - 1]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x20], ecx
movzx eax, byte [rdx]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 1]
or ecx, eax
shl ecx, 0x10
lea eax, [r8 - 0x11]
mov dword [rbx + 0x24], ecx
test eax, 0xfffffff9
jne 0x18005ae03
cmp r9, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp r9, rcx
ja 0x18005b9f2
movzx eax, byte [r9 + 1]
movzx esi, byte [r9]
shl esi, 8
or esi, eax
movzx eax, byte [r9 + 2]
shl esi, 8
or esi, eax
movzx eax, byte [r9 + 3]
shl esi, 8
or esi, eax
cmp r8d, 0x11
jne 0x18005ad29
lea rax, [rbp - 0x20]
mov rdx, rdi
lea r9d, [r8 - 0xf]
mov qword [rsp + 0x20], rax
mov r8d, esi
mov rcx, r14
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov eax, dword [rbp - 0x20]
shl eax, 2
add dword [rbx + 0x18], eax
mov eax, dword [rbp - 0x1c]
shl eax, 2
add dword [rbx + 0x1c], eax
cmp dword [rbx], 0x13
jne 0x18005ad7d
lea rax, [rbp - 0x20]
mov r9d, 4
mov r8d, esi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov ecx, dword [rbx + 0x18]
mov eax, dword [rbp - 0x20]
lea ecx, [rcx + rax*4]
mov eax, dword [rbp - 0x1c]
mov dword [rbx + 0x18], ecx
mov ecx, dword [rbx + 0x1c]
lea ecx, [rcx + rax*4]
mov eax, dword [rbp - 0x18]
shl eax, 0x10
add dword [rbx + 0x20], eax
mov eax, dword [rbp - 0x14]
shl eax, 0x10
add dword [rbx + 0x24], eax
mov dword [rbx + 0x1c], ecx
cmp dword [rbx], 0x15
jne 0x18005adb7
lea rax, [rbp - 0x20]
mov r9d, r15d
mov r8d, esi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov eax, dword [rbp - 0x20]
lea r11d, [rax*4]
add dword [rbx + 0x18], r11d
add dword [rbx + 0x1c], r11d
cmp dword [rbx], 0x17
jne 0x18005ae03
lea rax, [rbp - 0x20]
mov r9d, 3
mov r8d, esi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov eax, dword [rbp - 0x20]
lea edx, [rax*4]
mov eax, dword [rbp - 0x1c]
add dword [rbx + 0x18], edx
add dword [rbx + 0x1c], edx
shl eax, 0x10
add dword [rbx + 0x20], eax
mov eax, dword [rbp - 0x18]
shl eax, 0x10
add dword [rbx + 0x24], eax
mov dword [rbx], 0x10
jmp 0x18005b4bc
lea eax, [r8 - 0x18]
cmp eax, 3
jbe 0x18005b071
lea eax, [r8 - 0x1c]
cmp eax, 3
jbe 0x18005aea3
cmp r8d, 0x20
jne 0x18005b9f2
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], r13b
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
dec rcx
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
add rdx, r15
mov qword [rbp - 0x28], rdx
cmp eax, 0x1c
jae 0x18005b9f2
lea r9, [rbp - 0x30]
mov dword [rbx + 0x18], eax
lea r8, [rbp - 0x28]
mov rdx, rsi
mov rcx, rdi
call fcn.18005a834
test al, al
je 0x18005b9f2
mov rax, qword [rbp - 0x30]
mov qword [rbx + 0x20], rax
mov byte [rbx + 0x28], r13b
jmp 0x18005b4bc
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], r13b
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 1]
add rdx, 4
or ecx, eax
shl ecx, 2
mov dword [rbx + 0x18], ecx
movzx eax, byte [rdx - 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx - 1]
or ecx, eax
lea eax, [r8 - 0x1e]
shl ecx, 2
mov dword [rbx + 0x1c], ecx
cmp eax, r15d
jbe 0x18005af1a
mov dword [rbx + 0x20], r13d
mov ecx, r13d
jmp 0x18005af6c
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 1]
add rdx, 4
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x20], ecx
movzx eax, byte [rdx - 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx - 1]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x24], ecx
mov r9, rdx
mov r10d, dword [rbx]
mov r8, rdx
lea eax, [r10 - 0x1d]
test eax, 0xfffffffd
jne 0x18005b066
cmp r10d, 0x1d
cmove r9, rdx
cmp r9, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx + 1]
movzx esi, byte [rdx]
shl esi, 8
or esi, eax
movzx eax, byte [rdx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [rdx + 3]
shl esi, 8
or esi, eax
cmp r10d, 0x1d
jne 0x18005b012
lea rax, [rbp - 0x20]
mov r8d, esi
lea r9d, [r10 - 0x1b]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov ecx, dword [rbx + 0x18]
mov eax, dword [rbp - 0x20]
lea ecx, [rcx + rax*4]
mov eax, dword [rbp - 0x1c]
mov dword [rbx + 0x18], ecx
mov ecx, dword [rbx + 0x1c]
lea ecx, [rcx + rax*4]
mov dword [rbx + 0x1c], ecx
cmp dword [rbx], 0x1f
jne 0x18005b066
lea rax, [rbp - 0x20]
mov r9d, 4
mov r8d, esi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov ecx, dword [rbx + 0x18]
mov eax, dword [rbp - 0x20]
lea ecx, [rcx + rax*4]
mov eax, dword [rbp - 0x1c]
mov dword [rbx + 0x18], ecx
mov ecx, dword [rbx + 0x1c]
lea ecx, [rcx + rax*4]
mov eax, dword [rbp - 0x18]
shl eax, 0x10
add dword [rbx + 0x20], eax
mov eax, dword [rbp - 0x14]
shl eax, 0x10
add dword [rbx + 0x24], eax
mov dword [rbx + 0x1c], ecx
mov dword [rbx], 0x1c
jmp 0x18005b4bc
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], r13b
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffe
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
add rdx, 2
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx - 1]
or ecx, eax
lea eax, [r8 - 0x1a]
shl ecx, 2
mov dword [rbx + 0x18], ecx
cmp eax, r15d
jbe 0x18005b0d1
mov dword [rbx + 0x1c], r13d
mov ecx, r13d
jmp 0x18005b123
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 1]
add rdx, 4
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x1c], ecx
movzx eax, byte [rdx - 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx - 1]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x20], ecx
mov r10, rdx
mov r9d, dword [rbx]
mov r8, rdx
lea eax, [r9 - 0x19]
test eax, 0xfffffffd
jne 0x18005b1ef
cmp r9d, 0x19
cmove r10, rdx
cmp r10, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx + 1]
mov esi, 3
movzx r8d, byte [rdx]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 3]
shl r8d, 8
or r8d, eax
cmp r9d, 0x1b
cmovne esi, r13d
cmp r9d, 0x19
jne 0x18005b1a7
mov esi, r15d
jmp 0x18005b1ad
cmp r9d, 0x1b
jne 0x18005b1ef
lea rax, [rbp - 0x20]
mov r9d, esi
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov ecx, dword [rbx + 0x18]
mov eax, dword [rbp - 0x20]
lea ecx, [rcx + rax*4]
mov dword [rbx + 0x18], ecx
cmp esi, 3
jne 0x18005b1ef
mov eax, dword [rbp - 0x1c]
shl eax, 0x10
add dword [rbx + 0x1c], eax
mov eax, dword [rbp - 0x18]
shl eax, 0x10
add dword [rbx + 0x20], eax
mov dword [rbx], 0x18
jmp 0x18005b4bc
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], r13b
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 1]
add rdx, 4
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x18], ecx
movzx eax, byte [rdx - 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx - 1]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x1c], ecx
cmp r8d, 0xf
jne 0x18005b2e1
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
mov r9d, 2
movzx r8d, byte [rdx + 1]
mov rcx, r14
shl eax, 8
or r8d, eax
movzx eax, byte [rdx + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 3]
shl r8d, 8
mov rdx, rdi
or r8d, eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov eax, dword [rbp - 0x20]
shl eax, 0x10
add dword [rbx + 0x18], eax
mov eax, dword [rbp - 0x1c]
shl eax, 0x10
add dword [rbx + 0x1c], eax
mov dword [rbx], 0xe
jmp 0x18005b4bc
mov rax, qword [rbp - 0x30]
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x28]
mov qword [rbx + 8], rax
mov rcx, rdi
mov byte [rbx + 0x10], r13b
call fcn.18005a834
test al, al
je 0x18005b9f2
mov r8, qword [rbp - 0x30]
cmp r8, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xffffffffffffffe8
add rcx, qword [rdi + 0x80]
cmp r8, rcx
ja 0x18005b9f2
movzx eax, byte [r8 + 1]
lea rdx, [r8 + 0x18]
movzx ecx, byte [r8]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 3]
shl ecx, 8
or ecx, eax
mov dword [rbx + 0x18], ecx
movzx eax, byte [r8 + 4]
movzx ecx, byte [r8 + 5]
shl eax, 8
or ecx, eax
movzx eax, byte [r8 + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 7]
shl ecx, 8
or ecx, eax
mov dword [rbx + 0x24], ecx
movzx eax, byte [r8 + 9]
movzx ecx, byte [r8 + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0xb]
shl ecx, 8
or ecx, eax
mov dword [rbx + 0x1c], ecx
movzx eax, byte [r8 + 0xc]
movzx ecx, byte [r8 + 0xd]
shl eax, 8
or ecx, eax
movzx eax, byte [r8 + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0xf]
shl ecx, 8
or ecx, eax
mov dword [rbx + 0x28], ecx
movzx eax, byte [r8 + 0x10]
movzx ecx, byte [r8 + 0x11]
shl eax, 8
or ecx, eax
movzx eax, byte [r8 + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0x13]
shl ecx, 8
or ecx, eax
mov dword [rbx + 0x20], ecx
movzx eax, byte [r8 + 0x14]
movzx ecx, byte [r8 + 0x15]
shl eax, 8
or ecx, eax
movzx eax, byte [r8 + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0x17]
shl ecx, 8
or ecx, eax
cmp dword [rbx], 0xd
mov dword [rbx + 0x2c], ecx
jne 0x18005b4b6
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
mov r9d, 6
movzx r8d, byte [rdx + 1]
mov rcx, r14
shl eax, 8
or r8d, eax
movzx eax, byte [rdx + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 3]
shl r8d, 8
mov rdx, rdi
or r8d, eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov eax, dword [rbp - 0x20]
add dword [rbx + 0x18], eax
mov eax, dword [rbp - 0x1c]
add dword [rbx + 0x24], eax
mov eax, dword [rbp - 0x18]
add dword [rbx + 0x1c], eax
mov eax, dword [rbp - 0x14]
add dword [rbx + 0x28], eax
mov eax, dword [rbp - 0x10]
add dword [rbx + 0x20], eax
mov eax, dword [rbp - 0xc]
add dword [rbx + 0x2c], eax
mov dword [rbx], 0xc
mov al, r15b
jmp 0x18005b9f4
mov rdx, qword [rbp - 0x30]
lea r8, [rbx + 8]
mov r9b, r15b
mov rcx, rdi
call fcn.18005a7e0
test al, al
je 0x18005b9f2
mov rdx, qword [rbp - 0x28]
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffff8
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
lea r9, [rdx + 8]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 1]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x28], ecx
movzx eax, byte [rdx + 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 3]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x2c], ecx
movzx eax, byte [rdx + 4]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 5]
or ecx, eax
shl ecx, 2
mov dword [rbx + 0x30], ecx
movzx eax, byte [rdx + 6]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 7]
or ecx, eax
shl ecx, 2
mov dword [rbx + 0x34], ecx
test r15b, r15b
je 0x18005b600
cmp r9, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp r9, rcx
ja 0x18005b9f2
movzx eax, byte [r9]
mov rdx, rdi
movzx r8d, byte [r9 + 1]
mov rcx, r14
shl eax, 8
or r8d, eax
movzx eax, byte [r9 + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [r9 + 3]
shl r8d, 8
mov r9d, 4
or r8d, eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov eax, dword [rbp - 0x20]
shl eax, 0x10
add dword [rbx + 0x28], eax
mov eax, dword [rbp - 0x1c]
shl eax, 0x10
add dword [rbx + 0x2c], eax
mov eax, dword [rbp - 0x18]
shl eax, 2
add dword [rbx + 0x30], eax
mov eax, dword [rbp - 0x14]
shl eax, 2
add dword [rbx + 0x34], eax
mov dword [rbx], 8
jmp 0x18005aa63
mov rdx, qword [rbp - 0x30]
lea r8, [rbx + 8]
mov r9b, r15b
mov rcx, rdi
call fcn.18005a7e0
test al, al
je 0x18005b9f2
mov rdx, qword [rbp - 0x28]
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffff4
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
lea r9, [rdx + 0xc]
shl ax, 8
mov r8d, 0x7fffffff
movsx ecx, ax
movzx eax, byte [rdx + 1]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x28], ecx
movzx eax, byte [rdx + 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 3]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x2c], ecx
movzx eax, byte [rdx + 4]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 5]
or ecx, eax
shl ecx, 0x10
test ecx, ecx
cmovs ecx, r8d
mov dword [rbx + 0x30], ecx
movzx eax, byte [rdx + 6]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 7]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x34], ecx
movzx eax, byte [rdx + 8]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 9]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x38], ecx
movzx eax, byte [rdx + 0xa]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 0xb]
or ecx, eax
shl ecx, 0x10
test ecx, ecx
cmovs ecx, r8d
mov dword [rbx + 0x3c], ecx
test r15b, r15b
je 0x18005b799
cmp r9, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp r9, rcx
ja 0x18005b9f2
movzx eax, byte [r9]
mov rdx, rdi
movzx r8d, byte [r9 + 1]
mov rcx, r14
shl eax, 8
or r8d, eax
movzx eax, byte [r9 + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [r9 + 3]
shl r8d, 8
mov r9d, 6
or r8d, eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov eax, dword [rbp - 0x20]
shl eax, 0x10
add dword [rbx + 0x28], eax
mov eax, dword [rbp - 0x1c]
shl eax, 0x10
add dword [rbx + 0x2c], eax
mov eax, dword [rbp - 0x18]
shl eax, 0x10
add dword [rbx + 0x30], eax
mov eax, dword [rbp - 0x14]
shl eax, 0x10
add dword [rbx + 0x34], eax
mov eax, dword [rbp - 0x10]
shl eax, 0x10
add dword [rbx + 0x38], eax
mov eax, dword [rbp - 0xc]
shl eax, 0x10
add dword [rbx + 0x3c], eax
mov dword [rbx], 6
jmp 0x18005aa63
mov rdx, qword [rbp - 0x30]
lea r8, [rbx + 8]
mov r9b, r15b
mov rcx, rdi
call fcn.18005a7e0
test al, al
je 0x18005b9f2
mov rdx, qword [rbp - 0x28]
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffff4
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
lea r9, [rdx + 0xc]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 1]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x28], ecx
movzx eax, byte [rdx + 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 3]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x2c], ecx
movzx eax, byte [rdx + 4]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 5]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x30], ecx
movzx eax, byte [rdx + 6]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 7]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x34], ecx
movzx eax, byte [rdx + 8]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 9]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x38], ecx
movzx eax, byte [rdx + 0xa]
shl ax, 8
movsx ecx, ax
movzx eax, byte [rdx + 0xb]
or ecx, eax
shl ecx, 0x10
mov dword [rbx + 0x3c], ecx
test r15b, r15b
je 0x18005b921
cmp r9, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp r9, rcx
ja 0x18005b9f2
movzx eax, byte [r9 + 1]
mov rdx, rdi
movzx r8d, byte [r9]
mov rcx, r14
shl r8d, 8
or r8d, eax
movzx eax, byte [r9 + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [r9 + 3]
shl r8d, 8
mov r9d, 6
or r8d, eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.18005a8a4
test al, al
je 0x18005b9f2
mov eax, dword [rbp - 0x20]
shl eax, 0x10
add dword [rbx + 0x28], eax
mov eax, dword [rbp - 0x1c]
shl eax, 0x10
add dword [rbx + 0x2c], eax
mov eax, dword [rbp - 0x18]
shl eax, 0x10
add dword [rbx + 0x30], eax
mov eax, dword [rbp - 0x14]
shl eax, 0x10
add dword [rbx + 0x34], eax
mov eax, dword [rbp - 0x10]
shl eax, 0x10
add dword [rbx + 0x38], eax
mov eax, dword [rbp - 0xc]
shl eax, 0x10
add dword [rbx + 0x3c], eax
mov dword [rbx], 4
jmp 0x18005aa63
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 1]
add rdx, 4
shl cx, 8
or cx, ax
mov word [r9 + 8], cx
movzx ecx, byte [rdx - 2]
movzx eax, byte [rdx - 1]
shl cx, 8
or cx, ax
mov word [r9 + 0xa], cx
cmp r8b, 3
jne 0x18005b9e7
cmp rdx, qword [rdi + 0x40]
jb 0x18005b9f2
mov ecx, dword [rdi + 0x88]
add rcx, 0xfffffffffffffffc
add rcx, qword [rdi + 0x80]
cmp rdx, rcx
ja 0x18005b9f2
movzx eax, byte [rdx]
mov r9d, 1
movzx r8d, byte [rdx + 1]
mov rcx, r14
shl eax, 8
or r8d, eax
movzx eax, byte [rdx + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 3]
shl r8d, 8
mov rdx, rdi
or r8d, eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.18005a8a4
test al, al
je 0x18005b9f2
movzx eax, word [rbp - 0x20]
add word [rbx + 0xa], ax
mov dword [rbx], 2
jmp 0x18005aa63
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18008ea10
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret