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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x1f0]
call fcn.18004c6a0
test rax, rax
je 0x180046753
mov rcx, qword [rsp + 0x1f0]
call fcn.18004bf30
test rax, rax
jne 0x18004675d
mov eax, 0xfffffffd
jmp 0x1800471a2
mov rcx, qword [rsp + 0x1e0]
call fcn.180024cc0
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x1f0]
call fcn.18004c6f0
mov rcx, qword [rsp + 0x1f8]
mov ecx, dword [rcx]
or ecx, eax
mov dword [rsp + 0x54], ecx
mov rax, qword [rsp + 0x1f8]
mov ecx, dword [rsp + 0x54]
mov dword [rax], ecx
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x1e0]
call fcn.18004c530
mov rcx, qword [rsp + 0x1e0]
call fcn.18004c420
and eax, 0x80
test eax, eax
je 0x1800467f4
mov rax, qword [rsp + 0x1f8]
mov eax, dword [rax]
and eax, 3
bts eax, 7
mov rcx, qword [rsp + 0x1f8]
mov r8d, dword [rcx]
mov edx, eax
mov rcx, qword [rsp + 0x1e0]
call fcn.18004c650
jmp 0x18004682f
mov rcx, qword [rsp + 0x1e0]
call fcn.180024cc0
cmp qword [rax], 0
je 0x180046818
mov rcx, qword [rsp + 0x1e0]
call fcn.18004c6f0
test eax, eax
jne 0x18004682f
mov rax, qword [rsp + 0x1f8]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x1e0]
call fcn.18004c6b0
mov rax, qword [rsp + 0x1f8]
mov eax, dword [rax]
and eax, 0x800000
test eax, eax
je 0x18004684c
mov dword [rsp + 0x6c], 0x800001
jmp 0x180046854
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x78], eax
xor r9d, r9d
mov r8, qword [rsp + 0x1f0]
mov edx, 1
lea rcx, [rsp + 0xd0]
call fcn.18004be20
mov r9, qword [rsp + 0x1e8]
mov r8, qword [rsp + 0x1e0]
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x130]
call fcn.18004be20
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x208], 0
jne 0x180046a31
mov eax, 1
mov word [rsp + 0x34], ax
movsx rax, word [rsp + 0x34]
lea rcx, [0x180087f80]
cmp dword [rcx + rax*4], 1
jne 0x1800468f1
movsx rax, word [rsp + 0x34]
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x34]
lea rdx, [0x180087f80]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x1f8]
mov eax, dword [rax]
and eax, 0x30000
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0x10000
je 0x180046921
cmp dword [rsp + 0x74], 0x20000
je 0x1800469e6
jmp 0x180046a31
lea rax, [0x1800d3e70]
mov qword [rsp + 0x48], rax
jmp 0x180046a31
lea rax, [0x1800d3f70]
mov qword [rsp + 0x48], rax
mov eax, 0xc
mov word [rsp + 0x38], ax
movsx rax, word [rsp + 0x38]
lea rcx, [0x180087f80]
cmp dword [rcx + rax*4], 1
jne 0x180046a31
movsx rax, word [rsp + 0x38]
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x38]
lea rdx, [0x180087f80]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x1f8]
mov eax, dword [rax]
and eax, 0x20000
test eax, eax
je 0x180046c48
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, 0x15
div rcx
mov rax, rdx
mov dword [rsp + 0x98], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
movsxd rdx, dword [rsp + 0x98]
lea r8, [0x180087f80]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087f80]
mov dword [rdx + rcx], eax
cmp qword [rsp + 0x48], 0
je 0x180046ae5
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.180044f30
mov eax, eax
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x68], eax
jmp 0x180046b07
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.180044f30
mov edx, eax
mov rcx, qword [rsp + 0x208]
call fcn.18004c4d0
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
cmp qword [rsp + 0x48], 0
je 0x180046b37
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.180044f30
mov eax, eax
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x60], eax
jmp 0x180046b59
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.180044f30
mov edx, eax
mov rcx, qword [rsp + 0x208]
call fcn.18004c4d0
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x70], 0x3f
ja 0x180046b6f
cmp dword [rsp + 0x58], 0x3f
jbe 0x180046b79
mov eax, 0xfffffffd
jmp 0x1800471a2
mov r8d, dword [rsp + 0x70]
mov rax, qword [rsp + 0x1f8]
mov edx, dword [rax]
lea rcx, [rsp + 0x200]
call fcn.18004c210
mov eax, 0xd
mov word [rsp + 0x24], ax
movsx rax, word [rsp + 0x24]
lea rcx, [0x180087f80]
cmp dword [rcx + rax*4], 1
jne 0x180046bd4
movsx rax, word [rsp + 0x24]
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x24]
lea rdx, [0x180087f80]
mov dword [rdx + rcx*4], eax
mov r8d, dword [rsp + 0x58]
mov rax, qword [rsp + 0x1f8]
mov edx, dword [rax]
lea rcx, [rsp + 0x200]
call fcn.18004c210
mov dword [rsp + 0x8c], 1
mov eax, dword [rsp + 0x8c]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180046c25
xor r9d, r9d
lea r8, [0x180077a90]
lea rdx, [0x180077a98]
xor ecx, ecx
call qword [0x18006a508]
mov edx, 0x10
mov ecx, dword [rsp + 0x200]
call fcn.18004c620
mov ecx, dword [rsp + 0x200]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x200], eax
mov dword [rsp + 0x84], 1
mov eax, dword [rsp + 0x84]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180046c7d
xor r9d, r9d
lea r8, [0x180077a9c]
lea rdx, [0x180077aa4]
xor ecx, ecx
call qword [0x18006a508]
mov qword [rsp + 0x40], 0
jmp 0x180046c96
mov rax, qword [rsp + 0x40]
and rax, 3
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0xd0]
call fcn.18004c350
test rax, rax
je 0x180046f7e
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, 0x15
div rcx
mov rax, rdx
mov dword [rsp + 0x94], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
movsxd rdx, dword [rsp + 0x94]
lea r8, [0x180087f80]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087f80]
mov dword [rdx + rcx], eax
cmp qword [rsp + 0x48], 0
je 0x180046d49
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.180044f30
mov eax, eax
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20], al
jmp 0x180046d6b
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.180044f30
mov edx, eax
mov rcx, qword [rsp + 0x208]
call fcn.18004c4d0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
cmp eax, 0xff
je 0x180046db5
movzx eax, byte [rsp + 0x21]
mov r8d, eax
mov rax, qword [rsp + 0x1f8]
mov edx, dword [rax]
lea rcx, [rsp + 0x200]
call fcn.18004c210
mov rcx, qword [rsp + 0x40]
mov byte [rsp + rcx + 0x28], al
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov eax, 3
mov word [rsp + 0x30], ax
movsx rax, word [rsp + 0x30]
lea rcx, [0x180087f80]
cmp dword [rcx + rax*4], 1
jne 0x180046df4
movsx rax, word [rsp + 0x30]
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x30]
lea rdx, [0x180087f80]
mov dword [rdx + rcx*4], eax
cmp qword [rsp + 0x40], 4
je 0x180046e1d
lea rcx, [rsp + 0xd0]
call fcn.18004c350
test rax, rax
je 0x180046e13
jmp 0x180046c88
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x28], 0
cmp qword [rsp + 0x40], 1
jbe 0x180046e59
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x28]
mov ecx, 1
imul rcx, rcx, 1
movzx ecx, byte [rsp + rcx + 0x28]
and ecx, 0x30
sar ecx, 4
lea eax, [rcx + rax*4]
mov edx, eax
lea rcx, [rsp + 0x130]
call fcn.1800453b0
cmp qword [rsp + 0x40], 2
jbe 0x180046e9a
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 0x28]
and eax, 0xf
shl eax, 4
mov ecx, 1
imul rcx, rcx, 2
movzx ecx, byte [rsp + rcx + 0x28]
and ecx, 0x3c
sar ecx, 2
add eax, ecx
mov edx, eax
lea rcx, [rsp + 0x130]
call fcn.1800453b0
mov dword [rsp + 0x7c], 1
mov eax, dword [rsp + 0x7c]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180046ec9
xor r9d, r9d
lea r8, [0x180077aa8]
lea rdx, [0x180077ab0]
xor ecx, ecx
call qword [0x18006a508]
cmp qword [rsp + 0x40], 3
jbe 0x180046f04
mov eax, 1
imul rax, rax, 2
movzx eax, byte [rsp + rax + 0x28]
and eax, 3
shl eax, 6
mov ecx, 1
imul rcx, rcx, 3
movzx ecx, byte [rsp + rcx + 0x28]
add eax, ecx
mov edx, eax
lea rcx, [rsp + 0x130]
call fcn.1800453b0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, 0x15
div rcx
mov rax, rdx
mov dword [rsp + 0x80], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
movsxd rdx, dword [rsp + 0x80]
lea r8, [0x180087f80]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087f80]
mov dword [rdx + rcx], eax
jmp 0x180046c88
lea rcx, [rsp + 0x130]
call fcn.18004c5d0
movzx eax, al
test eax, eax
jne 0x180046f9c
mov eax, 0xfffffffd
jmp 0x1800471a2
lea rcx, [rsp + 0x130]
call fcn.18004c440
cmp dword [rax + 4], 0
je 0x180047162
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x1e8]
call fcn.180024cc0
cmp qword [rax], 0
je 0x180046fe9
mov rdx, qword [rsp + 0x1e8]
lea rcx, [rsp + 0x50]
call fcn.1800444d0
mov dword [rsp + 0x5c], eax
jmp 0x18004709b
mov rcx, qword [rsp + 0x1e0]
call fcn.180024cc0
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rax]
sub rax, rcx
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x1e0]
call fcn.18004bf30
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0x1e0]
call fcn.1800058e0
mov rax, qword [rax]
and rax, 3
mov rcx, qword [rsp + 0xc0]
mov r9, rcx
mov rcx, qword [rsp + 0xb8]
mov r8, rcx
mov edx, eax
lea rcx, [rsp + 0x190]
call fcn.1800428f0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x3c]
or eax, 1
mov dword [rsp + 0x3c], eax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x50]
call fcn.1800444d0
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x3c]
and eax, 1
test eax, eax
je 0x1800470c0
and dword [rsp + 0x3c], 0xfffffffe
lea rcx, [rsp + 0x190]
call fcn.18001b6e0
cmp dword [rsp + 0x64], 0
je 0x1800470d0
mov eax, dword [rsp + 0x64]
jmp 0x1800471a2
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, 0x15
div rcx
mov rax, rdx
mov dword [rsp + 0x88], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
movsxd rdx, dword [rsp + 0x88]
lea r8, [0x180087f80]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087f80]
mov dword [rdx + rcx], eax
lea rcx, [rsp + 0x130]
call fcn.18004c440
mov eax, dword [rax + 4]
cmp dword [rsp + 0x50], eax
je 0x180047162
mov eax, 0xfffffffd
jmp 0x1800471a2
lea rcx, [rsp + 0x130]
call fcn.18004c440
mov r8d, 0xc
mov rdx, rax
mov rcx, qword [rsp + 0x1f8]
call fcn.18004cb60
lea rcx, [rsp + 0x130]
call fcn.1800458b0
movzx eax, al
test eax, eax
jne 0x1800471a0
mov eax, 0xfffffffc
jmp 0x1800471a2
xor eax, eax
add rsp, 0x1d8
ret