Function at 0x180006880
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
xor ebp, ebp
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov r15d, 0x5a4d
test rdx, rdx
je 0x180006914
cmp word [rdx], r15w
mov rax, rdx
cmovne rax, rbp
test rax, rax
je 0x180006914
movsxd rdx, dword [rax + 0x3c]
add rdx, rsi
cmp dword [rdx], 0x4550
cmovne rdx, rbp
test rdx, rdx
je 0x180006914
movzx ecx, word [rdx + 0x14]
movzx eax, word [rdx + 6]
add rcx, 0x18
add rcx, rdx
lea rax, [rax + rax*4]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x180006914
nop dword [rax]
test dword [rcx + 0x24], 0x20000000
je 0x18000690b
cmp dword [rcx], 0x7865742e
jne 0x18000690b
cmp byte [rcx + 4], 0x74
je 0x180006cd2
add rcx, 0x28
cmp rcx, rdx
jne 0x1800068f0
mov rax, rbp
mov rdx, rbp
mov qword [r14], rax
lea rcx, [rsp + 0x90]
mov qword [r14 + 8], rdx
lea rdx, str.tier0.dll
call fcn.180006df0
mov r8, qword [rax]
test r8, r8
je 0x180006999
cmp word [r8], r15w
jne 0x180006999
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
cmovne rdx, rbp
test rdx, rdx
je 0x180006999
movzx ecx, word [rdx + 0x14]
movzx eax, word [rdx + 6]
add rcx, 0x18
add rcx, rdx
lea rax, [rax + rax*4]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x180006999
test dword [rcx + 0x24], 0x20000000
je 0x180006990
cmp dword [rcx], 0x7865742e
jne 0x180006990
cmp byte [rcx + 4], 0x74
je 0x180006ce0
add rcx, 0x28
cmp rcx, rdx
jne 0x180006975
mov rax, rbp
mov rdx, rbp
mov qword [r14 + 0x10], rax
lea rcx, [rsp + 0x98]
mov qword [r14 + 0x18], rdx
lea rdx, str.soundsystem.dll
call fcn.180006df0
mov r8, qword [rax]
test r8, r8
je 0x180006a24
cmp word [r8], r15w
jne 0x180006a24
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
cmovne rdx, rbp
test rdx, rdx
je 0x180006a24
movzx ecx, word [rdx + 0x14]
movzx eax, word [rdx + 6]
add rcx, 0x18
add rcx, rdx
lea rax, [rax + rax*4]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x180006a24
nop dword [rax + rax]
test dword [rcx + 0x24], 0x20000000
je 0x180006a1b
cmp dword [rcx], 0x7865742e
jne 0x180006a1b
cmp byte [rcx + 4], 0x74
je 0x180006cee
add rcx, 0x28
cmp rcx, rdx
jne 0x180006a00
mov rax, rbp
mov rdx, rbp
mov qword [r14 + 0x20], rax
lea rcx, [rsp + 0xa0]
mov qword [r14 + 0x28], rdx
lea rdx, str.filesystem_stdio.dll
call fcn.180006df0
mov r8, qword [rax]
test r8, r8
je 0x180006aaa
cmp word [r8], r15w
jne 0x180006aaa
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
cmovne rdx, rbp
test rdx, rdx
je 0x180006aaa
movzx ecx, word [rdx + 0x14]
movzx eax, word [rdx + 6]
add rcx, 0x18
add rcx, rdx
lea rax, [rax + rax*4]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x180006aaa
test dword [rcx + 0x24], 0x20000000
je 0x180006aa1
cmp dword [rcx], 0x7865742e
jne 0x180006aa1
cmp byte [rcx + 4], 0x74
je 0x180006cfc
add rcx, 0x28
cmp rcx, rdx
jne 0x180006a86
mov rax, rbp
mov rdx, rbp
mov qword [r14 + 0x30], rax
mov qword [r14 + 0x38], rdx
test rdi, rdi
je 0x180006b24
cmp word [rdi], r15w
mov rax, rdi
cmovne rax, rbp
test rax, rax
je 0x180006b24
movsxd rdx, dword [rax + 0x3c]
add rdx, rdi
cmp dword [rdx], 0x4550
cmovne rdx, rbp
test rdx, rdx
je 0x180006b24
movzx ecx, word [rdx + 0x14]
movzx eax, word [rdx + 6]
add rcx, 0x18
add rcx, rdx
lea rax, [rax + rax*4]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x180006b24
nop
test dword [rcx + 0x24], 0x20000000
je 0x180006b1b
cmp dword [rcx], 0x7865742e
jne 0x180006b1b
cmp byte [rcx + 4], 0x74
je 0x180006d0a
add rcx, 0x28
cmp rcx, rdx
jne 0x180006b00
mov rax, rbp
mov rdx, rbp
mov qword [r14 + 0x40], rax
mov qword [r14 + 0x48], rdx
test rbx, rbx
je 0x180006ba4
cmp word [rbx], r15w
mov rax, rbx
cmovne rax, rbp
test rax, rax
je 0x180006ba4
movsxd rdx, dword [rax + 0x3c]
add rdx, rbx
cmp dword [rdx], 0x4550
cmovne rdx, rbp
test rdx, rdx
je 0x180006ba4
movzx ecx, word [rdx + 0x14]
movzx eax, word [rdx + 6]
add rcx, 0x18
add rcx, rdx
lea rax, [rax + rax*4]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x180006ba4
nop dword [rax]
test dword [rcx + 0x24], 0x20000000
je 0x180006b9b
cmp dword [rcx], 0x7865742e
jne 0x180006b9b
cmp byte [rcx + 4], 0x74
je 0x180006d18
add rcx, 0x28
cmp rcx, rdx
jne 0x180006b80
mov rax, rbp
mov rdx, rbp
mov qword [r14 + 0x50], rax
lea rcx, [rsp + 0x20]
mov qword [r14 + 0x58], rdx
lea rdx, str.scenesystem.dll
call fcn.180006df0
mov r8, qword [rax]
test r8, r8
je 0x180006c27
cmp word [r8], r15w
jne 0x180006c27
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
cmovne rdx, rbp
test rdx, rdx
je 0x180006c27
movzx ecx, word [rdx + 0x14]
movzx eax, word [rdx + 6]
add rcx, 0x18
add rcx, rdx
lea rax, [rax + rax*4]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x180006c27
test dword [rcx + 0x24], 0x20000000
je 0x180006c1e
cmp dword [rcx], 0x7865742e
jne 0x180006c1e
cmp byte [rcx + 4], 0x74
je 0x180006d26
add rcx, 0x28
cmp rcx, rdx
jne 0x180006c03
mov rax, rbp
mov rdx, rbp
mov qword [r14 + 0x60], rax
lea r8, str.SDL_PeepEvents
mov qword [r14 + 0x68], rdx
lea rcx, [rsp + 0xa8]
lea rdx, [rsp + 0x90]
mov qword [r14 + 0x70], rsi
mov qword [r14 + 0x78], rdi
call fcn.18000b360
mov r8, qword [r14 + 0x50]
mov rdx, qword [rax]
mov rax, qword [r14 + 0x58]
cmp rdx, r8
jb 0x180006d5f
cmp rax, 7
jb 0x180006d5f
mov rcx, rdx
add rax, 0xfffffffffffffff9
sub rcx, r8
cmp rcx, rax
ja 0x180006d5f
lea r8, [0x18001422c]
mov rcx, rdx
sub r8, rdx
movzx eax, byte [r8 + rcx]
cmp byte [rcx], al
je 0x180006ca8
cmp al, 0x3f
jne 0x180006d34
inc rcx
mov rax, rcx
sub rax, rdx
cmp rax, 7
jb 0x180006c97
mov al, 1
test al, al
je 0x180006d5f
test rdx, rdx
je 0x180006d38
mov rcx, qword [r14 + 0x50]
mov r8, rdx
sub r8, rcx
jmp 0x180006d41
mov eax, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
add rax, rsi
jmp 0x18000691a
mov eax, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
add rax, r8
jmp 0x18000699f
mov eax, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
add rax, r8
jmp 0x180006a2a
mov eax, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
add rax, r8
jmp 0x180006ab0
mov eax, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
add rax, rdi
jmp 0x180006b2a
mov eax, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
add rax, rbx
jmp 0x180006baa
mov eax, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
add rax, r8
jmp 0x180006c2d
xor al, al
jmp 0x180006cb9
mov r8, rbp
mov rcx, rbp
mov rdx, rbp
test rcx, rcx
je 0x180006d5f
mov r9d, 3
movsxd rax, dword [rdx + r9]
add rax, r8
add rax, rcx
lea rcx, [r9 + 4]
add rcx, rax
jmp 0x180006d62
mov rcx, rbp
mov qword [r14 + 0x80], rcx
mov rax, r14
mov qword [r14 + 0x88], rbp
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret