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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, qword [rcx + 0x18]
xor r12d, r12d
xor r14d, r14d
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rax + 0x20], r12
test rdx, rdx
je 0x180019014
mov qword [rax + 0x10], rdx
mov rax, qword [rdx + 0x68]
inc word [rax + 0x2e]
jmp 0x180019024
mov edx, r8d
call fcn.180015300
mov rdi, rax
mov qword [rsp + 0x78], rax
mov rcx, qword [r15 + 0x68]
call fcn.1800111c4
mov ebx, eax
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x180019310
mov rdx, qword [r15 + 0x50]
movzx eax, byte [rdx + 0x26]
movzx r13d, byte [rdx + 0x25]
shl r13d, 8
or r13d, eax
movzx eax, byte [rdx + 0x24]
shl eax, 0x18
shl r13d, 8
or r13d, eax
movzx eax, byte [rdx + 0x27]
or r13d, eax
lea ecx, [r13 + 1]
mov eax, ecx
mov byte [rdx + 0x27], cl
shr eax, 0x18
mov byte [rdx + 0x24], al
mov eax, ecx
shr eax, 0x10
mov byte [rdx + 0x25], al
mov eax, ecx
shr eax, 8
mov byte [rdx + 0x26], al
test byte [rsi + 0x26], 4
je 0x1800190d9
test rdi, rdi
jne 0x1800190af
lea r8, [rsp + 0x78]
xor r9d, r9d
mov edx, ebp
mov rcx, rsi
call fcn.180015298
mov ebx, eax
test eax, eax
jne 0x18001934a
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rdi + 0x68]
call fcn.1800111c4
mov ebx, eax
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x180019310
mov rax, qword [rdi + 0x48]
mov rcx, qword [rdi + 0x50]
xor edx, edx
mov r8d, dword [rax + 0x30]
call fcn.180062a94
cmp byte [rsi + 0x21], r12b
je 0x180019105
lea rax, [rsp + 0x70]
xor r9d, r9d
mov r8b, 2
mov edx, ebp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180014568
mov ebx, dword [rsp + 0x70]
test ebx, ebx
jne 0x180019310
mov eax, 0x20
test r13d, r13d
je 0x180019289
mov rcx, qword [r15 + 0x50]
lea r8, [rsp + 0x88]
xor r9d, r9d
add rcx, rax
movzx eax, byte [rcx + 2]
movzx r14d, byte [rcx + 1]
shl r14d, 8
or r14d, eax
movzx eax, byte [rcx + 3]
shl r14d, 8
or r14d, eax
movzx eax, byte [rcx]
mov rcx, rsi
shl eax, 0x18
or r14d, eax
mov edx, r14d
call fcn.180015298
mov r12, qword [rsp + 0x88]
mov ebx, eax
test eax, eax
jne 0x180019310
mov rcx, qword [r12 + 0x50]
movzx eax, byte [rcx + 6]
movzx r13d, byte [rcx + 5]
shl r13d, 8
or r13d, eax
movzx eax, byte [rcx + 4]
shl eax, 0x18
shl r13d, 8
or r13d, eax
movzx eax, byte [rcx + 7]
mov ecx, dword [rsi + 0x34]
shr ecx, 2
or r13d, eax
lea eax, [rcx - 2]
cmp r13d, eax
jbe 0x1800191a8
mov ebx, 0xb
jmp 0x180019310
lea eax, [rcx - 8]
cmp r13d, eax
jae 0x180019289
mov rcx, qword [r12 + 0x68]
call fcn.1800111c4
mov ebx, eax
test eax, eax
jne 0x180019310
mov rcx, qword [r12 + 0x50]
lea edx, [r13 + 1]
mov byte [rcx + 7], dl
mov eax, edx
shr eax, 0x18
mov byte [rcx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 5], al
mov eax, edx
shr eax, 8
mov byte [rcx + 6], al
lea ecx, [r13*4 + 8]
mov eax, ebp
add rcx, qword [r12 + 0x50]
shr eax, 0x18
mov byte [rcx], al
mov eax, ebp
mov byte [rcx + 3], bpl
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, ebp
shr eax, 8
mov byte [rcx + 2], al
test rdi, rdi
je 0x180019240
test byte [rsi + 0x26], 4
jne 0x180019240
mov rdx, qword [rdi + 0x68]
movzx ecx, word [rdx + 0x2c]
test cl, 2
je 0x180019240
mov rax, qword [rdx + 0x20]
cmp dword [rax + 0x80], ebx
jne 0x180019240
or cx, 0x20
mov word [rdx + 0x2c], cx
xor ebx, ebx
cmp qword [rsi + 0x58], rbx
jne 0x18001926f
mov r13d, dword [rsi + 0x3c]
mov ecx, 0x200
call fcn.180005ca0
test rax, rax
je 0x18001925e
mov dword [rax], r13d
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x18001926f
lea ebx, [rax + 7]
jmp 0x180019310
mov rcx, qword [rsi + 0x58]
cmp ebp, dword [rcx]
ja 0x180019310
mov edx, ebp
call fcn.18000beec
mov ebx, eax
jmp 0x180019310
test rdi, rdi
jne 0x1800192af
lea r8, [rsp + 0x78]
xor r9d, r9d
mov edx, ebp
mov rcx, rsi
call fcn.180015298
mov ebx, eax
test eax, eax
jne 0x18001934a
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rdi + 0x68]
call fcn.1800111c4
mov ebx, eax
test eax, eax
jne 0x180019310
mov rcx, qword [rdi + 0x50]
mov eax, r14d
shr eax, 0x18
mov byte [rcx + 3], r14b
mov byte [rcx], al
mov eax, r14d
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, r14d
shr eax, 8
mov byte [rcx + 2], al
mov rax, qword [rdi + 0x50]
mov byte [rax + 4], bl
mov byte [rax + 5], bl
mov byte [rax + 6], bl
mov byte [rax + 7], bl
mov rdx, qword [r15 + 0x50]
mov eax, ebp
shr eax, 0x18
mov byte [rdx + 0x23], bpl
mov byte [rdx + 0x20], al
mov eax, ebp
shr eax, 0x10
mov byte [rdx + 0x21], al
mov eax, ebp
shr eax, 8
mov byte [rdx + 0x22], al
test rdi, rdi
je 0x180019321
mov byte [rdi], 0
mov rcx, qword [rdi + 0x68]
call fcn.180010cd8
test r12, r12
je 0x180019330
mov rcx, qword [r12 + 0x68]
call fcn.180010cd8
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rsp + 0x78]
jmp 0x180019310