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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xf0
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
test r8d, r8d
je 0x100065fc7
test rcx, rcx
je 0x100065fc7
mov r10, qword [0x1000acdf8]
mov r11, qword [0x1000ace00]
test r10, r10
jne 0x100065ca5
test r11, r11
je 0x100065f79
cmp byte [0x1000acc3a], 0
jne 0x100065f79
cmp qword [rcx + 4], 0
mov rax, qword [0x1000acde0]
mov qword [rcx + 0xc], rax
jne 0x100065ccf
mov rax, qword [0x1000acdd8]
mov qword [rcx + 4], rax
mov rcx, qword [rcx + 4]
test rcx, rcx
je 0x100065cf5
call qword [sym.imp.USER32.dll_IsIconic]
mov r10, qword [0x1000acdf8]
mov r11, qword [0x1000ace00]
test eax, eax
jne 0x100065cf5
bts dword [rbx + 0x14], 0xc
xor eax, eax
mov dword [rsp + 0x110], eax
test r10, r10
je 0x100065d40
and dword [rsp + 0x40], eax
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x110]
xor r8d, r8d
mov rcx, rbx
call r10
mov rdx, qword [rsp + 0x120]
mov r11d, eax
test rdx, rdx
je 0x100065f45
cmp dword [rsp + 0x40], 0
setne cl
mov byte [rdx], cl
jmp 0x100065f45
test r11, r11
je 0x100065f64
mov rax, qword [rbx + 4]
and dword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rbx + 0xc]
lea rdx, [rsp + 0x110]
mov qword [rsp + 0x60], rax
mov eax, dword [rbx + 0x14]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x68], eax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x50], 0xa0
mov dword [rsp + 0x6c], eax
mov rax, qword [rbx + 0x1c]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 0x24]
mov qword [rsp + 0x78], rax
mov rax, qword [rbx + 0x2c]
mov qword [rsp + 0x80], rax
mov rax, qword [rbx + 0x34]
mov qword [rsp + 0x88], rax
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x90], eax
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x98], rax
mov eax, dword [rbx + 0x48]
mov dword [rsp + 0xa0], eax
mov rax, qword [rbx + 0x5c]
mov qword [rsp + 0xa8], rax
mov rax, qword [rbx + 0x64]
mov qword [rsp + 0xb0], rax
mov rax, qword [rbx + 0x6c]
mov qword [rsp + 0xb8], rax
mov rax, qword [rbx + 0x74]
mov qword [rsp + 0xc0], rax
mov rax, qword [rbx + 0x7c]
mov qword [rsp + 0xc8], rax
mov rax, qword [rbx + 0x84]
mov qword [rsp + 0xd0], rax
mov rax, qword [rbx + 0x8c]
mov qword [rsp + 0xd8], rax
mov rax, qword [rbx + 0x94]
mov qword [rsp + 0xe0], rax
mov eax, dword [rbx + 0x9c]
mov dword [rsp + 0xe8], eax
call r11
mov rcx, qword [rsp + 0x120]
mov r11d, eax
test rcx, rcx
je 0x100065e65
cmp dword [rsp + 0x40], 0
setne al
mov byte [rcx], al
mov rax, qword [rsp + 0x58]
mov qword [rbx + 4], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0xc], rax
mov eax, dword [rsp + 0x68]
mov dword [rbx + 0x14], eax
mov eax, dword [rsp + 0x6c]
mov dword [rbx + 0x18], eax
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x1c], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x24], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x2c], rax
mov rax, qword [rsp + 0x88]
mov qword [rbx + 0x34], rax
mov eax, dword [rsp + 0x90]
mov dword [rbx + 0x3c], eax
mov rax, qword [rsp + 0x98]
mov qword [rbx + 0x40], rax
mov eax, dword [rsp + 0xa0]
mov dword [rbx + 0x48], eax
mov rax, qword [rsp + 0xa8]
mov qword [rbx + 0x5c], rax
mov rax, qword [rsp + 0xb0]
mov qword [rbx + 0x64], rax
mov rax, qword [rsp + 0xb8]
mov qword [rbx + 0x6c], rax
mov rax, qword [rsp + 0xc0]
mov qword [rbx + 0x74], rax
mov rax, qword [rsp + 0xc8]
mov qword [rbx + 0x7c], rax
mov rax, qword [rsp + 0xd0]
mov qword [rbx + 0x84], rax
mov rax, qword [rsp + 0xd8]
mov qword [rbx + 0x8c], rax
mov rax, qword [rsp + 0xe0]
mov qword [rbx + 0x94], rax
mov eax, dword [rsp + 0xe8]
mov dword [rbx + 0x9c], eax
test r11d, r11d
je 0x100065f4f
or ebx, 0xffffffff
jmp 0x100065fb5
mov eax, dword [rsp + 0x110]
cmp eax, 1
je 0x100065f60
cmp eax, 2
jne 0x100065f64
mov ebx, eax
jmp 0x100065fb5
or ebx, 0xffffffff
mov ecx, ebx
sub ecx, eax
js 0x100065fb5
cmp ecx, edi
jge 0x100065fb5
movsxd rax, ecx
mov ebx, dword [rsi + rax*4]
jmp 0x100065fb5
mov rdx, qword [rcx + 4]
movzx ecx, word [rsp + 0x128]
lea r8, [0x1000661a4]
test rdx, rdx
cmove rdx, qword [0x1000acdd8]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], r9d
mov r9d, 2
mov byte [rsp + 0x20], 0
call fcn.1000665ac
mov rbx, rax
mov rax, qword [0x1000ace18]
test rax, rax
je 0x100065fc3
call rax
mov eax, ebx
jmp 0x100065fca
or eax, 0xffffffff
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret