Function at 0x140056c18
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 [0x1401e7e78]
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 + 0x140], ebx
je 0x140056c63
xor eax, eax
jmp 0x140057420
lea r12, [rcx + 0x128]
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 0x140056cf7
mov r14, rbx
lea rcx, [r14 + 0x10]
mov rdx, rsi
add rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140056d6a
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 0x140056c9f
movabs r14, 0x6a63bd81a98ef607
xor edx, edx
mov dword [rbp - 0x70], r15d
mov r8d, 0x260
lea rcx, [rbp - 0x68]
call fcn.14013b230
xor edx, edx
lea rcx, [rbp + 0x260]
lea r8d, [rdx + 0x40]
call fcn.14013b230
mov rcx, qword [rbp - 0x78]
lea r9, [rbp + 0x260]
lea r8, [rbp + 0x1a8]
mov rdx, rsi
call fcn.14005462c
test eax, eax
jne 0x140056d85
or r15, 0xffffffffffffffff
mov r14, r15
inc r14
cmp word [rsi + r14*2], bx
jne 0x140056d43
add r14, 0x64
mov edx, 2
mov rcx, r14
call fcn.14012005c
lea r8, str.Cant_retrieve_font_family_from_file:_n
jmp 0x1400570ea
mov ecx, 1
test r15d, r15d
je 0x140056d7e
cmp dword [rdi + r14], ebx
jne 0x140056d7e
mov dword [rdi + r14], ecx
mov eax, ecx
jmp 0x140057420
mov ecx, 1
cmp word [rbp + 0x1a8], cx
jne 0x140056d9c
cmp word [rbp + 0x1aa], bx
je 0x140056d7e
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 0x140056e56
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 0x140056ee8
lea rcx, [r14 + 0x218]
add rcx, rdi
lea rdx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140056ee8
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 0x140056dd8
xor edx, edx
lea rcx, [rbp + 0x200]
lea r8d, [rdx + 0x5c]
call fcn.14013b230
lea rdx, [rbp + 0x1a8]
mov word [rbp + 0x218], 4
lea rcx, [rbp + 0x21c]
mov byte [rbp + 0x21b], 0x31
call fcn.14000128c
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 0x140056f28
mov rdx, rax
xor ecx, ecx
call fcn.140055878
mov rdi, rax
test rax, rax
je 0x140056f15
mov rcx, qword [rax + 0xc8]
lea rdx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140056f05
lea r13d, [rax + 1]
jmp 0x140056f0d
mov r13d, dword [rdi + r14 + 0x260]
mov edi, 1
mov rax, qword [rsp + 0x78]
mov r14d, edi
mov dword [rbp - 0x80], eax
jmp 0x140056fbf
mov dword [rsp + 0x78], 1
mov rcx, rdi
call fcn.14012008c
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [rsp + 0x78], ebx
je 0x140056fb7
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140056fb7
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x21c]
call fcn.14000128c
lea rcx, [rbp + 0x200]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov rdx, rax
xor ecx, ecx
mov r14, rax
call fcn.140055878
mov rdi, rax
test rax, rax
je 0x140056fae
mov rcx, qword [rax + 0xc8]
lea rdx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140056fa6
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x1a8]
call fcn.14000128c
mov r13d, 1
mov rcx, rdi
call fcn.14012008c
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.140004ad0
mov edx, 0x2e
mov rcx, rsi
call fcn.14013bd50
test rax, rax
je 0x1400570ad
lea rdx, str..bdf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400570ad
mov rcx, rsi
call fcn.140044060
mov rdi, rax
test rax, rax
jne 0x14005703a
mov r14, r15
inc r14
cmp word [rsi + r14*2], bx
jne 0x140057013
add r14, 0x64
mov edx, 2
mov rcx, r14
call fcn.14012005c
lea r8, str.Cant_load_BDF_font:_n
jmp 0x1400570ea
test r14d, r14d
je 0x140057060
movsxd rcx, dword [rbp - 0x80]
mov rdx, rdi
imul r8, rcx, 0x268
mov rcx, qword [r12]
mov rcx, qword [r8 + rcx + 8]
call fcn.140043f9c
jmp 0x14005741b
mov ecx, 8
call fcn.14011ff78
mov qword [rbp - 0x78], rax
test rax, rax
je 0x140057078
mov qword [rax], rbx
jmp 0x14005707b
mov rax, rbx
mov rdx, rdi
mov qword [rbp - 0x68], rax
mov rcx, rax
call fcn.140043f9c
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 0x14005740f
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x10]
call qword [sym.imp.GDI32.dll_AddFontResourceExW]
test eax, eax
jne 0x140057165
mov r14, r15
inc r14
cmp word [rsi + r14*2], bx
jne 0x1400570c8
add r14, 0x64
mov edx, 2
mov rcx, r14
call fcn.14012005c
lea r8, str.Cant_register_font:_n
mov rdx, r14
mov rcx, rax
mov rdi, rax
call fcn.14000ab94
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.140001f38
lea r8, str._nContinue_
mov rdx, r14
mov rcx, rdi
call fcn.140001f38
mov rcx, qword [0x14021c5d8]
call fcn.1400140ac
mov r8, rax
mov r9, r15
mov eax, 1
mov rcx, rdi
mov byte [rsp + 0x20], al
lea edx, [rax + 0x10]
call fcn.14002b0f8
mov rcx, rdi
mov ebx, eax
call fcn.14012008c
mov ecx, 1
cmp ebx, 2
jne 0x140056d7e
mov rax, qword [rbp - 0x78]
mov dword [rax + 0x140], ecx
jmp 0x140056c5c
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
test rax, rax
je 0x14005740f
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 0x140057246
mov rdx, rax
xor ecx, ecx
call fcn.140055878
mov r13, rax
test rax, rax
je 0x140057351
mov rcx, qword [rax + 0xc8]
lea rdx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140057235
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.140004a58
mov r15d, 1
mov rcx, r13
call fcn.14012008c
test r15d, r15d
je 0x140057351
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14005730d
test rdi, rdi
je 0x140057270
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.140055878
mov rsi, rax
test rax, rax
je 0x14005730d
mov rcx, qword [rax + 0xc8]
lea rdx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140057305
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x1a8]
call fcn.14000128c
mov r15d, ebx
mov rcx, rsi
call fcn.14012008c
test rdi, rdi
je 0x140057325
test r15d, r15d
je 0x140057351
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rdi, rbx
jmp 0x14005732e
test r15d, r15d
je 0x140057406
cmp word [rbp + 0x2a0], bx
je 0x140057406
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
je 0x140057406
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 0x1400573f1
mov ecx, r15d
mov edx, 1
call fcn.14012005c
mov rsi, rax
test rax, rax
je 0x1400573f1
mov rdx, rax
mov dword [rax], r15d
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetFontUnicodeRanges]
test eax, eax
je 0x1400573e9
mov ecx, ebx
mov r8d, 1
cmp dword [rsi + 4], r8d
setne cl
mov dword [rbp + 0x1e8], ecx
je 0x1400573e9
cmp dword [rsi + 0xc], ebx
jbe 0x1400573e9
mov eax, ebx
mov ecx, 0x2554
cmp word [rsi + rax*4 + 0x10], cx
jae 0x1400573d8
movzx ecx, word [rsi + rax*4 + 0x12]
movzx eax, word [rsi + rax*4 + 0x10]
add ecx, eax
cmp ecx, 0x2555
ja 0x1400573e2
add ebx, r8d
cmp ebx, dword [rsi + 0xc]
jae 0x1400573e9
jmp 0x1400573b6
mov dword [rbp + 0x1ec], r8d
mov rcx, rsi
call fcn.14012008c
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.14005298c
mov eax, 1
mov rcx, qword [rbp + 0xaa0]
xor rcx, rsp
call fcn.140139b10
mov rbx, qword [rsp + 0xc08]
add rsp, 0xbb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret