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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x78], 0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x6b], 0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x6a], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x20]
sub rax, 0x34
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x3c], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0x70], rcx
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x70]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0x10], rcx
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov word [rcx + 0x68], ax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
jmp 0x180120aee
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 0xb8]
cmp dword [rsp + 0x20], eax
jge 0x180120d07
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x88], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x80], 0
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0xd0]
mov r9d, dword [rsp + 0x58]
movzx r8d, word [rcx + rax*2]
movzx edx, word [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
call fcn.18011fff0
movsx eax, al
test eax, eax
je 0x180120b5b
mov al, 1
jmp 0x180120d47
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0xd0]
movzx eax, word [rcx + rax*2]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
dec eax
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x5c]
and ecx, eax
mov eax, ecx
test eax, eax
jne 0x180120c00
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x60]
cmp dword [rax + 0x5c], ecx
jl 0x180120c00
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x64]
cmp dword [rax + 0x5c], ecx
jg 0x180120c00
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x180120c00
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x80]
movzx eax, word [rax + 0x18]
and eax, 8
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x70]
movzx ecx, word [rcx + 0x18]
and ecx, 8
cmp eax, ecx
jne 0x180120c00
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
sub rax, 4
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x70]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
cmp qword [rcx + 0x30], rax
je 0x180120c7d
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x70]
movzx eax, word [rax + 0x18]
and eax, 8
test eax, eax
je 0x180120c7d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
neg eax
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x5c]
and ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x5c]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x50]
cmp eax, dword [rcx + 8]
jl 0x180120c6d
mov byte [rsp + 0x31], 1
jmp 0x180120c72
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
jmp 0x180120cc4
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x5c]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 4]
lea eax, [rax + rcx - 1]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 4]
neg ecx
and eax, ecx
mov rcx, qword [rsp + 0x50]
sub eax, dword [rcx + 0x5c]
mov rcx, qword [rsp + 0x50]
cmp eax, dword [rcx + 8]
jl 0x180120cb6
mov byte [rsp + 0x32], 1
jmp 0x180120cbb
mov byte [rsp + 0x32], 0
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x30], al
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.18011e040
movsx eax, al
test eax, eax
je 0x180120cde
mov al, 1
jmp 0x180120d47
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x180120d02
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x80]
mov qword [rax + 0x28], rcx
jmp 0x180120ae4
mov rcx, qword [rsp + 0x50]
call fcn.18011e3b0
movsx eax, al
test eax, eax
je 0x180120d1c
mov al, 1
jmp 0x180120d47
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x28]
cmp qword [rax + 0x30], rcx
jae 0x180120d3a
mov dword [rsp + 0x34], 0
jmp 0x180120d42
mov dword [rsp + 0x34], 1
movzx eax, byte [rsp + 0x34]
add rsp, 0x40
pop rdi
ret