Function at 0x1400536c4
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xab0]
sub rsp, 0xbb0
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0xaa0], rax
xor ebx, ebx
mov qword [rbp - 0x78], rcx
mov r15d, r8d
mov rsi, rdx
cmp dword [rcx + 0x138], ebx
je 0x14005370f
xor eax, eax
jmp 0x140053ecc
lea r12, [rcx + 0x120]
movabs r14, 0x6a63bd81a98ef607
mov rdi, qword [r12]
mov rax, r14
mov rcx, qword [r12 + 8]
mov r13, rbx
sub rcx, rdi
imul rcx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
jle 0x1400537a3
mov r14, rbx
lea rcx, [r14 + 0x10]
mov rdx, rsi
add rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140053816
mov rdi, qword [r12]
movabs rax, 0x6a63bd81a98ef607
mov rcx, qword [r12 + 8]
inc r13
sub rcx, rdi
add r14, 0x268
imul rcx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r13, rdx
jl 0x14005374b
movabs r14, 0x6a63bd81a98ef607
xor edx, edx
mov dword [rbp - 0x70], r15d
mov r8d, 0x260
lea rcx, [rbp - 0x68]
call fcn.14012d4b0
xor edx, edx
lea rcx, [rbp + 0x260]
lea r8d, [rdx + 0x40]
call fcn.14012d4b0
mov rcx, qword [rbp - 0x78]
lea r9, [rbp + 0x260]
lea r8, [rbp + 0x1a8]
mov rdx, rsi
call fcn.1400510c4
test eax, eax
jne 0x140053831
or r15, 0xffffffffffffffff
mov r14, r15
inc r14
cmp word [rsi + r14*2], bx
jne 0x1400537ef
add r14, 0x64
mov edx, 2
mov rcx, r14
call fcn.140113de8
lea r8, str.Cant_retrieve_font_family_from_file:_n
jmp 0x140053b96
mov ecx, 1
test r15d, r15d
je 0x14005382a
cmp dword [rdi + r14], ebx
jne 0x14005382a
mov dword [rdi + r14], ecx
mov eax, ecx
jmp 0x140053ecc
mov ecx, 1
cmp word [rbp + 0x1a8], cx
jne 0x140053848
cmp word [rbp + 0x1aa], bx
je 0x14005382a
mov rdi, qword [r12]
or r15, 0xffffffffffffffff
mov rcx, qword [r12 + 8]
mov rax, r14
sub rcx, rdi
mov dword [rbp - 0x80], r15d
imul rcx
mov r13d, ebx
mov qword [rsp + 0x78], rbx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
jle 0x140053902
mov r14, rbx
lea rcx, [r14 + 0x218]
add rcx, rdi
lea rdx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140053994
lea rcx, [r14 + 0x218]
add rcx, rdi
lea rdx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140053994
mov r8, qword [rsp + 0x78]
movabs rax, 0x6a63bd81a98ef607
mov rdi, qword [r12]
inc r8
mov rcx, qword [r12 + 8]
add r14, 0x268
sub rcx, rdi
mov qword [rsp + 0x78], r8
imul rcx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jl 0x140053884
xor edx, edx
lea rcx, [rbp + 0x200]
lea r8d, [rdx + 0x5c]
call fcn.14012d4b0
lea rdx, [rbp + 0x1a8]
mov word [rbp + 0x218], 4
lea rcx, [rbp + 0x21c]
mov byte [rbp + 0x21b], 0x31
call fcn.14000129c
lea rcx, [rbp + 0x200]
mov dword [rbp + 0x200], 0xa
mov dword [rbp + 0x210], 0x190
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [rsp + 0x78], ebx
mov r14, rax
test rax, rax
je 0x1400539d4
mov rdx, rax
xor ecx, ecx
call fcn.140052330
mov rdi, rax
test rax, rax
je 0x1400539c1
mov rcx, qword [rax + 0xc8]
lea rdx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400539b1
lea r13d, [rax + 1]
jmp 0x1400539b9
mov r13d, dword [rdi + r14 + 0x260]
mov edi, 1
mov rax, qword [rsp + 0x78]
mov r14d, edi
mov dword [rbp - 0x80], eax
jmp 0x140053a6b
mov dword [rsp + 0x78], 1
mov rcx, rdi
call fcn.140113e18
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [rsp + 0x78], ebx
je 0x140053a63
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140053a63
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x21c]
call fcn.14000129c
lea rcx, [rbp + 0x200]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov rdx, rax
xor ecx, ecx
mov r14, rax
call fcn.140052330
mov rdi, rax
test rax, rax
je 0x140053a5a
mov rcx, qword [rax + 0xc8]
lea rdx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140053a52
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x1a8]
call fcn.14000129c
mov r13d, 1
mov rcx, rdi
call fcn.140113e18
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r14d, ebx
mov edi, 1
mov rdx, rsi
mov dword [rbp + 0x1f0], r13d
lea rcx, [rbp - 0x60]
call fcn.1400047d8
mov edx, 0x2e
mov rcx, rsi
call fcn.14012dd3c
test rax, rax
je 0x140053b59
lea rdx, str..bdf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140053b59
mov rcx, rsi
call fcn.1400414c0
mov rdi, rax
test rax, rax
jne 0x140053ae6
mov r14, r15
inc r14
cmp word [rsi + r14*2], bx
jne 0x140053abf
add r14, 0x64
mov edx, 2
mov rcx, r14
call fcn.140113de8
lea r8, str.Cant_load_BDF_font:_n
jmp 0x140053b96
test r14d, r14d
je 0x140053b0c
movsxd rcx, dword [rbp - 0x80]
mov rdx, rdi
imul r8, rcx, 0x268
mov rcx, qword [r12]
mov rcx, qword [r8 + rcx + 8]
call fcn.1400413fc
jmp 0x140053ec7
mov ecx, 8
call fcn.140113d08
mov qword [rbp - 0x78], rax
test rax, rax
je 0x140053b24
mov qword [rax], rbx
jmp 0x140053b27
mov rax, rbx
mov rdx, rdi
mov qword [rbp - 0x68], rax
mov rcx, rax
call fcn.1400413fc
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.COMCTL32.dll_CreateMappedBitmap]
mov dword [rbp + 0x1e8], eax
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + 0x10]
mov dword [rbp + 0x1ec], eax
jmp 0x140053ebb
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x10]
call qword [sym.imp.GDI32.dll_AddFontResourceExW]
test eax, eax
jne 0x140053c11
mov r14, r15
inc r14
cmp word [rsi + r14*2], bx
jne 0x140053b74
add r14, 0x64
mov edx, 2
mov rcx, r14
call fcn.140113de8
lea r8, str.Cant_register_font:_n
mov rdx, r14
mov rcx, rax
mov rdi, rax
call fcn.14000a8a0
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.140001e48
lea r8, str._nContinue_
mov rdx, r14
mov rcx, rdi
call fcn.140001e48
mov rcx, qword [0x14022a9e0]
call fcn.140013110
mov r8, rax
mov r9, r15
mov eax, 1
mov rcx, rdi
mov byte [rsp + 0x20], al
lea edx, [rax + 0x10]
call fcn.1400297d8
mov rcx, rdi
mov ebx, eax
call fcn.140113e18
mov ecx, 1
cmp ebx, 2
jne 0x14005382a
mov rax, qword [rbp - 0x78]
mov dword [rax + 0x138], ecx
jmp 0x140053708
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
test rax, rax
je 0x140053ebb
lea rax, [rbp + 0x1a8]
xor edx, edx
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov dword [rsp + 0x60], ebx
xor r8d, r8d
mov dword [rsp + 0x58], 3
mov r15d, ebx
mov dword [rsp + 0x50], ebx
lea ecx, [rdx + 0x12]
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x190
call qword [sym.imp.GDI32.dll_CreateFontW]
mov word [rbp + 0x2a0], bx
mov rdi, rax
test rax, rax
je 0x140053cf2
mov rdx, rax
xor ecx, ecx
call fcn.140052330
mov r13, rax
test rax, rax
je 0x140053dfd
mov rcx, qword [rax + 0xc8]
lea rdx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140053ce1
mov rcx, qword [r13 + 0xc8]
lea r9, [rbp + 0x1a8]
mov qword [rsp + 0x20], rcx
lea rdx, str.____RegFont_failed:__s._Req:__s__Created:__s_n
lea rcx, [rbp + 0x2a0]
mov r8, rsi
call fcn.140004760
mov r15d, 1
mov rcx, r13
call fcn.140113e18
test r15d, r15d
je 0x140053dfd
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140053db9
test rdi, rdi
je 0x140053d1c
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
lea rax, [rbp + 0x260]
xor r9d, r9d
mov qword [rsp + 0x68], rax
xor r8d, r8d
mov dword [rsp + 0x60], ebx
mov eax, 1
mov dword [rsp + 0x58], 3
xor edx, edx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], eax
lea ecx, [rax + 0x11]
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x190
call qword [sym.imp.GDI32.dll_CreateFontW]
mov rdx, rax
xor ecx, ecx
mov rdi, rax
call fcn.140052330
mov rsi, rax
test rax, rax
je 0x140053db9
mov rcx, qword [rax + 0xc8]
lea rdx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140053db1
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x1a8]
call fcn.14000129c
mov r15d, ebx
mov rcx, rsi
call fcn.140113e18
test rdi, rdi
je 0x140053dd1
test r15d, r15d
je 0x140053dfd
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rdi, rbx
jmp 0x140053dda
test r15d, r15d
je 0x140053eb2
cmp word [rbp + 0x2a0], bx
je 0x140053eb2
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
je 0x140053eb2
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
mov rcx, r14
mov r13, rax
call qword [sym.imp.GDI32.dll_GetFontUnicodeRanges]
mov r15d, eax
test eax, eax
je 0x140053e9d
mov ecx, r15d
mov edx, 1
call fcn.140113de8
mov rsi, rax
test rax, rax
je 0x140053e9d
mov rdx, rax
mov dword [rax], r15d
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetFontUnicodeRanges]
test eax, eax
je 0x140053e95
mov ecx, ebx
mov r8d, 1
cmp dword [rsi + 4], r8d
setne cl
mov dword [rbp + 0x1e8], ecx
je 0x140053e95
cmp dword [rsi + 0xc], ebx
jbe 0x140053e95
mov eax, ebx
mov ecx, 0x2554
cmp word [rsi + rax*4 + 0x10], cx
jae 0x140053e84
movzx ecx, word [rsi + rax*4 + 0x12]
movzx eax, word [rsi + rax*4 + 0x10]
add ecx, eax
cmp ecx, 0x2555
ja 0x140053e8e
add ebx, r8d
cmp ebx, dword [rsi + 0xc]
jae 0x140053e95
jmp 0x140053e62
mov dword [rbp + 0x1ec], r8d
mov rcx, rsi
call fcn.140113e18
mov rdx, r13
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.14004f3c0
mov eax, 1
mov rcx, qword [rbp + 0xaa0]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0xc08]
add rsp, 0xbb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret