Function at 0x1400be860
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x28]
sub rsp, 0x118
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp - 0x28], rax
xor ebx, ebx
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x28], r12
xorps xmm0, xmm0
mov qword [r11 - 0x30], r13
xor eax, eax
mov qword [r11 - 0x38], r14
mov r12, rcx
mov qword [r11 - 0x40], r15
lea rcx, str.windowscodecs.dll
xor r15b, r15b
mov dword [rbp - 0x80], ebx
movzx r13d, r9b
mov qword [rbp - 0x48], rax
mov esi, ebx
mov dword [rbp - 0x40], eax
mov r14d, ebx
mov qword [rsp + 0x78], rbx
movups xmmword [rbp - 0x68], xmm0
mov qword [rsp + 0x70], rbx
movups xmmword [rbp - 0x58], xmm0
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x60], rbx
mov qword [rbp - 0x78], rbx
mov dword [rbp - 0x70], edx
mov dword [rbp - 0x6c], r8d
call fcn.1400f9d00
mov rcx, rax
test rax, rax
jne 0x1400be93a
xor edx, edx
lea rcx, str.windowscodecs.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x1400be93a
xor edx, edx
lea rcx, str.windowscodecs.dll
mov r8d, 0xa00
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x1400becdf
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400becdf
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x1400becdf
cmp dword [rdx + rcx], 0x4550
jne 0x1400becdf
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1400becdf
nop dword [rax + rax]
cmp dword [rdx + 4], ebx
je 0x1400becdf
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.DllGetClassObject
call fcn.1400fa1a0
nop
test rax, rax
je 0x1400becdf
lea r8, [rsp + 0x40]
mov qword [rsp + 0x108], rdi
lea rdx, [0x1401ad590]
lea rcx, [0x1401ec4d8]
call qword [case.0x1400f654f.0]
mov edi, eax
test eax, eax
js 0x1400bea06
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
lea r8, [0x1401ad4c0]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f654f.0]
mov rcx, qword ds:[rsp + 0x40]
mov edi, eax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
test edi, edi
js 0x1400becd7
mov rcx, qword ds:[rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400becd7
mov rcx, qword [rsp + 0x70]
mov r8d, 0x80000000
mov rdx, r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400becd7
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, [0x1401ec4c8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400becd7
mov rcx, qword [rsp + 0x58]
mov r12d, 1
mov rdx, qword [rsp + 0x70]
mov r8d, r12d
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400f654f.0]
nop word [rax + rax]
test eax, eax
js 0x1400becd7
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x1400f654f.0]
nop
test eax, eax
js 0x1400becd7
cmp dword [rbp - 0x80], r12d
jb 0x1400becd7
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x50]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400becd7
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400becd7
test r13b, r13b
lea rax, [0x1401ec4b8]
lea rdi, [0x1401ec4e8]
cmovne rdi, rax
mov rax, qword [rbp - 0x38]
cmp rax, qword [rdi]
jne 0x1400beb48
mov rax, qword [rbp - 0x30]
cmp rax, qword [rdi + 8]
jne 0x1400beb48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
jmp 0x1400bebf1
mov rcx, qword ds:[rsp + 0x48]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400becd7
mov rcx, qword [rsp + 0x40]
xorps xmm0, xmm0
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x30], ebx
mov r8, rdi
movsd qword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov qword [rsp + 0x20], rbx
mov rax, qword [rax + 0x40]
call qword [case.0x1400f654f.0]
mov rcx, qword [rsp + 0x40]
test eax, eax
mov rax, qword [rcx]
jns 0x1400bebb8
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
jmp 0x1400becd7
mov rax, qword [rax]
lea r8, [rsp + 0x68]
lea rdx, [0x1401ad4b0]
call qword [case.0x1400f654f.0]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
mov eax, dword [rbp - 0x70]
xor ecx, ecx
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x6c]
neg eax
mov dword [rbp - 0x68], 0x28
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x5c], 0x200001
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea r9, [rsp + 0x78]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x68]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov rcx, qword ds:[rsp + 0x48]
mov rbx, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x58]
lea rdx, [rsp + 0x60]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400becd7
mov rcx, qword [rsp + 0x60]
mov r9d, dword [rbp - 0x6c]
mov r8d, dword [rbp - 0x70]
mov dword [rsp + 0x20], 3
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x40]
mov rdx, qword [rsp + 0x68]
call qword [case.0x1400f654f.0]
test eax, eax
js 0x1400becd7
mov r8d, dword [rbp - 0x70]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
mov r9d, dword [rbp - 0x6c]
imul r9d, r8d
lea r8d, [r8*4]
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x78]
mov rax, qword [rcx]
shl r9d, 2
mov rax, qword [rax + 0x38]
call qword [case.0x1400f654f.0]
test eax, eax
movzx r15d, r15b
cmovns r15d, r12d
mov rdi, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x60]
mov r13, qword [rsp + 0xf8]
mov r12, qword [rsp + 0x100]
test rcx, rcx
je 0x1400bed06
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
test r14, r14
je 0x1400bed14
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov r14, qword ss:[rsp + 0xf0]
test rsi, rsi
je 0x1400bed30
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword ds:[rsp + 0x68]
mov rsi, qword [rsp + 0x110]
test rcx, rcx
je 0x1400bed52
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400bed69
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400bed86
mov rax, qword ds:[rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400bed9d
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f654f.0]
test r15b, r15b
mov r15, qword [rsp + 0xe8]
je 0x1400bedaf
mov rax, rbx
jmp 0x1400bedbf
test rbx, rbx
je 0x1400bedbd
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
mov rcx, qword [rbp - 0x28]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x118
pop rbx
pop rbp
ret