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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rbx, qword [rcx + 0x10]
mov r14d, edx
mov rdi, rcx
test rbx, rbx
jne 0x1802fb5c0
cmp qword [rcx + 0xa0], rbx
jne 0x1802fb5b8
mov rax, qword [rcx]
test byte [rax + 0x5c], 8
jne 0x1802fb5b8
mov byte [rcx + 0x23], 1
call fcn.1802c2fe0
mov rbx, rax
dec dword [rdi + 0x44]
xor r8d, r8d
mov esi, dword [rdi + 0x34]
mov r12d, dword [rdi + 0x44]
dec esi
mov r13, qword [rsp + 0xc0]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], r12d
cmp dword [rsp + 0xd8], r8d
jge 0x1802fb649
movsxd rcx, dword [rbx + 0x90]
movzx edx, byte [r13 + 0x2c]
cmp dword [rbx + 0x94], ecx
jg 0x1802fb61b
mov dword [rsp + 0x20], r8d
mov r9d, r12d
mov r8d, edx
mov rcx, rbx
mov edx, 0x2f
call fcn.1802c3380
xor r8d, r8d
jmp 0x1802fb649
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x2f
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov r15d, dword [r13 + 0x28]
mov ebp, r8d
mov dword [rsp + 0x3c], r15d
test r15d, r15d
jle 0x1802fb769
mov rsi, qword [rsp + 0xc8]
xor r14d, r14d
mov edi, dword [rsp + 0xd0]
mov r10, qword [r13]
movzx eax, word [rsi]
test byte [r10 + 0x40], 0x20
je 0x1802fb6dd
test ax, ax
js 0x1802fb6dd
movsx ecx, ax
mov r11d, r14d
movzx edx, r14w
test ecx, ecx
jle 0x1802fb6ba
mov r8, qword [r10 + 8]
add r8, 0x1c
mov r11d, ecx
mov r9d, ecx
nop
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x1802fb6a0
mov rax, qword [r10 + 8]
movsxd rcx, r11d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x1802fb6da
movzx eax, word [r10 + 0x48]
sub ax, dx
add ax, r11w
jmp 0x1802fb6dd
movzx eax, dx
movsxd rcx, dword [rbx + 0x90]
lea edx, [rdi + 1]
cwde
add edx, eax
cmp dword [rbx + 0x94], ecx
jg 0x1802fb70c
mov r8d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x32
mov r9d, r12d
mov rcx, rbx
call fcn.1802c3380
jmp 0x1802fb73a
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x32
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov r15d, dword [r13 + 0x28]
inc ebp
add rsi, 4
mov dword [rsp + 0x3c], r15d
cmp ebp, r15d
jl 0x1802fb670
mov rdi, qword [rsp + 0xa0]
xor r8d, r8d
mov r14d, dword [rsp + 0xa8]
mov esi, dword [rsp + 0x30]
cmp dword [rsp + 0xe0], 0
jne 0x1802fc0ce
mov rbp, qword [rsp + 0xb8]
test rbp, rbp
jne 0x1802fba3a
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1802fb798
inc dword [rdi + 0x38]
mov esi, dword [rdi + 0x38]
jmp 0x1802fb7a7
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov esi, dword [rdi + rax*4 + 0xcc]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [r13]
movzx edx, word [rax]
call fcn.1802ec250
mov r15d, dword [rsp + 0xd0]
xor r8d, r8d
movsx ecx, ax
lea edx, [r15 + 1]
add edx, ecx
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1802fb7fb
mov dword [rsp + 0x20], r8d
mov r9d, esi
mov r8d, edx
mov rcx, rbx
mov edx, 0x4e
call fcn.1802c3380
xor r8d, r8d
jmp 0x1802fb828
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x4e
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rbp, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ebp
jg 0x1802fb852
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, esi
mov rcx, rbx
lea edx, [r9 + 0xf]
call fcn.1802c3380
mov ebp, eax
jmp 0x1802fb886
lea eax, [rbp + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rbp*2]
mov rax, qword [rbx + 0x88]
add rcx, rbp
mov dword [rax + rcx*8], 0xf
mov dword [rax + rcx*8 + 4], esi
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rsp + 0xb0]
cmp rax, qword [r13]
jne 0x1802fb8d5
cmp dword [rsp + 0xd8], 1
jne 0x1802fb8d5
mov r9d, r12d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov edx, 0x35
mov rcx, rbx
call fcn.1802c33e0
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x1802fb8d5
lea rcx, [rax + rax*2]
mov edx, 0x90
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov r9, qword [rsp + 0xb0]
mov r8d, r14d
mov r14d, dword [rsp + 0x30]
mov rcx, rdi
mov edx, r14d
mov dword [rsp + 0x20], 0x60
call fcn.1802fe5a0
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1802fb922
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, r14d
mov rcx, rbx
lea edx, [r9 + 0x20]
call fcn.1802c3380
xor r15d, r15d
jmp 0x1802fb953
lea eax, [rcx + 1]
xor r15d, r15d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x20
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], r15
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1802fb97b
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.1802c3380
jmp 0x1802fb9a6
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 0xb
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx]
lea rdx, [0x1804f2b40]
mov r8d, dword [rbx + 0x90]
cmp byte [rax + 0x61], 0
lea ecx, [r8 - 2]
je 0x1802fb9c6
mov rax, rdx
jmp 0x1802fb9e2
sar ecx, 0x1f
mov eax, r8d
sub eax, ecx
sub eax, 2
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], r8d
mov rax, qword [rbx]
mov r8d, dword [rbx + 0x90]
cmp byte [rax + 0x61], 0
jne 0x1802fba10
lea eax, [r8 - 1]
test ebp, ebp
cmovns eax, ebp
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rax + rcx*8]
mov dword [rdx + 8], r8d
test esi, esi
je 0x1802fc0d6
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1802fc0d6
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], esi
inc byte [rdi + 0x1f]
jmp 0x1802fc0d6
cmp r15d, 1
jne 0x1802fba73
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1802fba59
inc dword [rdi + 0x38]
mov r12d, dword [rdi + 0x38]
mov dword [rsp + 0xe0], r12d
jmp 0x1802fbab0
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xcc]
mov dword [rsp + 0xe0], r12d
jmp 0x1802fbab0
mov ecx, dword [rdi + 0x28]
mov edx, dword [rdi + 0x2c]
mov dword [rsp + 0xe0], edx
cmp r15d, ecx
jg 0x1802fba97
lea eax, [rdx + r15]
sub ecx, r15d
mov dword [rdi + 0x2c], eax
mov r12d, edx
mov dword [rdi + 0x28], ecx
jmp 0x1802fbaac
mov eax, dword [rdi + 0x38]
lea r12d, [rax + 1]
add eax, r15d
mov dword [rdi + 0x38], eax
mov dword [rsp + 0xe0], r12d
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1802fbabc
inc dword [rdi + 0x38]
mov eax, dword [rdi + 0x38]
jmp 0x1802fbacb
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov eax, dword [rdi + rax*4 + 0xcc]
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rbp + 0x58]
mov dword [rsp + 0x38], eax
cmp dword [rbx + 0x94], ecx
jg 0x1802fbafb
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x60
mov r8d, esi
mov rcx, rbx
call fcn.1802c3380
jmp 0x1802fbb28
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x60
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r8
mov rsi, qword [rdi + 0x10]
mov rdx, rbp
mov rcx, rdi
call fcn.1802f3c80
mov rdx, rax
test rax, rax
je 0x1802fbb73
mov rcx, qword [rsi]
cmp byte [rcx + 0x61], 0
je 0x1802fbb57
mov r8, rax
mov edx, 0xfffffff7
call fcn.1802c4360
jmp 0x1802fbb73
movsxd rax, dword [rsi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8 - 0x17], 0xf7
mov qword [rax + rcx*8 - 8], rdx
test r15d, r15d
jle 0x1802fbc89
mov r14, qword [rsp + 0xc8]
mov esi, r12d
mov edi, dword [rsp + 0xd0]
xor r12d, r12d
mov ebp, r15d
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [r13]
movzx eax, word [r14]
test byte [r10 + 0x40], 0x20
je 0x1802fbc0d
test ax, ax
js 0x1802fbc0d
movsx ecx, ax
mov r11d, r12d
movzx edx, r12w
test ecx, ecx
jle 0x1802fbbea
mov r8, qword [r10 + 8]
add r8, 0x1c
mov r11d, ecx
mov r9d, ecx
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x1802fbbd0
mov rax, qword [r10 + 8]
movsxd rcx, r11d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x1802fbc0a
movzx eax, word [r10 + 0x48]
sub ax, dx
add ax, r11w
jmp 0x1802fbc0d
movzx eax, dx
movsxd rcx, dword [rbx + 0x90]
lea edx, [rdi + 1]
cwde
add edx, eax
cmp dword [rbx + 0x94], ecx
jg 0x1802fbc3c
mov r8d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x4d
mov r9d, esi
mov rcx, rbx
call fcn.1802c3380
jmp 0x1802fbc69
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x4d
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
inc esi
add r14, 4
sub rbp, 1
jne 0x1802fbba0
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xb0]
cmp rax, qword [r13]
jne 0x1802fbf0a
cmp dword [rsp + 0xd8], 1
jne 0x1802fbf0a
mov esi, dword [rbx + 0x90]
lea eax, [rsi + 1]
add eax, r15d
test r15d, r15d
jle 0x1802fbeb5
mov rcx, qword [rsp + 0xc8]
xor r9d, r9d
mov r13d, r15d
mov r12d, r9d
mov r15, qword [rsp + 0xc0]
mov edi, eax
nop dword [rax]
mov r10, qword [r15]
movzx eax, word [rcx]
test byte [r10 + 0x40], 0x20
je 0x1802fbd4d
test ax, ax
js 0x1802fbd4d
movsx ecx, ax
mov r11d, r9d
movzx edx, r9w
test ecx, ecx
jle 0x1802fbd2a
mov r8, qword [r10 + 8]
add r8, 0x1c
mov r11d, ecx
mov r9d, ecx
nop
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x1802fbd10
mov rax, qword [r10 + 8]
movsxd rcx, r11d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x1802fbd4a
movzx eax, word [r10 + 0x48]
sub ax, dx
add ax, r11w
jmp 0x1802fbd4d
movzx eax, dx
mov r8d, dword [rsp + 0xd0]
cwde
lea r14d, [r8 + 1]
add r14d, eax
mov rax, qword [rbp + 8]
mov rbp, qword [rbp + 0x18]
movzx r11d, word [r12 + rax]
test byte [rbp + 0x40], 0x20
je 0x1802fbdd9
test r11w, r11w
js 0x1802fbdd9
movsx eax, r11w
mov r10d, r9d
movzx edx, r9w
test eax, eax
jle 0x1802fbdb5
mov r8, qword [rbp + 8]
add r8, 0x1c
mov r10d, eax
mov r9d, eax
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x1802fbd93
mov r8d, dword [rsp + 0xd0]
mov rax, qword [rbp + 8]
movsxd rcx, r10d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x1802fbdd4
movzx eax, word [rbp + 0x48]
sub ax, dx
add ax, r10w
jmp 0x1802fbddd
movzx eax, dx
jmp 0x1802fbddd
movzx eax, r11w
movsx edx, ax
mov rax, qword [rsp + 0xb0]
inc edx
add edx, r8d
cmp r11w, word [rax + 0x44]
cmove edx, r8d
cmp dword [rbx + 0x94], esi
jg 0x1802fbe1a
mov dword [rsp + 0x20], edx
mov r9d, edi
mov edx, 0x34
mov r8d, r14d
mov rcx, rbx
call fcn.1802c3380
xor r9d, r9d
jmp 0x1802fbe4a
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x34
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
movsxd rsi, dword [rbx + 0x90]
mov eax, esi
test esi, esi
jle 0x1802fbe74
mov rax, qword [rbx + 0x88]
lea rcx, [rsi + rsi*2]
mov edx, 0x10
mov word [rax + rcx*8 - 0x16], dx
mov esi, dword [rbx + 0x90]
mov eax, esi
mov rcx, qword [rsp + 0xc8]
add r12, 2
mov rbp, qword [rsp + 0xb8]
add rcx, 4
mov qword [rsp + 0xc8], rcx
sub r13, 1
jne 0x1802fbce0
mov rdi, qword [rsp + 0xa0]
mov esi, eax
mov r15d, dword [rsp + 0x3c]
mov r13, qword [rsp + 0xc0]
mov r12d, dword [rsp + 0x34]
xor ebp, ebp
cmp dword [rbx + 0x94], esi
jg 0x1802fbedb
mov r9d, r12d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
lea edx, [rbp + 0xb]
mov rcx, rbx
call fcn.1802c3380
jmp 0x1802fbf0f
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 0xb
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
jmp 0x1802fbf0f
mov r12d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rdi]
call fcn.1802fe6f0
movsxd rdx, dword [rbx + 0x90]
mov rsi, rax
mov ebp, dword [rsp + 0x38]
mov r14d, dword [rsp + 0xe0]
cmp dword [rbx + 0x94], edx
jg 0x1802fbf58
mov r9d, r15d
mov dword [rsp + 0x20], ebp
mov r8d, r14d
mov edx, 0x5b
mov rcx, rbx
call fcn.1802c3380
mov edx, eax
jmp 0x1802fbf89
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x5b
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x1802fbfa5
cmp r15d, 0xfffffff4
je 0x1802fc003
mov r8, rsi
mov edx, r15d
call fcn.1802c4360
jmp 0x1802fc003
test edx, edx
jns 0x1802fbfb1
mov edx, dword [rbx + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rax + rcx*8]
test r15d, r15d
jns 0x1802fbff5
cmp byte [rdx + 1], 0
jne 0x1802fbff5
cmp r15d, 0xfffffffd
jne 0x1802fbfdd
mov dword [rdx + 0x10], esi
mov byte [rdx + 1], r15b
jmp 0x1802fc003
test rsi, rsi
je 0x1802fc003
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], r15b
cmp r15d, 0xfffffff4
jne 0x1802fc003
inc dword [rsi + 0x18]
jmp 0x1802fc003
mov r9d, r15d
mov r8, rsi
mov rcx, rbx
call fcn.1802c4570
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [rsp + 0x30]
cmp dword [rbx + 0x94], edx
jg 0x1802fc032
mov r9d, r12d
mov dword [rsp + 0x20], ebp
mov edx, 0x1e
mov rcx, rbx
call fcn.1802c3380
mov edx, eax
xor r9d, r9d
jmp 0x1802fc063
lea rcx, [rdx + rdx*2]
xor r9d, r9d
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x1e
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
jne 0x1802fc084
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], r9d
test ebp, ebp
je 0x1802fc09d
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1802fc09d
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], ebp
inc byte [rdi + 0x1f]
cmp r15d, 1
jne 0x1802fc0c0
test r14d, r14d
je 0x1802fc0ce
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1802fc0ce
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], r14d
inc byte [rdi + 0x1f]
jmp 0x1802fc0ce
cmp r15d, dword [rdi + 0x28]
jle 0x1802fc0ce
mov dword [rdi + 0x28], r15d
mov dword [rdi + 0x2c], r14d
mov r14d, dword [rsp + 0x30]
xor r15d, r15d
movzx edx, byte [r13 + 0x2c]
test dl, dl
jne 0x1802fc11e
mov rax, qword [rdi]
mov ecx, dword [rax + 0x30]
bt rcx, 0x13
jb 0x1802fc11e
cmp qword [rdi + 0xa0], 0
jne 0x1802fc11e
cmp byte [rdi + 0x20], dl
jne 0x1802fc11e
xor r9d, r9d
mov byte [rsp + 0x28], 4
mov edx, 0x313
mov byte [rsp + 0x20], 0xff
mov rcx, rdi
lea r8d, [r9 + 2]
call fcn.1802f3390
jmp 0x1802fc1a3
mov r8d, dword [rsp + 0xd8]
movzx eax, dl
test r8d, r8d
jle 0x1802fc149
test dl, dl
jne 0x1802fc149
mov rax, qword [rdi + 0xa0]
test rax, rax
cmovne rdi, rax
mov byte [rdi + 0x21], 1
movzx eax, byte [r13 + 0x2c]
movsxd rcx, dword [rbx + 0x90]
movzx edx, al
cmp dword [rbx + 0x94], ecx
jg 0x1802fc175
mov r9d, r8d
mov dword [rsp + 0x20], r15d
mov r8d, edx
mov rcx, rbx
mov edx, 0x95
call fcn.1802c3380
jmp 0x1802fc1a3
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], ILFree
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rcx, qword [rbx + 0x18]
not r12d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1802fc1bf
mov r8d, r12d
mov rdx, rbx
call fcn.1802c3d20
jmp 0x1802fc1cf
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, r12d
mov dword [rcx + rdx*4], eax
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1802fc1f7
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, r14d
mov rcx, rbx
lea edx, [r9 + 0x74]
call fcn.1802c3380
jmp 0x1802fc225
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x74
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r15
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret