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

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x24], eax
xor eax, eax
mov word [rsp + 0x20], ax
cmp qword [rsp + 0x78], 0
jne 0x1800649d5
mov rcx, qword [rsp + 0x70]
call fcn.180064440
xor eax, eax
jmp 0x180064cb1
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x28], 0
je 0x1800649fd
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x28]
mov ecx, 4
imul rcx, rcx, 0
mov eax, dword [rax + rcx + 0x7c]
mov dword [rsp + 0x2c], eax
jmp 0x180064a05
mov dword [rsp + 0x2c], 0x3b9aca00
movzx eax, byte [rsp + 0x88]
test eax, eax
jne 0x180064a1b
mov dword [rsp + 0x30], 0x10
jmp 0x180064a23
mov dword [rsp + 0x30], 2
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x20], ax
cmp dword [rsp + 0x24], 0
jge 0x180064ad1
movzx eax, byte [rsp + 0x88]
cmp eax, 1
jne 0x180064a7c
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp byte [rax + rcx], 0
jne 0x180064a58
mov rax, qword [rsp + 0x40]
btr eax, 0x1f
mov dword [rsp + 0x24], eax
jmp 0x180064ac3
mov dword [rsp + 0x24], 0
jmp 0x180064a91
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x24], eax
jg 0x180064ac3
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x78]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x24]
inc ecx
movsxd rcx, ecx
mov rdx, qword [rsp + 0x78]
movsx ecx, byte [rdx + rcx]
or eax, ecx
test eax, eax
je 0x180064ac3
jmp 0x180064a86
movzx eax, word [rsp + 0x20]
bts eax, 9
mov word [rsp + 0x20], ax
cmp qword [rsp + 0x90], 0xffffffffffffffff
jne 0x180064b97
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
movzx eax, word [rsp + 0x20]
and eax, 0x200
test eax, eax
je 0x180064b25
movzx eax, byte [rsp + 0x88]
cmp eax, 1
jne 0x180064b0d
mov dword [rsp + 0x38], 1
jmp 0x180064b15
mov dword [rsp + 0x38], 2
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x24], eax
jle 0x180064b47
mov edx, 0x12
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x28]
call fcn.1800372f0
jmp 0x180064cb1
cmp dword [rsp + 0x28], 0x20
jbe 0x180064b58
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x3c], eax
jmp 0x180064b60
mov dword [rsp + 0x3c], 0x20
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x70]
call fcn.180063760
test eax, eax
je 0x180064b7c
mov eax, 7
jmp 0x180064cb1
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rsp + 0x78]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
jmp 0x180064c2f
mov rcx, qword [rsp + 0x70]
call fcn.180063d40
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x10], rcx
lea rax, [fcn.180031960]
cmp qword [rsp + 0x90], rax
jne 0x180064bf3
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x18]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x28]
call fcn.1800319d0
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x20], eax
jmp 0x180064c2f
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x30], rcx
cmp qword [rsp + 0x90], 0
jne 0x180064c19
mov dword [rsp + 0x34], 0x800
jmp 0x180064c21
mov dword [rsp + 0x34], 0x400
movzx eax, word [rsp + 0x20]
or eax, dword [rsp + 0x34]
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 0xc], ecx
mov rax, qword [rsp + 0x70]
movzx ecx, word [rsp + 0x20]
mov word [rax + 8], cx
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x180064c67
mov rax, qword [rsp + 0x70]
movzx ecx, byte [rsp + 0x88]
mov byte [rax + 0xa], cl
jmp 0x180064c7c
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rax + 0x5e]
mov byte [rcx + 0xa], al
movzx eax, byte [rsp + 0x88]
cmp eax, 1
jle 0x180064c9e
mov rcx, qword [rsp + 0x70]
call fcn.180036a60
test eax, eax
je 0x180064c9e
mov eax, 7
jmp 0x180064cb1
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x24], eax
jle 0x180064caf
mov eax, 0x12
jmp 0x180064cb1
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
ret