Function at 0x18003e970
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [0x180126010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, qword [rcx + 0x10]
xor r15d, r15d
mov r10, qword [rcx]
mov r12d, r8d
mov dword [rsp + 0x50], r8d
mov rsi, rdx
mov qword [rbp - 0x80], rdx
mov rdi, rcx
mov qword [rsp + 0x78], r14
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x58], r10
test r14, r14
jne 0x18003e9d5
xor eax, eax
jmp 0x18003fa6f
mov qword [rsp + 0x198], rbx
mov qword [rsp + 0x140], r13
test rsi, rsi
je case.0x18003ea1c.101
movzx r13d, byte [rdx]
lea eax, [r13 - 0x13]
cmp eax, 0x8c
ja case.0x18003ea1c.21
lea rdx, [0x180000000]
cdqe
movzx eax, byte [rdx + rax + 0x3faf0]
mov ecx, dword [rdx + rax*4 + 0x3fa8c]
add rcx, rdx
jmp rcx
mov rcx, qword [rsi + 0x38]
movsx rax, word [rsi + 0x32]
shl rax, 5
add rax, qword [rcx + 0x20]
cmp byte [rcx], r15b
jne 0x18003ea3d
mov r11d, dword [rax + 0x14]
jmp 0x18003fa5c
cmp byte [rcx + 1], r15b
je case.0x18003ea1c.154
mov r9d, dword [rax + 0x10]
mov edx, 0x2f
mov r8d, dword [rcx + 8]
mov dword [rsp + 0x20], r12d
jmp 0x18003fa51
mov r9d, dword [rsi + 0x2c]
test r9d, r9d
jns 0x18003ea7b
mov eax, dword [rdi + 0x68]
test eax, eax
jle 0x18003ea77
movsx r11d, word [rsi + 0x30]
add r11d, eax
jmp 0x18003fa5c
mov r9d, dword [rdi + 0x6c]
movzx eax, byte [rsi + 0x36]
mov rcx, rdi
movsx r8d, word [rsi + 0x30]
mov rdx, qword [rsi + 0x40]
mov byte [rsp + 0x28], al
mov dword [rsp + 0x20], r12d
call fcn.18003e610
mov r11d, eax
jmp 0x18003fa5c
mov r9d, r12d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.18003dc80
jmp 0x18003fa59
mov rdx, qword [rsi + 8]
mov r9d, r12d
xor r8d, r8d
mov rcx, r14
call fcn.18003dbb0
jmp 0x18003fa59
mov rbx, qword [rsi + 8]
xor r8d, r8d
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov rcx, r14
lea edx, [r8 + 0x61]
call fcn.180026570
xor r9d, r9d
mov r8, rbx
mov edx, eax
mov rcx, r14
call fcn.180026b50
jmp 0x18003fa59
mov rdx, qword [rsi + 8]
add rdx, 2
mov rax, rdx
jne 0x18003eb10
mov eax, r15d
jmp 0x18003eb24
cmp byte [rdx], r15b
je 0x18003eb1d
inc rax
cmp byte [rax], r15b
jne 0x18003eb15
sub eax, edx
and eax, 0x3fffffff
mov rcx, qword [r14]
lea ebx, [rax - 1]
mov r8d, ebx
call fcn.180009f00
mov rdi, rax
mov dword [rsp + 0x20], r15d
mov eax, ebx
mov r9d, r12d
cdq
mov rcx, r14
sub eax, edx
mov edx, 0x1e
sar eax, 1
mov r8d, eax
call fcn.180026570
mov r9d, 0xffffffff
mov r8, rdi
mov edx, eax
mov rcx, r14
call fcn.180026b50
jmp 0x18003fa59
movsx r8d, word [rsi + 0x30]
mov r9d, r12d
mov edx, 0x1f
mov dword [rsp + 0x20], r15d
mov rcx, r14
call fcn.180026570
mov rax, qword [rsi + 8]
cmp byte [rax + 1], r15b
je 0x18003fa59
movsx rax, word [rsi + 0x30]
mov r9d, 0xfffffffe
mov r8, qword [rdi + 0x208]
mov rcx, r14
lea edx, [r9 + 1]
mov r8, qword [r8 + rax*8 - 8]
call fcn.180026b50
jmp 0x18003fa59
mov r11d, dword [rsi + 0x2c]
jmp 0x18003fa5c
mov rdx, qword [rsi + 0x10]
mov rcx, rdi
call fcn.18003e970
mov r11d, eax
jmp 0x18003fa5c
mov rdx, qword [rsi + 0x10]
mov rcx, rdi
call fcn.18003e970
mov dword [rsp + 0x40], eax
cmp eax, r12d
je 0x18003ec0b
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov r8d, eax
mov edx, 0x22
mov rcx, r14
call fcn.180026570
mov dword [rsp + 0x40], r12d
mov rcx, qword [rsi + 8]
xor edx, edx
call fcn.180047e70
movsx r9d, al
mov r8d, r12d
mov edx, 0x28
mov dword [rsp + 0x20], r15d
mov rcx, r14
call fcn.180026570
mov r11d, dword [rsp + 0x40]
mov r8d, 1
mov edx, r11d
mov rcx, rdi
call fcn.18003e090
jmp 0x18003fa5c
mov rdx, qword [rsi + 0x10]
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.18003fb80
mov rdx, qword [rsi + 0x18]
lea r8, [rsp + 0x44]
mov rcx, rdi
mov ebx, eax
call fcn.18003fb80
mov r9d, r13d
mov dword [rsp + 0x38], 0x20
mov r8, qword [rsi + 0x18]
mov rcx, rdi
mov rdx, qword [rsi + 0x10]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.18003a790
jmp 0x18003f5b1
mov rdx, qword [rsi + 0x10]
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.18003fb80
mov rdx, qword [rsi + 0x18]
lea r8, [rsp + 0x44]
mov rcx, rdi
mov ebx, eax
call fcn.18003fb80
cmp r13d, 0x49
mov dword [rsp + 0x38], 0xa0
mov r9d, r15d
sete r9b
add r9d, 0x4e
jmp 0x18003ec79
mov rdx, qword [rsi + 0x10]
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.18003fb80
mov rdx, qword [rsi + 0x18]
lea r8, [rsp + 0x44]
mov rcx, rdi
mov ebx, eax
call fcn.18003fb80
mov r9d, ebx
mov dword [rsp + 0x20], r12d
mov r8d, eax
mov edx, r13d
mov rcx, r14
call fcn.180026570
jmp 0x18003f5b1
mov rdx, qword [rsi + 0x10]
movzx eax, byte [rdx]
cmp al, 0x84
jne 0x18003ed38
mov r9d, r12d
mov r8d, 1
mov rcx, rdi
call fcn.18003dc80
jmp 0x18003f5b1
cmp al, 0x85
jne 0x18003ed56
mov rdx, qword [rdx + 8]
mov r9d, r12d
mov r8d, 1
mov rcx, r14
call fcn.18003dbb0
jmp 0x18003f5b1
lea r8, [rsp + 0x48]
mov byte [rbp - 0x20], 0x84
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x1c], 0x4400
mov rcx, rdi
call fcn.18003fb80
mov rdx, qword [rsi + 0x10]
lea r8, [rsp + 0x44]
mov rcx, rdi
mov ebx, eax
call fcn.18003fb80
mov r9d, ebx
mov dword [rsp + 0x20], r12d
mov r8d, eax
mov edx, 0x5a
mov rcx, r14
call fcn.180026570
jmp 0x18003f5b1
mov rdx, qword [rsi + 0x10]
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.18003fb80
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov r8d, eax
mov edx, r13d
mov rcx, r14
call fcn.180026570
jmp 0x18003f5b1
mov edx, 0x19
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, r14
lea r8d, [rdx - 0x18]
call fcn.180026570
mov rdx, qword [rsi + 0x10]
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.18003fb80
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, eax
mov edx, r13d
mov rcx, r14
call fcn.180026570
xor r8d, r8d
mov ebx, eax
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov rcx, r14
lea edx, [r8 + 0x19]
call fcn.180026570
mov edx, dword [r14 + 0x3c]
cmp edx, ebx
jbe 0x18003ee40
mov rax, qword [r14 + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [r14 + 0x3c]
mov rax, qword [r14 + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
jmp 0x18003f5b1
mov rdx, qword [rsi + 0x38]
test rdx, rdx
jne 0x18003ee70
mov r8, qword [rsi + 8]
lea rdx, str.misuse_of_aggregate:__s__
mov rcx, rdi
call fcn.180008fd0
jmp 0x18003fa59
movsx rax, word [rsi + 0x32]
lea rcx, [rax + rax*2]
mov rax, qword [rdx + 0x30]
mov r11d, dword [rax + rcx*8 + 0x10]
jmp 0x18003fa5c
test dword [rsi + 4], 0x4000
mov rax, qword [r10 + 0x20]
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x70], r15
mov rcx, qword [rax + 0x18]
movzx edx, byte [rcx + 0x71]
je 0x18003eec4
mov qword [rsp + 0x68], r15
mov r13d, r15d
mov rax, qword [rsi + 8]
mov qword [rsp + 0x48], rax
mov rbx, rax
test rax, rax
jne 0x18003eed7
mov ebx, r15d
jmp 0x18003eef0
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x18003eeab
mov r13d, dword [rax]
jmp 0x18003eeae
cmp byte [rax], r15b
je 0x18003eee8
nop dword [rax]
inc rbx
cmp byte [rbx], r15b
jne 0x18003eee0
sub ebx, eax
and ebx, 0x3fffffff
mov byte [rsp + 0x28], r15b
mov r9d, r13d
mov byte [rsp + 0x20], dl
mov r8d, ebx
mov rdx, rax
mov rcx, r10
call fcn.18004eb50
mov qword [rsp + 0x60], rax
mov rdx, rax
test rax, rax
je 0x18003f272
cmp qword [rax + 0x18], r15
je 0x18003f272
movzx eax, word [rax + 2]
bt ax, 9
jae 0x18003f032
mov rbx, qword [r14 + 0x30]
movsxd rsi, dword [rbx + 0x78]
mov dword [rsp + 0x48], esi
lea eax, [rsi + 1]
mov dword [rbx + 0x78], eax
lea eax, [rsi - 1]
test esi, eax
jne 0x18003ef71
mov rdx, qword [rbx + 0x80]
lea eax, [rsi*2 + 1]
mov rcx, qword [rbx]
movsxd r8, eax
shl r8, 2
call fcn.1800064f0
mov qword [rbx + 0x80], rax
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x18003ef84
mov dword [rcx + rsi*4], 0xffffffff
mov rbx, qword [rsp + 0x68]
mov eax, esi
not eax
mov r8d, r12d
mov rcx, rdi
mov dword [rsp + 0x44], eax
mov rdx, qword [rbx + 8]
mov rdx, qword [rdx]
call fcn.18003fd20
cmp r13d, 1
jle 0x18003f005
mov esi, 0x28
dec r13d
mov r9d, dword [rsp + 0x44]
mov r8d, r12d
mov edx, 0x4d
mov dword [rsp + 0x20], r15d
mov rcx, r14
call fcn.180026570
mov r8d, 1
mov edx, r12d
mov rcx, rdi
call fcn.18003e090
inc dword [rdi + 0x70]
mov r8d, r12d
mov rdx, qword [rbx + 8]
mov rdx, qword [rsi + rdx]
call fcn.18003fd20
mov rcx, rdi
call fcn.18003e2c0
lea rsi, [rsi + 0x28]
sub r13, 1
jne 0x18003efb1
mov esi, dword [rsp + 0x48]
mov rdx, qword [r14 + 0x30]
test esi, esi
js 0x18003f024
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x18003f024
movsxd rcx, esi
mov eax, dword [r14 + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [r14 + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
jmp 0x18003fa59
bt ax, 0xa
jae 0x18003f055
mov rdx, qword [rsp + 0x68]
mov r8d, r12d
mov rcx, rdi
mov rdx, qword [rdx + 8]
mov rdx, qword [rdx]
call fcn.18003fd20
jmp 0x18003fa59
mov ebx, r15d
test r13d, r13d
jle 0x18003f0dd
mov r12, qword [rsp + 0x68]
mov r14, r15
mov r15d, ebx
mov esi, ebx
nop
cmp ebx, 0x20
jae 0x18003f094
mov rax, qword [r12 + 8]
mov edx, 1
mov rcx, qword [r14 + rax]
call fcn.18003c4b0
mov rdx, qword [rsp + 0x60]
test eax, eax
je 0x18003f094
bts esi, ebx
test byte [rdx + 2], 0x20
je 0x18003f0b8
test r15, r15
jne 0x18003f0b8
mov rdx, qword [r12 + 8]
mov rcx, rdi
mov rdx, qword [rdx + r14]
call fcn.18003a530
mov rdx, qword [rsp + 0x60]
mov r15, rax
inc ebx
add r14, 0x28
cmp ebx, r13d
jl 0x18003f070
mov r14, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x50]
mov qword [rsp + 0x70], r15
xor r15d, r15d
mov dword [rsp + 0x44], esi
mov rsi, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x68]
mov ebx, dword [rsp + 0x44]
test rcx, rcx
je 0x18003f166
test ebx, ebx
jne 0x18003f111
mov r9d, dword [rdi + 0x44]
mov r8d, dword [rdi + 0x48]
mov dword [rsp + 0x48], r8d
cmp r13d, r9d
jg 0x18003f111
lea eax, [r8 + r13]
sub r9d, r13d
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x44], r9d
jmp 0x18003f123
mov eax, dword [rdi + 0x54]
lea r8d, [rax + 1]
add eax, r13d
mov dword [rdi + 0x54], eax
mov dword [rsp + 0x48], r8d
movzx r9d, word [rdx + 2]
test r9b, 0xc0
je 0x18003f146
mov rax, qword [rcx + 8]
mov rdx, qword [rax]
movzx eax, byte [rdx]
add al, 0x66
test al, 0xfd
jne 0x18003f146
and r9b, 0xc0
mov byte [rdx + 0x36], r9b
inc dword [rdi + 0x70]
mov rdx, rcx
mov rcx, rdi
mov r9b, 3
call fcn.18003fd80
mov rcx, rdi
call fcn.18003e2c0
mov rcx, qword [rsp + 0x68]
jmp 0x18003f16b
mov dword [rsp + 0x48], r15d
cmp r13d, 2
jl 0x18003f196
test byte [rsi + 4], 0x80
je 0x18003f19b
mov r9, qword [rcx + 8]
mov r9, qword [r9 + 0x28]
mov rdx, qword [rsp + 0x60]
mov r8d, r13d
mov rcx, qword [rsp + 0x58]
call fcn.180073e50
mov rsi, rax
jmp 0x18003f1a9
test r13d, r13d
jle 0x18003f1a4
mov r9, qword [rcx + 8]
mov r9, qword [r9]
jmp 0x18003f17f
mov rsi, qword [rsp + 0x60]
test byte [rsi + 2], 0x20
je 0x18003f1f1
cmp qword [rsp + 0x70], 0
jne 0x18003f1c5
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x70], rax
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x24]
call fcn.180026570
mov r8, qword [rsp + 0x70]
mov r9d, 0xfffffffc
mov edx, eax
mov rcx, r14
call fcn.180026b50
mov r15d, dword [rsp + 0x48]
mov r8d, ebx
mov r9d, r15d
mov dword [rsp + 0x20], r12d
mov edx, 1
mov rcx, r14
call fcn.180026570
mov r9d, 0xfffffffb
mov r8, rsi
mov edx, eax
mov rcx, r14
call fcn.180026b50
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x18003f237
movsxd rax, dword [r14 + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], r13b
test r13d, r13d
je 0x18003f712
test ebx, ebx
jne 0x18003f712
mov r8d, r13d
mov edx, r15d
mov rcx, rdi
call fcn.18003e090
mov r11d, dword [rsp + 0x40]
cmp r13d, dword [rdi + 0x44]
jle 0x18003fa5c
mov dword [rdi + 0x44], r13d
mov dword [rdi + 0x48], r15d
jmp 0x18003fa5c
mov r9, qword [rsp + 0x48]
lea rdx, str.unknown_function:__.s__
mov r8d, ebx
mov rcx, rdi
call fcn.180008fd0
jmp 0x18003fa59
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.18003ce40
mov r11d, eax
jmp 0x18003fa5c
mov r13, qword [r14 + 0x30]
movsxd rbx, dword [r13 + 0x78]
lea eax, [rbx + 1]
mov dword [r13 + 0x78], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x18003f2e2
mov rdx, qword [r13 + 0x80]
lea eax, [rbx*2 + 1]
mov rcx, qword [r13]
movsxd r8, eax
shl r8, 2
call fcn.1800064f0
mov qword [r13 + 0x80], rax
mov rcx, qword [r13 + 0x80]
test rcx, rcx
je 0x18003f2f5
mov dword [rcx + rbx*4], 0xffffffff
mov rcx, qword [r14 + 0x30]
mov eax, ebx
not eax
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x50], eax
movsxd r13, dword [rcx + 0x78]
lea eax, [r13 + 1]
mov dword [rcx + 0x78], eax
lea eax, [r13 - 1]
test r13d, eax
jne 0x18003f344
mov rdx, qword [rcx + 0x80]
lea eax, [r13*2 + 1]
mov rcx, qword [rcx]
movsxd r8, eax
shl r8, 2
call fcn.1800064f0
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x80], rax
mov rdx, qword [rcx + 0x80]
test rdx, rdx
je 0x18003f358
mov dword [rdx + r13*4], 0xffffffff
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, r14
lea edx, [r8 + 0x1c]
call fcn.180026570
mov r8d, dword [rsp + 0x50]
mov r9d, r13d
not r9d
mov rdx, rsi
mov rcx, rdi
call fcn.18003d570
mov edx, 0x19
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, r14
lea r8d, [rdx - 0x18]
call fcn.180026570
mov r8, qword [r14 + 0x30]
test ebx, ebx
js 0x18003f3b9
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x18003f3b9
mov eax, dword [r14 + 0x3c]
mov dword [rdx + rbx*4], eax
mov eax, dword [r14 + 0x3c]
xor r9d, r9d
dec eax
mov dword [rsp + 0x20], r15d
mov dword [r8 + 0x64], eax
mov rcx, r14
mov r8d, r12d
lea edx, [r9 + 0x25]
call fcn.180026570
mov r8, qword [r14 + 0x30]
test r13d, r13d
js 0x18003f3f7
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x18003f3f7
mov eax, dword [r14 + 0x3c]
mov dword [rdx + r13*4], eax
mov eax, dword [r14 + 0x3c]
dec eax
mov dword [r8 + 0x64], eax
jmp 0x18003fa59
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x48]
mov rax, qword [rsi + 0x20]
mov rdx, rcx
mov qword [rsp + 0x58], rcx
mov rcx, rdi
mov r13, qword [rax + 8]
mov rbx, qword [r13]
mov qword [rsp + 0x78], rbx
call fcn.18003fb80
lea r8, [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov rdx, rbx
mov rcx, rdi
call fcn.18003fb80
movzx ecx, byte [rdi + 0x1f]
mov edx, eax
test cl, cl
jne 0x18003f45c
inc dword [rdi + 0x54]
mov esi, dword [rdi + 0x54]
inc dword [rdi + 0x54]
mov ebx, dword [rdi + 0x54]
jmp 0x18003f47f
sub cl, 1
movzx eax, cl
mov byte [rdi + 0x1f], al
mov esi, dword [rdi + rax*4 + 0x24]
jne 0x18003f473
inc dword [rdi + 0x54]
mov ebx, dword [rdi + 0x54]
jmp 0x18003f47f
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebx, dword [rdi + rax*4 + 0x24]
mov eax, dword [rsp + 0x40]
mov r9d, 0x53
mov r8, qword [rsp + 0x78]
mov rcx, rdi
mov dword [rsp + 0x38], 0x20
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], edx
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call fcn.18003a790
mov edx, dword [rsp + 0x44]
mov r13, qword [r13 + 0x28]
test edx, edx
je 0x18003f4ee
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x18003f4ee
mov ecx, r15d
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], edx
je 0x18003f4ea
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18003f4d0
mov dword [rdi + r8*4 + 0x24], edx
inc byte [rdi + 0x1f]
jmp 0x18003f4ee
mov byte [rax + 6], 1
lea r8, [rsp + 0x44]
mov rdx, r13
mov rcx, rdi
call fcn.18003fb80
mov rdx, qword [rsp + 0x58]
mov r9d, 0x51
mov dword [rsp + 0x38], 0x20
mov r8, r13
mov dword [rsp + 0x30], ebx
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
call fcn.18003a790
mov r9d, ebx
mov dword [rsp + 0x20], r12d
mov r8d, esi
mov edx, 0x48
mov rcx, r14
call fcn.180026570
test esi, esi
je 0x18003f57d
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x18003f57d
mov ecx, r15d
lea rax, [rdi + 0x88]
nop dword [rax + rax]
cmp dword [rax + 0xc], esi
je 0x18003f579
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18003f560
mov dword [rdi + rdx*4 + 0x24], esi
inc byte [rdi + 0x1f]
jmp 0x18003f57d
mov byte [rax + 6], 1
test ebx, ebx
je 0x18003f5b1
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x18003f5b1
mov ecx, r15d
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], ebx
je 0x18003f5ad
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18003f594
mov dword [rdi + rdx*4 + 0x24], ebx
inc byte [rdi + 0x1f]
jmp 0x18003f5b1
mov byte [rax + 6], 1
cmp dword [rsp + 0x48], r15d
je 0x18003f5f2
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x18003f5f2
mov ecx, r15d
lea rax, [rdi + 0x88]
nop dword [rax]
mov edx, dword [rsp + 0x48]
cmp dword [rax + 0xc], edx
je 0x18003f5ee
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18003f5d0
mov dword [rdi + r8*4 + 0x24], edx
inc byte [rdi + 0x1f]
jmp 0x18003f5f2
mov byte [rax + 6], 1
mov r11d, r12d
cmp dword [rsp + 0x44], r15d
je 0x18003fa5c
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x18003fa5c
lea rax, [rdi + 0x88]
mov ecx, dword [rsp + 0x44]
cmp dword [rax + 0xc], ecx
je 0x18003f636
inc r15d
add rax, 0x14
cmp r15d, 0xa
jl 0x18003f614
mov dword [rdi + rdx*4 + 0x24], ecx
inc byte [rdi + 0x1f]
jmp 0x18003fa5c
mov byte [rax + 6], 1
jmp 0x18003fa5c
mov rbx, qword [rsi + 0x40]
mov r9d, r12d
movsx r8d, word [rsi + 0x30]
mov edx, 0x84
inc r8d
mov dword [rsp + 0x20], r15d
movsx ecx, word [rbx + 0x42]
inc ecx
imul ecx, dword [rsi + 0x2c]
add r8d, ecx
mov rcx, r14
call fcn.180026570
movsx rax, word [rsi + 0x30]
test ax, ax
js 0x18003fa59
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
add rcx, rcx
cmp byte [rax + rcx*8 + 0x29], 0x45
jne 0x18003fa59
xor r9d, r9d
mov r8d, r12d
lea edx, [r9 + 0x27]
jmp 0x18003fa4c
cmp qword [rdi + 0x1c8], r15
jne 0x18003f6bf
lea rdx, str.RAISE___may_only_be_used_within_a_trigger_program
mov rcx, rdi
call fcn.180008fd0
xor eax, eax
jmp 0x18003fa5f
movzx eax, byte [rsi + 1]
cmp al, 2
jne 0x18003f6e0
mov rax, qword [rdi + 0x1c0]
mov rcx, rdi
test rax, rax
cmovne rcx, rax
mov byte [rcx + 0x21], 1
movzx eax, byte [rsi + 1]
mov r12, qword [rsi + 8]
cmp al, 4
jne 0x18003f71c
mov r9d, 4
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x14]
call fcn.180026570
xor r9d, r9d
mov r8, r12
mov edx, eax
mov rcx, r14
call fcn.180026b50
mov r11d, dword [rsp + 0x40]
jmp 0x18003fa5c
mov rbx, qword [rdi + 0x10]
movsx esi, al
test rbx, rbx
jne 0x18003f76a
mov rcx, rdi
call fcn.180026410
mov qword [rdi + 0x10], rax
mov rbx, rax
test rax, rax
je 0x18003f754
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.180026570
cmp qword [rdi + 0x1c0], r15
jne 0x18003f76a
mov rax, qword [rdi]
test byte [rax + 0x4c], 8
jne 0x18003f76a
mov byte [rdi + 0x23], 1
cmp esi, 2
jne 0x18003f781
mov rax, qword [rdi + 0x1c0]
test rax, rax
cmovne rdi, rax
mov byte [rdi + 0x21], 1
mov r9d, esi
mov dword [rsp + 0x20], r15d
mov edx, 0x18
mov r8d, 0x713
mov rcx, rbx
call fcn.180026570
xor r9d, r9d
mov r8, r12
mov edx, eax
mov rcx, rbx
call fcn.180026b50
mov r11d, dword [rsp + 0x40]
jmp 0x18003fa5c
mov rcx, qword [rsi + 0x20]
mov r10, r15
mov rbx, qword [r14 + 0x30]
mov qword [rbp - 0x80], rcx
mov rax, qword [rcx + 8]
movsxd r13, dword [rbx + 0x78]
mov qword [rsp + 0x58], rax
mov eax, dword [rcx]
mov dword [rsp + 0x44], eax
lea eax, [r13 + 1]
mov dword [rsp + 0x68], r13d
mov dword [rbx + 0x78], eax
lea eax, [r13 - 1]
test r13d, eax
jne 0x18003f815
mov rdx, qword [rbx + 0x80]
lea eax, [r13*2 + 1]
mov rcx, qword [rbx]
movsxd r8, eax
shl r8, 2
call fcn.1800064f0
mov qword [rbx + 0x80], rax
mov r10, r15
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x18003f829
mov dword [rcx + r13*4], 0xffffffff
mov rdx, qword [rsi + 0x10]
mov eax, r13d
mov qword [rsp + 0x70], rdx
not eax
mov dword [rsp + 0x50], eax
test rdx, rdx
je 0x18003f8a0
movups xmm0, xmmword [rdx]
lea r8, [rsp + 0x48]
mov rcx, rdi
movaps xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rdx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movaps xmmword [rbp], xmm0
movups xmm1, xmmword [rdx + 0x30]
movaps xmmword [rbp + 0x10], xmm1
movsd xmm0, qword [rdx + 0x40]
movsd qword [rbp + 0x20], xmm0
call fcn.18003fb80
movzx ecx, byte [rbp - 0x20]
lea r10, [rbp - 0x70]
and dword [rbp - 0x1c], 0xffffefff
mov rdx, qword [rsp + 0x70]
mov dword [rbp + 0xc], eax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x60], rax
mov byte [rbp + 0x16], cl
mov byte [rbp - 0x20], 0x9f
mov byte [rbp - 0x70], 0x4f
movsxd rax, dword [rsp + 0x44]
dec rax
mov qword [rsp + 0x78], rax
test rax, rax
jle 0x18003f9d7
mov rsi, qword [rsp + 0x58]
lea r13, [rax - 1]
shr r13, 1
inc r13
nop word [rax + rax]
inc dword [rdi + 0x70]
mov rcx, qword [rsi]
test rdx, rdx
mov rax, qword [rbp - 0x58]
mov rsi, qword [r14 + 0x30]
cmovne rax, rcx
mov qword [rbp - 0x58], rax
cmove r10, rcx
mov qword [rsp + 0x60], r10
movsxd rbx, dword [rsi + 0x78]
lea eax, [rbx + 1]
mov dword [rsi + 0x78], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x18003f92c
mov rdx, qword [rsi + 0x80]
lea eax, [rbx*2 + 1]
mov rcx, qword [rsi]
movsxd r8, eax
shl r8, 2
call fcn.1800064f0
mov r10, qword [rsp + 0x60]
mov qword [rsi + 0x80], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x18003f93f
mov dword [rcx + rbx*4], 0xffffffff
mov r8d, ebx
mov r9d, 0x10
not r8d
mov rdx, r10
mov rcx, rdi
call fcn.180040500
mov rsi, qword [rsp + 0x58]
mov r8d, r12d
mov rcx, rdi
mov rdx, qword [rsi + 0x28]
call fcn.18003fd20
mov r9d, dword [rsp + 0x50]
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x20], r15d
lea edx, [r8 + 0x10]
call fcn.180026570
mov rcx, rdi
call fcn.18003e2c0
mov r9, qword [r14 + 0x30]
test ebx, ebx
js 0x18003f9a6
mov rdx, qword [r9 + 0x80]
test rdx, rdx
je 0x18003f9a6
mov eax, dword [r14 + 0x3c]
mov dword [rdx + rbx*4], eax
mov eax, dword [r14 + 0x3c]
add rsi, 0x50
mov rdx, qword [rsp + 0x70]
dec eax
mov r10, qword [rsp + 0x60]
mov dword [r9 + 0x64], eax
mov qword [rsp + 0x58], rsi
sub r13, 1
jne 0x18003f8d0
mov r13d, dword [rsp + 0x68]
mov rax, qword [rsp + 0x78]
test byte [rsp + 0x44], 1
je 0x18003fa06
inc dword [rdi + 0x70]
lea rax, [rax + rax*4]
mov rdx, qword [rbp - 0x80]
mov r8d, r12d
mov rcx, rdi
mov rdx, qword [rdx + 8]
mov rdx, qword [rdx + rax*8]
call fcn.18003fd20
mov rcx, rdi
call fcn.18003e2c0
jmp 0x18003fa1d
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, r14
lea edx, [r8 + 0x1c]
call fcn.180026570
mov rdx, qword [r14 + 0x30]
test r13d, r13d
js 0x18003f024
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x18003f024
movsxd rcx, r13d
jmp 0x18003f01c
xor r8d, r8d
mov r9d, r12d
lea edx, [r8 + 0x1c]
mov dword [rsp + 0x20], r15d
mov rcx, r14
call fcn.180026570
mov r11d, r12d
mov eax, r11d
mov rbx, qword [rsp + 0x198]
mov r13, qword [rsp + 0x140]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1800cd010
add rsp, 0x148
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret