Function at 0x10005f550
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.10005cd18
test byte [rbp + 0x60], 1
je 0x10005f5ad
lea r8, [0x1000071a8]
lea rcx, [0x100007030]
mov edx, 0x830
call fcn.10009a050
lea rcx, [0x1000049e8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
jne 0x10005f606
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 0x10005f7b2
test byte [rcx + 0x1c], 1
je 0x10005f7b2
cmp byte [rcx + 0x19], 2
jb 0x10005f7b2
lea edx, [rdi + 0x4c]
jmp 0x10005f66b
lea rdx, [0x1000071e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x10005f683
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 0x10005f7b2
test byte [rcx + 0x1c], 1
je 0x10005f7b2
cmp byte [rcx + 0x19], 2
jb 0x10005f7b2
lea edx, [rdi + 0x4d]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c88]
mov r9d, ebx
call fcn.10001c878
jmp 0x10005f7b2
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 0x10005f6dc
test byte [rcx + 0x1c], 1
je 0x10005f6dc
cmp byte [rcx + 0x19], 4
jb 0x10005f6dc
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x4e]
lea r8, [0x100003c88]
mov qword [rsp + 0x20], r12
call fcn.10001d9dc
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea rax, [0x10005f310]
lea r9, [rsp + 0x40]
lea rdx, [0x100004a40]
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 0x10005f795
test byte [rcx + 0x1c], 1
je 0x10005f795
cmp byte [rcx + 0x19], 2
jb 0x10005f795
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, [0x100003c88]
call fcn.10001e82c
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 0x10005f7c8
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