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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xd0]
call fcn.1800350b0
mov dword [rsp + 0x50], eax
mov eax, 1
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 0x50]
mov rcx, rax
call fcn.18007c930
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
jb 0x18002d218
mov ecx, 0x10c94
call fcn.18006c160
jmp 0x18002dcce
cmp dword [rsp + 0x54], 0
jbe 0x18002da53
mov byte [rsp + 0x24], 0
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0xf0]
cmp eax, 1
jne 0x18002d28b
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0xe8], eax
ja 0x18002d289
xor r9d, r9d
lea r8, [rsp + 0x38]
mov edx, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xd0]
call fcn.1800578a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002d27a
mov eax, dword [rsp + 0x20]
jmp 0x18002dcce
movzx eax, byte [rsp + 0x38]
cmp eax, 2
jne 0x18002d289
mov byte [rsp + 0x24], 1
jmp 0x18002d29d
movzx eax, byte [rsp + 0xf0]
cmp eax, 2
jne 0x18002d29d
mov byte [rsp + 0x24], 1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002d2bf
mov eax, dword [rsp + 0x20]
jmp 0x18002dcce
mov eax, dword [rsp + 0x54]
dec eax
mov ecx, 1
imul rcx, rcx, 0x24
mov rdx, qword [rsp + 0x60]
add rcx, qword [rdx + 0x50]
mov edx, eax
call fcn.18008dd20
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18002d310
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
add rax, qword [rcx + 0x50]
mov rcx, rax
call fcn.18007c930
mov dword [rsp + 0x3c], eax
jmp 0x18002d32e
mov eax, 1
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 0x50]
mov rcx, rax
call fcn.18007c930
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x3c], eax
ja 0x18002d368
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x94], eax
jbe 0x18002d378
mov ecx, 0x10ccc
call fcn.18006c160
mov dword [rsp + 0x20], eax
jmp 0x18002d395
xor r9d, r9d
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xd0]
call fcn.180033fa0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002d3aa
mov qword [rsp + 0x30], 0
jmp 0x18002dcb6
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x50]
mov rcx, rax
call fcn.18007c930
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jne 0x18002d44d
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x18002d44d
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002d3f6
jmp 0x18002dcb6
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x3c]
mov dword [rax], ecx
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x50]
mov edx, 1
imul rdx, rdx, 0x20
mov r8, qword [rsp + 0x60]
mov r8, qword [r8 + 0x50]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov qword [rsp + 0x30], 0
jmp 0x18002da2e
xor edx, edx
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x34]
mov ecx, 4
div ecx
sub eax, 2
cmp dword [rsp + 0x2c], eax
jbe 0x18002d482
mov ecx, 0x10ce9
call fcn.18006c160
mov dword [rsp + 0x20], eax
jmp 0x18002dcb6
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x18002d71a
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0xe8], eax
je 0x18002d4be
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x3c], eax
jae 0x18002d71a
movzx eax, byte [rsp + 0xf0]
cmp eax, 2
jne 0x18002d71a
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x3c]
mov dword [rax], ecx
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov byte [rsp + 0x24], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002d4ff
jmp 0x18002dcb6
cmp dword [rsp + 0x2c], 0
jne 0x18002d58d
cmp qword [rsp + 0x48], 0
jne 0x18002d53f
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x50]
mov edx, 1
imul rdx, rdx, 0x20
mov r8, qword [rsp + 0x60]
mov r8, qword [r8 + 0x50]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
jmp 0x18002d588
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002d55d
jmp 0x18002dcb6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x50]
mov edx, 1
imul rdx, rdx, 0
mov r8, qword [rsp + 0x48]
mov r8, qword [r8 + 0x50]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
jmp 0x18002d70c
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x50]
mov rcx, rax
call fcn.18007c930
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x58], eax
jbe 0x18002d5c8
mov ecx, 0x10d0b
call fcn.18006c160
mov dword [rsp + 0x20], eax
jmp 0x18002dcb6
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
call fcn.180033fa0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002d5f1
jmp 0x18002dcb6
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002d619
mov rcx, qword [rsp + 0x70]
call fcn.1800597d0
jmp 0x18002dcb6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x50]
mov edx, 1
imul rdx, rdx, 0
mov r8, qword [rsp + 0x70]
mov r8, qword [r8 + 0x50]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, dword [rsp + 0x2c]
dec eax
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x70]
add rcx, qword [rdx + 0x50]
mov edx, eax
call fcn.18008dd20
mov eax, dword [rsp + 0x2c]
lea eax, [rax*4 - 4]
mov eax, eax
mov ecx, 1
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
add rcx, qword [rdx + 0x50]
mov edx, 1
imul rdx, rdx, 8
mov r8, qword [rsp + 0x70]
add rdx, qword [r8 + 0x50]
mov rdi, rdx
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x70]
call fcn.1800597d0
cmp qword [rsp + 0x48], 0
jne 0x18002d6d0
mov eax, 1
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 0x50]
mov edx, dword [rsp + 0x58]
mov rcx, rax
call fcn.18008dd20
jmp 0x18002d70c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002d6ee
jmp 0x18002dcb6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
add rax, qword [rcx + 0x50]
mov edx, dword [rsp + 0x58]
mov rcx, rax
call fcn.18008dd20
mov qword [rsp + 0x30], 0
jmp 0x18002da2e
cmp dword [rsp + 0x2c], 0
jbe 0x18002da2e
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x68], rax
cmp dword [rsp + 0xe8], 0
jbe 0x18002d852
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0xf0]
cmp eax, 2
jne 0x18002d7b6
mov dword [rsp + 0x28], 0
jmp 0x18002d76a
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jae 0x18002d7b1
mov eax, dword [rsp + 0x28]
lea eax, [rax*4 + 8]
mov eax, eax
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18007c930
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x40], eax
ja 0x18002d7af
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
jmp 0x18002d7b1
jmp 0x18002d760
jmp 0x18002d850
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18007c930
sub eax, dword [rsp + 0xe8]
mov ecx, eax
call fcn.1800607e0
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x28], 1
jmp 0x18002d7f8
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jae 0x18002d850
mov eax, dword [rsp + 0x28]
lea eax, [rax*4 + 8]
mov eax, eax
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18007c930
sub eax, dword [rsp + 0xe8]
mov ecx, eax
call fcn.1800607e0
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x78], eax
jge 0x18002d84e
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x7c], eax
jmp 0x18002d7ee
jmp 0x18002d85a
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
lea eax, [rax*4 + 8]
mov eax, eax
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18007c930
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jbe 0x18002d89b
mov ecx, 0x10d4c
call fcn.18006c160
mov dword [rsp + 0x20], eax
jmp 0x18002dcb6
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x18002d8d3
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x40], eax
je 0x18002d8d3
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x40], eax
jae 0x18002da2e
movzx eax, byte [rsp + 0xf0]
cmp eax, 2
jne 0x18002da2e
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002d8ff
jmp 0x18002dcb6
mov eax, dword [rsp + 0x2c]
dec eax
cmp dword [rsp + 0x44], eax
jae 0x18002d935
mov eax, dword [rsp + 0x2c]
lea eax, [rax*4 + 4]
mov eax, eax
mov ecx, dword [rsp + 0x44]
lea ecx, [rcx*4 + 8]
mov ecx, ecx
mov rdx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x68]
mov eax, dword [rdi + rax]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x2c]
dec eax
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x68]
add rdx, rcx
mov rcx, rdx
mov edx, eax
call fcn.18008dd20
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax]
mov rcx, qword [rsp + 0xd0]
call fcn.180033ed0
test eax, eax
jne 0x18002d97e
mov dword [rsp + 0x80], 1
jmp 0x18002d989
mov dword [rsp + 0x80], 0
cmp dword [rsp + 0x80], 0
je 0x18002d9a0
mov dword [rsp + 0x84], 1
jmp 0x18002d9ab
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x98], eax
mov r9d, dword [rsp + 0x98]
mov r8, qword [rsp + 0xd8]
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax]
mov rcx, qword [rsp + 0xd0]
call fcn.180033fa0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x18002da29
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002da29
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rax]
call fcn.1800597d0
mov rax, qword [rsp + 0xd8]
mov qword [rax], 0
mov byte [rsp + 0x24], 0
mov rcx, qword [rsp + 0x48]
call fcn.1800597d0
mov qword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x18002d2de
jmp 0x18002dcb6
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x23]
test eax, eax
jne 0x18002da70
mov dword [rsp + 0x88], 1
jmp 0x18002da7b
mov dword [rsp + 0x88], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002dab2
mov eax, dword [rsp + 0x20]
jmp 0x18002dcce
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x3c], eax
xor edx, edx
mov eax, dword [0x18039dfa4]
mov rcx, qword [rsp + 0xd0]
div dword [rcx + 0x30]
inc eax
mov rcx, qword [rsp + 0xd0]
cmp dword [rcx + 0x3c], eax
jne 0x18002db04
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x18002dc04
mov rax, qword [rsp + 0xd0]
mov edx, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xd0]
call fcn.1800579b0
mov rcx, qword [rsp + 0xd0]
cmp eax, dword [rcx + 0x3c]
jne 0x18002dc04
mov qword [rsp + 0xa0], 0
mov r9d, dword [rsp + 0x8c]
lea r8, [rsp + 0xa0]
mov rax, qword [rsp + 0xd0]
mov edx, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xd0]
call fcn.180033fa0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x18002dba2
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0xa0]
call fcn.1800597d0
cmp dword [rsp + 0x20], 0
je 0x18002dbb2
mov eax, dword [rsp + 0x20]
jmp 0x18002dcce
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x3c], eax
xor edx, edx
mov eax, dword [0x18039dfa4]
mov rcx, qword [rsp + 0xd0]
div dword [rcx + 0x30]
inc eax
mov rcx, qword [rsp + 0xd0]
cmp dword [rcx + 0x3c], eax
jne 0x18002dc04
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x50]
add rax, 0x1c
mov rcx, qword [rsp + 0xd0]
mov edx, dword [rcx + 0x3c]
mov rcx, rax
call fcn.18008dd20
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd0]
mov ecx, dword [rcx + 0x3c]
mov dword [rax], ecx
mov r9d, dword [rsp + 0x8c]
mov r8, qword [rsp + 0xd8]
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax]
mov rcx, qword [rsp + 0xd0]
call fcn.180033fa0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002dc78
mov eax, dword [rsp + 0x20]
jmp 0x18002dcce
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x70]
call fcn.180087b60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18002dcb6
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rax]
call fcn.1800597d0
mov rax, qword [rsp + 0xd8]
mov qword [rax], 0
mov rcx, qword [rsp + 0x30]
call fcn.1800597d0
mov rcx, qword [rsp + 0x48]
call fcn.1800597d0
mov eax, dword [rsp + 0x20]
add rsp, 0xb8
pop rdi
pop rsi
ret