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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa8]
sub rsp, 0x1a8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov r13, rdx
mov rdi, rcx
or r14d, 0xffffffff
cmp byte [rcx + 0x50], 0
je 0x14005fea8
xor edx, edx
call fcn.140061e20
mov dword [rbp + 0x100], eax
jmp 0x14005feaf
mov dword [rbp + 0x100], r14d
cmp byte [rdi + 0xb4], 0
je 0x14005fec5
cmp dword [rdi + 0xb0], 2
jne 0x14005fec5
mov dl, 1
jmp 0x14005fec7
xor edx, edx
mov rcx, rdi
call fcn.140061e20
movsxd rsi, eax
mov ebx, dword [rdi + 0xb0]
mov rax, qword [rdi + 0x80]
mov qword [rsp + 0x28], rax
mov eax, dword [rdi + 0x88]
mov dword [rsp + 0x20], eax
mov eax, dword [rdi + 0x8c]
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0x90]
mov dword [rsp + 0x34], eax
mov eax, dword [rdi + 0x94]
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x40]
call fcn.140057bc0
nop
cmp dword [rdi + 0xb0], 7
jne 0x14005ff31
mov rdx, qword [rdi + 0x98]
lea rcx, [rsp + 0x40]
call fcn.140058ab0
mov eax, dword [rdi + 0xb0]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rdi + 0xb4]
mov byte [rbp + 0xf0], al
mov rdx, r13
mov rcx, rdi
call fcn.14005fb20
cmp byte [rdi + 0x50], 0
je 0x14005ff81
cmp ebx, 3
jne 0x14005ff81
mov edx, esi
lea rcx, [rdi + 0x10]
call fcn.140058e80
cmp dword [rax + 4], 0xffffffff
jne 0x14005ff81
mov edx, esi
lea rcx, [rdi + 0x10]
call fcn.140058e80
mov dword [rax + 4], 0xfffffffd
lea r12, [rdi + 0x10]
mov rdx, qword [r12]
mov rax, qword [rdx + 0x10]
lea rcx, [rax + rsi*8]
mov eax, dword [rcx + rdx]
mov dword [rdi + 0x1c], eax
mov eax, dword [rdi + 0xb0]
mov dword [rsp + 0x58], eax
xor ebx, ebx
cmp eax, 9
jne 0x1400602ba
mov byte [rdi + 0x49], bl
mov eax, dword [rdi + 0xa4]
cmp eax, 0x401
jne 0x14005ffe5
lea r8, [r13 + 8]
lea rdx, [r13 + 0x10]
mov r9d, esi
mov rcx, qword [r13]
call fcn.1400594d0
mov rdx, r13
mov rcx, r13
call fcn.140059080
mov dword [r13 + 0x50], 0x7fffffff
jmp 0x14005fff1
test eax, eax
jne 0x14005fff1
mov rcx, r13
call fcn.14005ac60
cmp dword [rdi + 0xa0], ebx
jne 0x140060001
mov rcx, r13
call fcn.14005f240
mov byte [rdi + 0xb4], bl
mov eax, dword [rdi + 0xa0]
test eax, eax
jne 0x140060016
mov r15d, ebx
jmp 0x14006001a
lea r15d, [rax - 1]
mov dword [rbp + 0x108], r15d
mov esi, dword [rdi + 0xa4]
cmp esi, 0x401
jne 0x140060033
mov esi, ebx
jmp 0x140060038
sub esi, r15d
dec esi
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.140057870
nop
test esi, esi
jle 0x14006010f
mov r12, qword [rsp + 0x28]
mov r13d, dword [rsp + 0x20]
mov r14d, dword [rsp + 0x30]
mov r15d, dword [rsp + 0x34]
mov qword [rdi + 0x80], r12
mov dword [rdi + 0x88], r13d
mov dword [rdi + 0x8c], r14d
mov dword [rdi + 0x90], r15d
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x94], eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 0x98]
call fcn.140058ab0
mov qword [rdi + 0xa0], rbx
mov eax, dword [rsp + 0x3c]
mov dword [rdi + 0xb0], eax
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.140057870
nop
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14005fb20
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x20]
call fcn.14005a370
lea rcx, [rbp - 0x20]
call fcn.14005f240
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call fcn.140058810
nop
lea rcx, [rbp - 0x20]
call fcn.140058040
sub rsi, 1
jne 0x140060061
or r14d, 0xffffffff
mov r15d, dword [rbp + 0x108]
lea r12, [rdi + 0x10]
mov r13, qword [rbp + 0xf8]
test r15d, r15d
jle 0x14006027a
mov r12, qword [rsp + 0x28]
mov r13d, dword [rsp + 0x20]
mov qword [rdi + 0x80], r12
mov dword [rdi + 0x88], r13d
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x8c], eax
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0x90], eax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x94], eax
mov rsi, qword [rdi + 0x98]
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x10], eax
mov rax, qword [rsi]
cmp qword [rsp + 0x40], rax
je 0x1400601b4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140057790
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsi]
mov qword [rsp + 0x60], rcx
mov qword [rsi], rax
mov eax, dword [rcx]
test eax, eax
je 0x1400601a6
cmp eax, 0xffffffff
je 0x1400601b4
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400601b4
mov rcx, qword [rsp + 0x60]
mov edx, 4
lea r8d, [rdx + 4]
call fcn.1400397e0
movzx eax, byte [rsp + 0x54]
mov byte [rsi + 0x14], al
mov rax, qword [rsi + 8]
cmp qword [rsp + 0x48], rax
je 0x140060217
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140057790
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x28], rcx
mov qword [rsi + 8], rax
mov eax, dword [rcx]
test eax, eax
je 0x140060209
cmp eax, 0xffffffff
je 0x140060217
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140060217
mov rcx, qword [rsp + 0x28]
mov edx, 4
lea r8d, [rdx + 4]
call fcn.1400397e0
mov qword [rdi + 0xa0], rbx
mov eax, dword [rsp + 0x3c]
mov dword [rdi + 0xb0], eax
mov rdx, rdi
lea rcx, [rbp + 0x40]
call fcn.140057870
nop
lea rdx, [rbp + 0x40]
mov rcx, rdi
call fcn.14005fb20
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x40]
call fcn.14005a370
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140058810
nop
lea rcx, [rbp + 0x40]
call fcn.140058040
sub r15, 1
jne 0x140060122
lea r12, [rdi + 0x10]
mov r13, qword [rbp + 0xf8]
mov rdx, r13
lea rcx, [rbp - 0x80]
call fcn.14005a370
lea rdx, [rbp - 0x80]
mov rcx, r13
call fcn.140058810
mov rcx, rdi
call fcn.14005cdd0
mov dword [rdi + 0xb0], eax
movzx eax, byte [rbp + 0xf0]
mov byte [rdi + 0xb4], al
lea rcx, [rbp - 0x80]
call fcn.140058040
mov eax, dword [rsp + 0x58]
cmp byte [rdi + 0x50], 0
je 0x14006039d
cmp eax, 9
jne 0x140060381
mov rax, qword [r12]
cmp dword [rax], 1
jbe 0x140060310
mov r8d, dword [rax + 8]
and r8d, 0x7fffffff
jne 0x1400602fc
lea r9d, [r8 + 2]
xor r8d, r8d
mov edx, 8
mov ecx, edx
call fcn.1400396b0
mov qword [r12], rax
jmp 0x140060310
mov dword [rbp + 0x108], ebx
mov r9d, ebx
mov edx, dword [rax + 4]
mov rcx, r12
call fcn.140060ab0
mov rcx, qword [r12]
movsxd r15, dword [rbp + 0x100]
lea rsi, [r15*8]
add rcx, qword [rcx + 0x10]
cmp dword [rcx + rsi + 4], 0xffffffff
jne 0x140060388
mov rax, qword [r12]
cmp dword [rax], 1
jbe 0x14006036f
mov r8d, dword [rax + 8]
and r8d, 0x7fffffff
jne 0x14006035d
lea r9d, [r8 + 2]
xor r8d, r8d
mov edx, 8
mov ecx, edx
call fcn.1400396b0
mov qword [r12], rax
jmp 0x14006036f
mov dword [rsp + 0x20], ebx
mov r9d, ebx
mov edx, dword [rax + 4]
mov rcx, r12
call fcn.140060ab0
mov rcx, qword [r12]
add rcx, qword [rcx + 0x10]
mov dword [rcx + rsi + 4], 0xfffffffd
jmp 0x140060388
mov r15d, dword [rbp + 0x100]
mov rdx, qword [r12]
movsxd rcx, r15d
mov rax, qword [rdx + 0x10]
lea rcx, [rax + rcx*8]
mov eax, dword [rcx + rdx]
mov dword [rdi + 0x1c], eax
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1400603be
cmp eax, 0xffffffff
je 0x1400603cc
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400603cc
mov rcx, qword [rsp + 0x48]
mov edx, 4
lea r8d, [rdx + 4]
call fcn.1400397e0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400603ec
cmp eax, 0xffffffff
je 0x1400603fa
lock xadd dword [rcx], r14d
cmp r14d, 1
jne 0x1400603fa
mov rcx, qword [rsp + 0x40]
mov edx, 4
lea r8d, [rdx + 4]
call fcn.1400397e0
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret