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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov word [rsp + 0xf8], 0xffff
mov dword [rsp + 0x20], 0
mov dword [rsp + 0xe8], 1
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xd8]
movzx eax, byte [rax + 0x10]
imul rax, rax, 0x68
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x40]
shr eax, 1
and eax, 1
test eax, eax
je 0x1800d3d77
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x48], rax
jmp 0x1800d3e5e
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x30]
and eax, 0x80
test eax, eax
je 0x1800d3d9b
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
jmp 0x1800d3e5e
mov r8d, 0x70
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov word [rsp + 0xbe], 1
mov word [rsp + 0xc0], 1
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov byte [rsp + 0xc2], 5
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov word [rsp + 0xbc], 3
mov eax, dword [rsp + 0xc4]
or eax, 3
mov dword [rsp + 0xc4], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x3a]
mov word [rsp + 0x30], ax
mov word [rsp + 0x32], 0
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x40]
and eax, 1
test eax, eax
jne 0x1800d3e54
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x3a]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x170]
cmp qword [rax + 0x18], 0
jne 0x1800d4168
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x3c]
and eax, 0x1020
test eax, eax
jne 0x1800d4168
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
and rax, 0x8000
test rax, rax
je 0x1800d4168
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x40]
shr eax, 1
and eax, 1
test eax, eax
jne 0x1800d4168
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x40]
and eax, 1
test eax, eax
jne 0x1800d4168
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x30]
and eax, 0x80
test eax, eax
jne 0x1800d4168
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x40]
shr eax, 3
and eax, 1
test eax, eax
jne 0x1800d4168
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x40]
shr eax, 6
and eax, 1
test eax, eax
jne 0x1800d4168
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x3c]
and eax, 0x10
test eax, eax
jne 0x1800d4168
mov rax, qword [rsp + 0xd0]
movsxd rax, dword [rax + 0x14]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0xd0]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x110], rax
movzx ecx, word [rsp + 0x40]
call fcn.1800d4880
mov word [rsp + 0x118], ax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x108], rax
jmp 0x1800d3f9f
mov rax, qword [rsp + 0x108]
add rax, 0x38
mov qword [rsp + 0x108], rax
cmp dword [rsp + 0x20], 0
jne 0x1800d4168
mov rax, qword [rsp + 0x110]
cmp qword [rsp + 0x108], rax
jae 0x1800d4168
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xd8]
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x28]
and rax, rcx
test rax, rax
je 0x1800d3fe2
jmp 0x1800d3f8b
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x108]
call fcn.1800d2ca0
test eax, eax
je 0x1800d4163
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x18], 1
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x3e], 0
mov rax, qword [rsp + 0xd8]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x3c], 1
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x48]
mov rcx, qword [rsp + 0x108]
mov qword [rax], rcx
movsx eax, word [rsp + 0x118]
movsx ecx, word [rsp + 0x40]
add eax, ecx
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 0x12], ax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3f]
cmp eax, 2
je 0x1800d40aa
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x30]
and eax, 0x4000
test eax, eax
jne 0x1800d40aa
mov rax, qword [rsp + 0xd8]
movsx eax, word [rax + 0x12]
add eax, 0x1c
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 0x12], ax
jmp 0x1800d40c5
mov rax, qword [rsp + 0xd8]
movsx eax, word [rax + 0x12]
sub eax, 0x19
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 0x12], ax
mov rax, qword [rsp + 0xd8]
movsx eax, word [rax + 0x12]
test eax, eax
jge 0x1800d40e3
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x12], 0
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x16], 0x2b
mov rax, qword [rsp + 0xd8]
movzx edx, word [rax + 0x16]
movzx ecx, word [rsp + 0x118]
call fcn.1800b7810
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 0x14], ax
mov rax, qword [rsp + 0xd8]
mov dword [rax + 0x38], 0x4000
mov rax, qword [rsp + 0x108]
mov rax, qword [rax + 0x28]
mov rcx, qword [rsp + 0x178]
or rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rcx], rax
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x170]
call fcn.1800d48d0
mov dword [rsp + 0x20], eax
jmp 0x1800d3f8b
jmp 0x1800d41ba
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x40]
shr eax, 1
and eax, 1
test eax, eax
je 0x1800d418c
mov qword [rsp + 0x148], 0
jmp 0x1800d419d
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0xe8]
inc eax
mov dword [rsp + 0xe8], eax
cmp dword [rsp + 0x20], 0
jne 0x1800d486b
cmp qword [rsp + 0x48], 0
je 0x1800d486b
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x48], 0
je 0x1800d4213
mov rax, qword [rsp + 0x48]
mov r9, qword [rax + 0x48]
mov r8, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xf0]
movzx edx, byte [rax + 0x3c]
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax + 0x44]
call fcn.1800d6b90
test eax, eax
jne 0x1800d4213
jmp 0x1800d416a
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x64]
shr eax, 8
and eax, 1
test eax, eax
je 0x1800d422a
jmp 0x1800d416a
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x18], 0
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x1a], 0
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x1c], 0
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x3e], 0
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x3c], 0
mov rax, qword [rsp + 0xd8]
mov byte [rax + 0x11], 0
mov rax, qword [rsp + 0xd8]
mov word [rax + 0x12], 0
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x178]
mov qword [rax], rcx
mov rax, qword [rsp + 0xd8]
movzx ecx, word [rsp + 0x40]
mov word [rax + 0x16], cx
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0xf0]
mov r8d, dword [rax + 0x44]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x170]
call fcn.1800d69d0
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x64]
and eax, 3
cmp eax, 3
jne 0x1800d43ee
mov rax, qword [rsp + 0xd8]
mov dword [rax + 0x38], 0x100
cmp dword [rsp + 0x50], 0
je 0x1800d432c
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x150], eax
jmp 0x1800d4337
mov dword [rsp + 0x150], 0
mov rax, qword [rsp + 0xd8]
movzx ecx, byte [rsp + 0x150]
mov byte [rax + 0x11], cl
movsx eax, word [rsp + 0x40]
add eax, 0x10
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 0x14], ax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3f]
cmp eax, 2
je 0x1800d437d
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x30]
and eax, 0x4000
test eax, eax
je 0x1800d4398
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x38]
or eax, 0x2000000
mov rcx, qword [rsp + 0xd8]
mov dword [rcx + 0x38], eax
movzx r8d, word [rsp + 0x40]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.1800d5270
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x170]
call fcn.1800d48d0
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xd8]
movzx ecx, word [rsp + 0x40]
mov word [rax + 0x16], cx
cmp dword [rsp + 0x20], 0
je 0x1800d43e9
jmp 0x1800d486b
jmp 0x1800d4813
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x64]
shr eax, 5
and eax, 1
test eax, eax
je 0x1800d4420
mov qword [rsp + 0x120], 0
mov rax, qword [rsp + 0xd8]
mov dword [rax + 0x38], 0x240
jmp 0x1800d4515
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x68]
mov rax, qword [rax + 0x50]
and rax, rcx
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0xd8]
mov dword [rax + 0x38], 0x200
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x120], rax
je 0x1800d4496
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x64]
shr eax, 0xb
and eax, 1
test eax, eax
je 0x1800d44fb
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x64]
shr eax, 0xa
and eax, 1
test eax, eax
jne 0x1800d44fb
cmp qword [rsp + 0x120], 0
je 0x1800d44fb
mov rax, qword [rsp + 0xf0]
mov r8d, dword [rax + 0x44]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.1800d6d00
mov dword [rsp + 0x128], eax
cmp dword [rsp + 0x128], 0
jne 0x1800d44c4
jmp 0x1800d44f9
mov qword [rsp + 0x120], 0
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x128]
mov eax, dword [rax + 0x38]
or eax, ecx
mov rcx, qword [rsp + 0xd8]
mov dword [rcx + 0x38], eax
mov eax, dword [rsp + 0x128]
and eax, 0x40
jmp 0x1800d4515
cmp qword [rsp + 0x120], 0
jne 0x1800d4515
mov rax, qword [rsp + 0xd8]
mov dword [rax + 0x38], 0x240
cmp dword [rsp + 0x50], 0
jne 0x1800d45d4
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x30]
and eax, 0x80
test eax, eax
jne 0x1800d45d4
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x48], 0
jne 0x1800d45d4
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x40]
shr eax, 1
and eax, 1
test eax, eax
jne 0x1800d45d4
cmp qword [rsp + 0x120], 0
jne 0x1800d4813
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x64]
shr eax, 2
and eax, 1
test eax, eax
jne 0x1800d4813
mov rax, qword [rsp + 0x48]
movsx eax, word [rax + 0x5c]
mov rcx, qword [rsp + 0x38]
movsx ecx, word [rcx + 0x3c]
cmp eax, ecx
jge 0x1800d4813
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x3c]
and eax, 4
test eax, eax
jne 0x1800d4813
movzx eax, byte [0x18014b417]
test eax, eax
je 0x1800d4813
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rax, qword [rax]
mov eax, dword [rax + 0x60]
and eax, 0x20
test eax, eax
jne 0x1800d4813
cmp dword [rsp + 0x50], 0
je 0x1800d45eb
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x154], eax
jmp 0x1800d45f6
mov dword [rsp + 0x154], 0
mov rax, qword [rsp + 0xd8]
movzx ecx, byte [rsp + 0x154]
mov byte [rax + 0x11], cl
movsx eax, word [rsp + 0x40]
mov dword [rsp + 0x158], eax
mov rcx, qword [rsp + 0x48]
movsx ecx, word [rcx + 0x5c]
imul ecx, ecx, 0xf
mov rdx, qword [rsp + 0x38]
movsx edx, word [rdx + 0x3c]
mov dword [rsp + 0x15c], edx
mov eax, ecx
cdq
mov ecx, dword [rsp + 0x15c]
idiv ecx
mov ecx, dword [rsp + 0x158]
lea eax, [rcx + rax + 1]
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 0x14], ax
cmp qword [rsp + 0x120], 0
je 0x1800d47a4
movsx eax, word [rsp + 0x40]
add eax, 0x10
mov word [rsp + 0x12c], ax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x138], eax
mov rax, qword [rsp + 0x28]
add rax, 0x70
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x13c], 0
jmp 0x1800d46b3
mov eax, dword [rsp + 0x13c]
inc eax
mov dword [rsp + 0x13c], eax
mov rax, qword [rsp + 0x130]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x13c], eax
jge 0x1800d477f
movsxd rax, dword [rsp + 0x13c]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x130]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x140], rax
mov r8, qword [rsp + 0x48]
mov edx, dword [rsp + 0x138]
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax]
call fcn.1800cb260
test eax, eax
jne 0x1800d470d
jmp 0x1800d477f
mov rax, qword [rsp + 0x140]
movsx eax, word [rax + 0x10]
test eax, eax
jg 0x1800d473f
mov rax, qword [rsp + 0x140]
movsx eax, word [rax + 0x10]
movsx ecx, word [rsp + 0x12c]
add ecx, eax
mov eax, ecx
mov word [rsp + 0x12c], ax
jmp 0x1800d477a
movzx eax, word [rsp + 0x12c]
dec ax
mov word [rsp + 0x12c], ax
mov rax, qword [rsp + 0x140]
movzx eax, word [rax + 0x14]
and eax, 0x82
test eax, eax
je 0x1800d477a
movsx eax, word [rsp + 0x12c]
sub eax, 0x13
mov word [rsp + 0x12c], ax
jmp 0x1800d46a3
movzx edx, word [rsp + 0x12c]
mov rax, qword [rsp + 0xd8]
movzx ecx, word [rax + 0x14]
call fcn.1800b7810
mov rcx, qword [rsp + 0xd8]
mov word [rcx + 0x14], ax
movzx r8d, word [rsp + 0x40]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.1800d5270
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x3c]
and eax, 0x10
test eax, eax
je 0x1800d47e0
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x50], 0
je 0x1800d47e0
jmp 0x1800d47f9
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x170]
call fcn.1800d48d0
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xd8]
movzx ecx, word [rsp + 0x40]
mov word [rax + 0x16], cx
cmp dword [rsp + 0x20], 0
je 0x1800d4813
jmp 0x1800d486b
mov rax, qword [rsp + 0x170]
mov byte [rax + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x170]
call fcn.1800d5540
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x20]
cmp eax, 1
jne 0x1800d4866
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x30]
or eax, 0x100
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 0x30], eax
jmp 0x1800d416a
mov eax, dword [rsp + 0x20]
add rsp, 0x168
ret