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

Disassembly:
sub rsp, 0x1c8
mov qword [rsp + 0x98], rdx
mov dword [rsp + 0x94], ecx
mov rax, qword [rsp + 0x98]
add rax, 8
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x98]
add rax, 0x2e8
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
mov dword [rsp + 0x7c], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x1c]
mov dword [rsp + 0x78], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x20]
mov dword [rsp + 0x74], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x14]
mov dword [rsp + 0x70], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x10]
mov dword [rsp + 0x6c], ecx
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0xa8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
add rax, 0x6e2
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
add rax, 0x650
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x88]
call fcn.180007b90
cmp eax, 0
jne 0x18001d5cd
mov dword [rsp + 0xa4], 2
jmp 0x18001dd4b
jmp 0x18001d5d2
xor eax, eax
mov ecx, dword [rsp + 0x7c]
cmp ecx, dword [rsp + 0x94]
mov byte [rsp + 0x3b], al
jae 0x18001d5f5
cmp dword [rsp + 0x74], 0
seta al
mov byte [rsp + 0x3b], al
mov al, byte [rsp + 0x3b]
test al, 1
jne 0x18001d606
jmp 0x18001dd31
xor eax, eax
mov rcx, qword [rsp + 0x80]
add rcx, 0x24
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0xb0], 4
mov qword [rsp + 0xa8], rcx
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0xb0]
cmp rcx, rdx
mov r8d, 1
cmovae eax, r8d
cmp eax, 0
jne 0x18001d6bd
mov eax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x18], eax
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1c], eax
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x14], eax
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x10], eax
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
mov dword [rsp + 0xa4], 2
jmp 0x18001dd4b
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov dword [rsp + 0x1ac], 0x11
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
cmp dword [rax + 8], 0x20
jb 0x18001d77d
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rax]
shr rcx, 0x20
mov qword [rax], rcx
mov rax, qword [rsp + 0x1a0]
mov edx, dword [rax + 8]
xor edx, 0x20
mov dword [rax + 8], edx
mov rax, qword [rsp + 0x1a0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x1b8]
mov edx, dword [rax]
mov eax, edx
shl rax, 0x20
mov rcx, qword [rsp + 0x1a0]
or rax, qword [rcx]
mov qword [rcx], rax
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rax + 0x18]
sub rcx, 4
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rax + 0x10]
add rcx, 4
mov qword [rax + 0x10], rcx
jmp 0x18001d782
jmp 0x18001d787
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x190]
mov edx, dword [rcx + 8]
mov ecx, edx
shr rax, cl
mov dword [rsp + 0x188], 5
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x188]
mov ecx, eax
lea rdx, [0x180040840]
mov eax, dword [rdx + rcx*4]
mov dword [rsp + 0x18c], eax
mov eax, dword [rsp + 0x18c]
mov ecx, eax
mov rdx, qword [rsp + 0x30]
and rdx, rcx
shl rdx, 2
add rdx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdx
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx]
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0x184], eax
mov qword [rsp + 0x178], rcx
mov eax, dword [rsp + 0x184]
mov rcx, qword [rsp + 0x178]
add eax, dword [rcx + 8]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + 2]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x10
jae 0x18001d984
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x44]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x168], rcx
mov qword [rsp + 0x160], rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x148], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x13c], r8d
mov rax, qword [rsp + 0x148]
mov dword [rax], 0
cmp dword [rsp + 0x13c], 0
je 0x18001d970
mov rax, qword [rsp + 0x140]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x160]
mov rdx, qword [rsp + 0x170]
mov r8d, dword [rsp + 0x13c]
mov r9d, r8d
movsxd rdx, dword [rdx + r9*4]
mov word [rax + rdx*2], cx
mov rax, qword [rsp + 0x140]
mov r8d, dword [rax]
mov rax, qword [rsp + 0x170]
mov r10d, dword [rsp + 0x13c]
mov edx, r10d
mov dword [rax + rdx*4], r8d
mov r8d, dword [rsp + 0x13c]
mov rax, qword [rsp + 0x158]
mov dword [rax], r8d
mov ecx, dword [rsp + 0x13c]
mov r8d, 0x8000
shr r8d, cl
mov rax, qword [rsp + 0x150]
mov r10d, dword [rax]
sub r10d, r8d
mov dword [rax], r10d
mov rax, qword [rsp + 0x168]
mov r8d, dword [rsp + 0x13c]
mov edx, r8d
mov r11w, word [rax + rdx*2]
add r11w, 1
mov word [rax + rdx*2], r11w
mov rax, qword [rsp + 0x140]
mov ecx, dword [rax]
add ecx, 1
mov dword [rax], ecx
jmp 0x18001dd2c
mov eax, dword [rsp + 0x44]
cmp eax, 0x10
mov eax, 2
mov ecx, 3
cmove ecx, eax
mov dword [rsp + 0x40], ecx
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x130], rdx
mov rdx, qword [rsp + 0x130]
mov rdx, qword [rdx]
mov r8, qword [rsp + 0x130]
mov eax, dword [r8 + 8]
mov ecx, eax
shr rdx, cl
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x128], eax
mov dword [rsp + 0x2c], edx
mov eax, dword [rsp + 0x128]
mov ecx, eax
lea rdx, [0x180040840]
mov eax, dword [rdx + rcx*4]
mov dword [rsp + 0x12c], eax
mov eax, dword [rsp + 0x2c]
and eax, dword [rsp + 0x12c]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0x124], eax
mov qword [rsp + 0x118], rcx
mov eax, dword [rsp + 0x124]
mov rcx, qword [rsp + 0x118]
add eax, dword [rcx + 8]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov eax, dword [rsp + 0x94]
mov r9d, dword [rsp + 0x3c]
mov r10d, dword [rsp + 0x44]
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x108], rdx
mov qword [rsp + 0x100], r8
lea rcx, [rsp + 0x6c]
mov qword [rsp + 0xf8], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0xf0], rcx
lea rcx, [rsp + 0x74]
mov qword [rsp + 0xe8], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0xe0], rcx
lea rcx, [rsp + 0x7c]
mov qword [rsp + 0xd8], rcx
mov dword [rsp + 0xd4], eax
mov dword [rsp + 0xd0], r9d
mov dword [rsp + 0xcc], r10d
mov dword [rsp + 0xc4], 3
mov dword [rsp + 0xc0], 0
cmp dword [rsp + 0xcc], 0x10
jne 0x18001db00
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax]
mov dword [rsp + 0xc0], ecx
mov dword [rsp + 0xc4], 2
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rax]
cmp ecx, dword [rsp + 0xc0]
je 0x18001db36
mov rax, qword [rsp + 0xe0]
mov dword [rax], 0
mov ecx, dword [rsp + 0xc0]
mov rax, qword [rsp + 0xf8]
mov dword [rax], ecx
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax]
mov dword [rsp + 0xc8], ecx
mov rax, qword [rsp + 0xe0]
cmp dword [rax], 0
jbe 0x18001db7c
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax]
sub ecx, 2
mov dword [rax], ecx
mov ecx, dword [rsp + 0xc4]
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax]
shl edx, cl
mov dword [rax], edx
mov eax, dword [rsp + 0xd0]
add eax, 3
mov rcx, qword [rsp + 0xe0]
add eax, dword [rcx]
mov dword [rcx], eax
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx]
sub eax, dword [rsp + 0xc8]
mov dword [rsp + 0xd0], eax
mov rcx, qword [rsp + 0xd8]
mov eax, dword [rcx]
add eax, dword [rsp + 0xd0]
cmp eax, dword [rsp + 0xd4]
jbe 0x18001dbec
mov eax, dword [rsp + 0xd4]
mov rcx, qword [rsp + 0xd8]
mov dword [rcx], eax
mov rcx, qword [rsp + 0xe8]
mov dword [rcx], 0xfffff
jmp 0x18001dd27
mov rax, qword [rsp + 0xf8]
cmp dword [rax], 0
je 0x18001dd14
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rax]
add ecx, dword [rsp + 0xd0]
mov dword [rsp + 0xbc], ecx
mov rax, qword [rsp + 0x110]
mov rdx, qword [rsp + 0xf8]
mov ecx, dword [rdx]
mov edx, ecx
mov ecx, dword [rax + rdx*4]
mov dword [rsp + 0xb8], ecx
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x100]
movsxd rdx, dword [rsp + 0xb8]
mov word [rax + rdx*2], cx
mov rax, qword [rsp + 0xd8]
mov r8d, dword [rax]
mov dword [rsp + 0xb8], r8d
mov rax, qword [rsp + 0xd8]
mov r8d, dword [rax]
add r8d, 1
mov dword [rax], r8d
cmp r8d, dword [rsp + 0xbc]
jne 0x18001dc33
mov eax, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0x110]
mov rdx, qword [rsp + 0xf8]
mov r8d, dword [rdx]
mov edx, r8d
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0xf8]
mov r8d, 0xf
sub r8d, dword [rcx]
mov ecx, r8d
shl eax, cl
mov rdx, qword [rsp + 0xe8]
mov r8d, dword [rdx]
sub r8d, eax
mov dword [rdx], r8d
mov rdx, qword [rsp + 0x108]
mov r9, qword [rsp + 0xf8]
mov eax, dword [r9]
mov r9d, eax
movzx eax, word [rdx + r9*2]
add eax, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0x108]
mov r9, qword [rsp + 0xf8]
mov r8d, dword [r9]
mov r9d, r8d
mov word [rdx + r9*2], ax
jmp 0x18001dd27
mov eax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd8]
add eax, dword [rcx]
mov dword [rcx], eax
jmp 0x18001dd2c
jmp 0x18001d5d2
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
mov dword [rsp + 0xa4], 1
mov eax, dword [rsp + 0xa4]
add rsp, 0x1c8
ret