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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor eax, eax
mov r12, rdx
mov rbp, rcx
lea edx, [rax + 0xc]
mov dword [r11 + 0x20], eax
mov dword [r11 + 0x24], eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
call fcn.10005ca68
test byte [rbp + 0x60], 1
je 0x10005f2fd
lea r8, [0x100007218]
lea rcx, [0x1000070a0]
mov edx, 0x830
call fcn.100099ad8
lea rcx, [0x100004a48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
jne 0x10005f356
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x10005f502
test byte [rcx + 0x1c], 1
je 0x10005f502
cmp byte [rcx + 0x19], 2
jb 0x10005f502
lea edx, [rdi + 0x4c]
jmp 0x10005f3bb
lea rdx, [0x100007250]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x10005f3d3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x10005f502
test byte [rcx + 0x1c], 1
je 0x10005f502
cmp byte [rcx + 0x19], 2
jb 0x10005f502
lea edx, [rdi + 0x4d]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov r9d, ebx
call fcn.10001c7dc
jmp 0x10005f502
xor eax, eax
mov r9d, 0x2000
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov byte [rsp + 0x40], 1
mov byte [rsp + 0x41], al
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x48], eax
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x10005f42c
test byte [rcx + 0x1c], 1
je 0x10005f42c
cmp byte [rcx + 0x19], 4
jb 0x10005f42c
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x4e]
lea r8, [0x100003cc8]
mov qword [rsp + 0x20], r12
call fcn.10001d8f8
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea rax, [0x10005f060]
lea r9, [rsp + 0x40]
lea rdx, [0x100004aa0]
mov r8b, 1
mov rcx, r12
mov qword [rsp + 0x20], rax
mov qword [0x100166650], rbp
call rbx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10005f4e5
test byte [rcx + 0x1c], 1
je 0x10005f4e5
cmp byte [rcx + 0x19], 2
jb 0x10005f4e5
mov eax, dword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
mov r9, r12
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x3c], eax
movabs rax, 0x346dc5d63886594b
sub rdx, qword [rsp + 0x38]
mul rdx
mov r8, rdx
mov edx, 0x4f
shr r8, 0xb
mov qword [rsp + 0x20], r8
lea r8, [0x100003cc8]
call fcn.100059300
mov rcx, qword [rbp + 0xa8]
add rcx, 8
mov rax, qword [rcx]
call qword [rax + 0x10]
xor ebx, ebx
mov ecx, 0x8078001d
test al, al
cmovne ebx, ecx
and qword [0x100166650], 0
test rdi, rdi
je 0x10005f518
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret