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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx]
call fcn.18007b7bc
test eax, eax
jne 0x180080bee
lea r8, [rsp + 0x68]
lea edx, [rax + 1]
xor r9d, r9d
mov rcx, rdi
call fcn.18007feac
test eax, eax
jne 0x180080bee
mov r15, qword [rsp + 0x68]
mov r10, qword [rdi]
mov rsi, qword [r15 + 0x70]
mov r8d, dword [r10 + 0x1c]
movzx eax, byte [rsi + 0x1d]
movzx r12d, byte [rsi + 0x1c]
mov dword [rsp + 0x78], r8d
shl r12d, 8
or r12d, eax
movzx eax, byte [rsi + 0x1e]
shl r12d, 8
or r12d, eax
movzx eax, byte [rsi + 0x1f]
shl r12d, 8
or r12d, eax
mov r9d, r12d
mov dword [rsp + 0x70], r12d
je 0x1800809e7
mov eax, dword [rsi + 0x18]
cmp eax, dword [rsi + 0x5c]
je 0x1800809ef
mov r9d, r8d
mov dword [rsp + 0x70], r8d
test r9d, r9d
jle 0x180080b9b
mov rdx, qword [rsi]
lea rbp, [0x180000000]
mov ebx, 0x1a
mov r13d, ebx
cmp rdx, qword [rbp + 0x1102a8]
jne 0x180080a24
mov rdx, qword [rsi + 8]
cmp rdx, qword [rbp + 0x1102b0]
jne 0x180080a24
xor eax, eax
jmp 0x180080a29
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x180080b2d
cmp byte [rsi + 0x12], 2
jbe 0x180080a3b
mov byte [rdi + 0x20], 1
mov al, byte [rsi + 0x13]
cmp al, 2
ja 0x180080b2d
jne 0x180080a8c
cmp byte [rdi + 0x2f], 0
jne 0x180080a8c
and dword [rsp + 0x68], 0
lea rdx, [rsp + 0x68]
mov rcx, r10
call fcn.18007ca0c
mov r13d, eax
test eax, eax
jne 0x180080b2d
cmp dword [rsp + 0x68], eax
jne 0x180080a7f
mov rcx, qword [r15 + 0x78]
call fcn.18007bcfc
jmp 0x180080bec
mov r9d, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x78]
mov r13d, ebx
mov dx, word [rsi + 0x15]
cmp dx, word [rbp + 0x12a9e8]
jne 0x180080aa8
mov dl, byte [rsi + 0x17]
cmp dl, byte [rbp + 0x12a9ea]
jne 0x180080aa8
xor eax, eax
jmp 0x180080aad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x180080b2d
movzx eax, byte [rsi + 0x10]
movzx ebx, byte [rsi + 0x11]
shl ebx, 8
or ebx, eax
shl ebx, 8
lea eax, [rbx - 1]
test ebx, eax
jne 0x180080b2d
lea eax, [rbx - 0x101]
cmp eax, 0xfeff
ja 0x180080b2d
movzx eax, byte [rsi + 0x14]
mov ebp, ebx
sub ebp, eax
cmp ebx, dword [rdi + 0x30]
je 0x180080b1b
mov rcx, qword [r15 + 0x78]
call fcn.18007bcfc
mov rcx, qword [rdi + 0x88]
mov dword [rdi + 0x34], ebp
mov dword [rdi + 0x30], ebx
call fcn.180078364
mov rcx, qword [rdi]
and qword [rdi + 0x88], 0
sub ebx, ebp
lea rdx, [rdi + 0x30]
mov r8d, ebx
call fcn.18007aa3c
jmp 0x180080bee
cmp r12d, r8d
jle 0x180080b43
mov ecx, 0xb722
call fcn.1800c0da4
mov r13d, eax
mov rcx, qword [r15 + 0x78]
call fcn.18007bcfc
and qword [rdi + 0x18], 0
mov eax, r13d
jmp 0x180080bee
cmp ebp, 0x1e0
jb 0x180080b2d
mov dword [rdi + 0x30], ebx
mov dword [rdi + 0x34], ebp
movzx eax, byte [rsi + 0x35]
movzx ecx, byte [rsi + 0x34]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi + 0x36]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi + 0x37]
shl ecx, 8
or ecx, eax
setne al
mov byte [rdi + 0x24], al
movzx eax, byte [rsi + 0x40]
movzx ecx, byte [rsi + 0x41]
shl eax, 8
or ecx, eax
movzx eax, byte [rsi + 0x42]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi + 0x43]
shl ecx, 8
or ecx, eax
setne al
mov byte [rdi + 0x25], al
mov r8d, dword [rdi + 0x34]
mov r10d, 0x80808081
mov qword [rdi + 0x18], r15
add r8d, 0xfffffff4
mov eax, r10d
mov dword [rdi + 0x3c], r9d
mov ecx, r8d
shl r8d, 5
shl ecx, 6
mul ecx
mov eax, r10d
shr edx, 7
sub dx, 0x17
mov word [rdi + 0x26], dx
mul r8d
movzx eax, word [rdi + 0x34]
shr edx, 7
sub dx, 0x17
sub ax, 0x23
mov word [rdi + 0x2a], ax
mov word [rdi + 0x28], dx
mov word [rdi + 0x2c], dx
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret