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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rdi, qword [rcx + 0x10]
xor r15d, r15d
mov r12, r9
mov r13, r8
mov r14d, edx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
test rdi, rdi
jne 0x18006a7ba
call fcn.1800335e0
mov rdi, rax
mov qword [rsi + 0x10], rax
test rax, rax
je 0x18006a7a4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
mov dword [rsp + 0x20], r15d
call fcn.180042780
cmp qword [rsi + 0x1c0], r15
jne 0x18006a7ba
mov rax, qword [rsi]
test byte [rax + 0x4c], 8
jne 0x18006a7ba
mov byte [rsi + 0x23], 1
mov rbp, qword [rdi + 0x30]
mov eax, dword [rsi + 0x50]
movsxd rbx, dword [rbp + 0x78]
dec eax
mov dword [rsp + 0x30], eax
lea eax, [rbx + 1]
mov dword [rbp + 0x78], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x18006a7fa
mov rdx, qword [rbp + 0x80]
mov rcx, qword [rbp]
lea eax, [rbx + rbx + 1]
movsxd r8, eax
shl r8, 2
call fcn.18003bc90
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x80]
or edx, 0xffffffff
test rcx, rcx
je 0x18006a80c
mov dword [rcx + rbx*4], edx
mov ecx, edx
sub ecx, ebx
cmp dword [rsp + 0xd8], r15d
mov dword [rsp + 0xa0], ecx
jge 0x18006a843
mov rax, qword [rsp + 0xc0]
mov r9d, ecx
mov edx, 0x87
movzx r8d, byte [rax + 0x2c]
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.180042780
mov rax, qword [rsp + 0xc0]
mov r15d, dword [rsp + 0xd0]
xor ebx, ebx
cmp dword [rax + 0x28], ebx
jle 0x18006a90b
mov rbp, qword [rsp + 0xc8]
mov r14d, dword [rsp + 0xa0]
mov rsi, rax
nop word [rax + rax]
mov eax, dword [rbp]
movsxd r12, dword [rdi + 0x3c]
lea r13d, [r15 + rax + 1]
mov rax, qword [rdi + 0x30]
cmp dword [rax + 0x60], r12d
jg 0x18006a8a7
mov edx, 1
mov rcx, rdi
call fcn.18003af10
test eax, eax
jne 0x18006a8db
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [r12 + r12*2]
mov byte [rax + rcx*8], 0x4c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], 0
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
inc ebx
add rbp, 4
cmp ebx, dword [rsi + 0x28]
jl 0x18006a880
mov rsi, qword [rsp + 0x40]
mov r14d, dword [rsp + 0xa8]
mov r12, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xc0]
cmp dword [rsp + 0xe0], 0
jne 0x18006aeea
test r12, r12
jne 0x18006aaaa
movzx eax, byte [rsi + 0x1f]
test al, al
jne 0x18006a932
inc dword [rsi + 0x54]
mov ebx, dword [rsi + 0x54]
jmp 0x18006a93e
dec al
movzx eax, al
mov byte [rsi + 0x1f], al
mov ebx, dword [rsi + rax*4 + 0x24]
mov rax, qword [rsp + 0xc8]
mov r9d, ebx
mov edx, 0x22
mov eax, dword [rax]
mov rcx, rdi
mov dword [rsp + 0x20], 0
lea r8d, [rax + r15 + 1]
call fcn.180042780
xor r9d, r9d
mov r8d, ebx
lea edx, [r9 + 0x26]
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.180042780
mov ebp, eax
mov rax, qword [rsp + 0xc0]
cmp r13, qword [rax]
jne 0x18006a9cb
cmp dword [rsp + 0xd8], 1
jne 0x18006a9cb
mov r9d, dword [rsp + 0xa0]
mov r8d, r15d
mov edx, 0x4f
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.180042780
mov r11, qword [rdi + 8]
test r11, r11
je 0x18006a9cb
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [r11 + rcx*8 - 0x15], 0x90
mov r12d, dword [rsp + 0x30]
mov r9, r13
mov r8d, r14d
mov rcx, rsi
mov edx, r12d
mov dword [rsp + 0x20], 0x36
call fcn.18006a620
xor r9d, r9d
mov r8d, r12d
lea edx, [r9 + 0x46]
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.180042780
mov r15d, dword [rsp + 0xa0]
xor r13d, r13d
lea edx, [r13 + 0x10]
xor r8d, r8d
mov rcx, rdi
mov r9d, r15d
mov dword [rsp + 0x20], r13d
call fcn.180042780
mov edx, dword [rdi + 0x3c]
lea eax, [rdx - 2]
cmp edx, eax
jbe 0x18006aa37
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov edx, dword [rdi + 0x3c]
cmp edx, ebp
jbe 0x18006aa57
mov rax, qword [rdi + 8]
lea rcx, [rbp + rbp*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
test ebx, ebx
je 0x18006aefa
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x18006aefa
mov ecx, r13d
lea rax, [rsi + 0x88]
cmp dword [rax + 0xc], ebx
je 0x18006aaa1
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18006aa82
movzx eax, dl
mov dword [rsi + rax*4 + 0x24], ebx
inc byte [rsi + 0x1f]
jmp 0x18006aefa
mov byte [rax + 6], 1
jmp 0x18006aefa
movsxd r13, dword [rax + 0x28]
mov ecx, dword [rsi + 0x44]
mov ebp, dword [rsi + 0x48]
cmp r13d, ecx
mov dword [rsp + 0xe0], ebp
jg 0x18006aad0
lea eax, [rbp + r13]
sub ecx, r13d
mov dword [rsi + 0x48], eax
mov dword [rsi + 0x44], ecx
jmp 0x18006aae3
mov eax, dword [rsi + 0x54]
lea ebp, [rax + 1]
add eax, r13d
mov dword [rsp + 0xe0], ebp
mov dword [rsi + 0x54], eax
movzx eax, byte [rsi + 0x1f]
test al, al
jne 0x18006aaf3
inc dword [rsi + 0x54]
mov eax, dword [rsi + 0x54]
jmp 0x18006aaff
dec al
movzx eax, al
mov byte [rsi + 0x1f], al
mov eax, dword [rsi + rax*4 + 0x24]
mov r9d, dword [r12 + 0x50]
mov r8d, dword [rsp + 0x30]
mov edx, 0x36
mov rcx, rdi
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], r14d
call fcn.180042780
mov rdx, r12
mov rcx, rsi
call fcn.180068e00
xor ebx, ebx
mov r14, r13
test r13d, r13d
jle 0x18006abb4
mov rsi, qword [rsp + 0xc8]
mov eax, dword [rsi + rbx*4]
movsxd r12, dword [rdi + 0x3c]
lea r13d, [rax + r15 + 1]
mov rax, qword [rdi + 0x30]
cmp dword [rax + 0x60], r12d
jg 0x18006ab67
mov edx, 1
mov rcx, rdi
call fcn.18003af10
test eax, eax
jne 0x18006ab9a
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [r12 + r12*2]
mov byte [rax + rcx*8], 0x21
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], 0
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
inc rbx
inc ebp
cmp rbx, r14
jl 0x18006ab40
mov rsi, qword [rsp + 0x40]
mov r12, qword [rsp + 0xb8]
mov r13d, r14d
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb0]
cmp rdx, qword [rax]
jne 0x18006ad01
cmp dword [rsp + 0xd8], 1
jne 0x18006ad01
mov eax, dword [rdi + 0x3c]
xor ebx, ebx
lea r15d, [rax + r13 + 1]
test r13d, r13d
jle 0x18006acad
mov esi, dword [rsp + 0xd0]
nop word [rax + rax]
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + rbx*4]
lea r13d, [rax + rsi + 1]
mov rax, qword [r12 + 8]
movsxd r12, dword [rdi + 0x3c]
movsx ecx, word [rax + rbx*2]
mov rax, qword [rdi + 0x30]
cmp cx, word [rdx + 0x40]
lea ebp, [rcx + rsi + 1]
cmove ebp, esi
cmp dword [rax + 0x60], r12d
jg 0x18006ac43
mov edx, 1
mov rcx, rdi
call fcn.18003af10
test eax, eax
jne 0x18006ac73
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [r12 + r12*2]
mov byte [rax + rcx*8], 0x4e
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x18006ac89
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x10
mov r12, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
inc rbx
cmp rbx, r14
jl 0x18006ac00
mov rsi, qword [rsp + 0x40]
mov r13d, r14d
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x18006accb
mov edx, 1
mov rcx, rdi
call fcn.18003af10
test eax, eax
jne 0x18006ad01
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
mov r15d, dword [rsp + 0xa0]
lea rcx, [rbx + rbx*2]
xor edx, edx
mov byte [rax + rcx*8], 0x10
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
jmp 0x18006ad09
mov r15d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xb8]
mov rcx, rdi
call fcn.180031d70
mov rcx, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rcx + 0x60], ebx
mov rbp, rax
jg 0x18006ad4e
mov edx, 1
mov rcx, rdi
call fcn.18003af10
test eax, eax
je 0x18006ad4e
mov r12d, dword [rsp + 0x34]
mov r14d, dword [rsp + 0xe0]
mov ebx, 1
jmp 0x18006ad8c
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov r14d, dword [rsp + 0xe0]
mov r12d, dword [rsp + 0x34]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x31
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
mov r9d, r13d
mov r8, rbp
mov edx, ebx
mov rcx, rdi
call fcn.18004d500
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x18006adc1
mov edx, 1
mov rcx, rdi
call fcn.18003af10
test eax, eax
je 0x18006adc1
mov ebx, 1
jmp 0x18006adf5
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov edx, dword [rsp + 0x30]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x45
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
mov rbp, qword [rdi + 8]
mov rcx, qword [rdi]
test rbp, rbp
je 0x18006ae40
cmp byte [rcx + 0x51], 0
jne 0x18006ae40
test ebx, ebx
jns 0x18006ae10
mov ebx, dword [rdi + 0x3c]
dec ebx
movsxd rax, ebx
lea rbx, [rax + rax*2]
movsx edx, byte [rbp + rbx*8 + 1]
mov r8, qword [rbp + rbx*8 + 0x10]
call fcn.180046990
xor r10d, r10d
mov byte [rbp + rbx*8 + 1], 0xf2
mov qword [rbp + rbx*8 + 0x10], r10
mov dword [rbp + rbx*8 + 0x10], r10d
jmp 0x18006ae4f
xor r8d, r8d
lea edx, [r8 - 0xe]
call fcn.180046990
xor r10d, r10d
test r12d, r12d
je 0x18006ae89
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x18006ae89
mov ecx, r10d
lea rax, [rsi + 0x88]
cmp dword [rax + 0xc], r12d
je 0x18006ae85
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18006ae67
movzx eax, dl
mov dword [rsi + rax*4 + 0x24], r12d
inc byte [rsi + 0x1f]
jmp 0x18006ae89
mov byte [rax + 6], 1
lea r9d, [r14 + r13 - 1]
lea rcx, [rsi + 0x94]
mov r8d, 0xa
nop dword [rax + rax]
mov edx, dword [rcx]
cmp edx, r14d
jl 0x18006aecb
cmp edx, r9d
jg 0x18006aecb
cmp byte [rcx - 6], 0
je 0x18006aec8
movzx eax, byte [rsi + 0x1f]
cmp al, 8
jae 0x18006aec4
movzx eax, al
mov dword [rsi + rax*4 + 0x24], edx
inc byte [rsi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r10d
add rcx, 0x14
sub r8, 1
jne 0x18006aea0
cmp r13d, dword [rsi + 0x44]
mov r12d, dword [rsp + 0x30]
jle 0x18006aef7
mov dword [rsi + 0x44], r13d
mov dword [rsi + 0x48], r14d
jmp 0x18006aef7
mov r15d, dword [rsp + 0xa0]
mov r12d, dword [rsp + 0x30]
xor r13d, r13d
mov rcx, qword [rsp + 0xc0]
movzx edx, byte [rcx + 0x2c]
test dl, dl
jne 0x18006b017
mov rax, qword [rsi]
bt dword [rax + 0x2c], 0x18
jb 0x18006b017
mov rcx, qword [rsi + 0x1c0]
test rcx, rcx
jne 0x18006b00f
cmp byte [rsi + 0x20], cl
jne 0x18006b00f
mov rbp, qword [rsi + 0x10]
test rbp, rbp
jne 0x18006af83
mov rcx, rsi
call fcn.1800335e0
mov rbp, rax
mov qword [rsi + 0x10], rax
test rax, rax
je 0x18006af6a
xor r9d, r9d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
mov dword [rsp + 0x20], r13d
call fcn.180042780
mov rcx, qword [rsi + 0x1c0]
test rcx, rcx
jne 0x18006af86
mov rax, qword [rsi]
test byte [rax + 0x4c], 8
jne 0x18006af83
mov byte [rsi + 0x23], 1
test rcx, rcx
cmovne rsi, rcx
mov edx, 0x18
mov r8d, 0x313
lea r9d, [rdx - 0x16]
mov rcx, rbp
mov dword [rsp + 0x20], r13d
mov byte [rsi + 0x21], 1
call fcn.180042780
mov rsi, qword [rbp + 8]
mov rcx, qword [rbp]
test rsi, rsi
je 0x18006afe7
cmp byte [rcx + 0x51], 0
jne 0x18006afe7
test eax, eax
jns 0x18006afc6
mov eax, dword [rbp + 0x3c]
dec eax
cdqe
lea rbx, [rax + rax*2]
movsx edx, byte [rsi + rbx*8 + 1]
mov r8, qword [rsi + rbx*8 + 0x10]
call fcn.180046990
mov qword [rsi + rbx*8 + 0x10], r13
mov byte [rsi + rbx*8 + 1], 0
jmp 0x18006aff3
xor r8d, r8d
lea edx, [r8 - 2]
call fcn.180046990
mov rdx, qword [rbp + 8]
test rdx, rdx
je 0x18006b085
movsxd rax, dword [rbp + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 4
jmp 0x18006b085
mov rcx, qword [rsp + 0xc0]
mov ebp, dword [rsp + 0xd8]
test ebp, ebp
jle 0x18006b038
test dl, dl
jne 0x18006b038
mov rax, qword [rsi + 0x1c0]
test rax, rax
cmovne rsi, rax
mov byte [rsi + 0x21], 1
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
movzx esi, byte [rcx + 0x2c]
cmp dword [rax + 0x60], ebx
jg 0x18006b05a
mov edx, 1
mov rcx, rdi
call fcn.18003af10
test eax, eax
jne 0x18006b085
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x86
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov byte [rax + rcx*8 + 1], 0
mov r9, qword [rdi + 0x30]
or eax, 0xffffffff
sub eax, r15d
js 0x18006b0a7
mov r8, qword [r9 + 0x80]
test r8, r8
je 0x18006b0a7
movsxd rcx, eax
mov eax, dword [rdi + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rdi + 0x3c]
dec eax
mov dword [r9 + 0x64], eax
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x18006b0ce
mov edx, 1
mov rcx, rdi
call fcn.18003af10
test eax, eax
jne 0x18006b0fb
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x3d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov byte [rax + rcx*8 + 1], 0
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret