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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 4], 1
jg 0x180178516
jmp 0x1801789b6
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.18017b170
mov rax, qword [rsp + 0xe8]
cmp dword [rax], 0
je 0x180178560
mov rax, qword [rsp + 0xe8]
mov rcx, rax
call fcn.18016f290
cmp dword [rax], 0
jne 0x180178560
mov rax, qword [rsp + 0xe8]
mov rcx, rax
call fcn.18016f790
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 4], 0
jle 0x1801785a2
mov rax, qword [rsp + 0xe8]
cmp dword [rax], 0
jle 0x1801785a2
mov rax, qword [rsp + 0xe8]
mov rcx, rax
call fcn.18016f290
mov qword [rsp + 0x78], rax
jmp 0x1801785ab
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1801785d2
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx]
mov dword [rsp + 0x50], eax
jmp 0x1801785da
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x30], 1
jmp 0x1801785f6
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x30], eax
jge 0x1801787df
mov rax, qword [rsp + 0xe0]
add rax, 8
mov qword [rsp + 0x80], rax
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
call fcn.180170be0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
jle 0x18017865e
mov rax, qword [rsp + 0x20]
mov rcx, rax
call fcn.18016f290
cmp dword [rax], 0
jne 0x18017865e
mov rax, qword [rsp + 0x20]
mov rcx, rax
call fcn.18016f790
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
jle 0x180178739
cmp qword [rsp + 0x40], 0
je 0x180178739
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x88], rax
xor edx, edx
mov rcx, qword [rsp + 0x88]
call fcn.180170c00
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.180175080
movzx eax, al
test eax, eax
je 0x180178739
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x90], rax
xor edx, edx
mov rcx, qword [rsp + 0x90]
call fcn.180170c00
mov eax, dword [rax]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x98], rax
xor edx, edx
mov rcx, qword [rsp + 0x98]
call fcn.180170c00
mov eax, dword [rax]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0xa0]
call fcn.18017c840
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
jle 0x180178755
mov rax, qword [rsp + 0x20]
mov rcx, rax
call fcn.18016f290
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 0
jmp 0x180178790
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
cmp dword [rsp + 0x28], eax
jge 0x1801787da
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
mov edx, dword [rsp + 0x2c]
mov dword [rcx + rax + 0x24], edx
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x180178786
jmp 0x1801785ec
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax]
add eax, dword [rsp + 0x34]
mov edx, eax
mov rcx, qword [rsp + 0xa8]
call fcn.18017d0f0
mov rax, qword [rsp + 0xe8]
add rax, 0x10
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x10]
add eax, dword [rsp + 0x38]
mov edx, eax
mov rcx, qword [rsp + 0xb0]
call fcn.1801324e0
mov rax, qword [rsp + 0xe8]
movsxd rax, dword [rax]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx + 8]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x34]
imul rcx, rcx, 0x38
sub rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe8]
movsxd rax, dword [rax + 0x10]
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx + 0x18]
lea rax, [rcx + rax*2]
movsxd rcx, dword [rsp + 0x38]
shl rcx, 1
sub rax, rcx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x3c], 1
jmp 0x1801788b0
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x3c], eax
jge 0x18017897c
mov rax, qword [rsp + 0xe0]
add rax, 8
mov qword [rsp + 0xb8], rax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xb8]
call fcn.180170be0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x180178936
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rcx + 8]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x180178977
movsxd rax, dword [rsp + 0x4c]
shl rax, 1
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rcx + 0x18]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x60], rax
jmp 0x1801788a6
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x58], rcx
mov rcx, qword [rsp + 0xe8]
call fcn.18017c420
mov rcx, qword [rsp + 0xe8]
call fcn.18017c620
mov rax, qword [rsp + 0xe0]
mov dword [rax + 4], 1
add rsp, 0xc8
pop rdi
pop rsi
ret