Function at 0x4717b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb08
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], esi
cmp dword [esi + 0xf36ec], ebx
je 0x4717d4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0xf36dc], ebx
push edi
jle 0x471817
xor edi, edi
nop
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xf36e8]
mov ecx, dword [ebp + 8]
add esi, edi
push ecx
lea edx, [esi + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4718e6
mov eax, dword [ebp - 4]
inc ebx
add edi, 0x25c
cmp ebx, dword [eax + 0xf36dc]
jl 0x4717e0
xor ebx, ebx
mov esi, eax
mov ecx, dword [ebp + 0xc]
push 0x258
lea edx, [ebp - 0x304]
push ebx
push edx
mov dword [ebp - 0x308], ecx
call fcn.004c9b50
mov edi, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xf8]
push ecx
push edi
mov ecx, esi
call fcn.0046efb0
test eax, eax
jne 0x47190d
mov eax, edi
lea edx, [eax + 2]
jmp 0x471860
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x471860
sub eax, edx
sar eax, 1
lea edi, [eax + 0x64]
push 2
push edi
call fcn.0044c490
add esp, 8
push str.Cant_retrieve_font_family_from_file:_n
mov esi, eax
push edi
push esi
call fcn.00401730
mov edx, dword [ebp + 8]
push edx
push edi
push esi
call fcn.004017b0
push str._nContinue_
push edi
push esi
call fcn.004017b0
mov ecx, dword [0x52fe2c]
push 1
push 0xffffffffffffffff
call fcn.00409d20
push eax
push 0x11
push esi
call fcn.004262f0
push esi
mov edi, eax
call fcn.0044c4f0
add esp, 0x18
cmp edi, 2
jne 0x471f3f
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [eax + 0xf36ec], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x471f3f
cmp dword [esi], 0
jne 0x471f3f
pop edi
mov dword [esi], 1
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 1
cmp word [ebp - 0xf8], ax
jne 0x471928
cmp word [ebp - 0xf6], bx
je 0x471f44
xor edi, edi
cmp dword [esi + 0xf36dc], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0xffffffff
jle 0x471992
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov esi, dword [ecx + 0xf36e8]
add esi, dword [ebp - 8]
lea edx, [ebp - 0xf8]
push edx
lea ebx, [esi + 0x210]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x471a2e
lea eax, [ebp - 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x471a2e
mov ecx, dword [ebp - 4]
add dword [ebp - 8], 0x25c
inc edi
cmp edi, dword [ecx + 0xf36dc]
jl 0x471942
xor ebx, ebx
push 0x58
lea eax, [ebp - 0xa8]
push ebx
push eax
mov dword [ebp - 0xac], ebx
call fcn.004c9b50
lea ecx, [ebp - 0xf8]
push ecx
lea edx, [ebp - 0x90]
push edx
mov byte [ebp - 0x94], 4
mov byte [ebp - 0x93], 0
mov byte [ebp - 0x91], 0x31
call fcn.00401a00
add esp, 0x14
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0xa
mov dword [ebp - 0x9c], 0x190
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
cmp edi, ebx
je 0x471a63
mov ecx, dword [0x52fe34]
push edi
push 0
call fcn.0045c070
mov esi, eax
test esi, esi
je 0x471a54
mov edx, dword [esi + 0xc8]
lea ecx, [ebp - 0xf8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x471a46
mov dword [ebp + 0xc], 1
jmp 0x471a4b
mov edx, dword [esi + 0x258]
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], edi
jmp 0x471af0
mov ebx, 1
push esi
call fcn.0044c4f0
add esp, 4
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
je 0x471af0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x471af0
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.00401a00
add esp, 8
lea ecx, [ebp - 0xac]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [0x52fe34]
mov ebx, eax
push ebx
push 0
call fcn.0045c070
mov edi, eax
test edi, edi
je 0x471ae9
mov eax, dword [edi + 0xc8]
lea edx, [ebp - 0xf8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x471ae0
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0xf8]
push edx
call fcn.00401a00
add esp, 8
mov dword [ebp + 0xc], 1
push edi
call fcn.0044c4f0
add esp, 4
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x300]
push esi
push ecx
mov dword [ebp - 0xb0], eax
call fcn.00405470
push 0x2e
push esi
call fcn.004ca94c
add esp, 0x10
test eax, eax
je 0x471c0e
push str..bdf
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x471c0e
mov ebx, esi
push ebx
call fcn.004305b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x471b77
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471b46
sub eax, edx
sar eax, 1
lea edi, [eax + 0x64]
push 2
push edi
call fcn.0044c490
add esp, 8
push str.Cant_load_BDF_font:_n
mov esi, eax
push edi
push esi
call fcn.00401730
push ebx
jmp 0x471c55
cmp dword [ebp - 0x10], 0
je 0x471ba7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
imul eax, eax, 0x25c
mov edx, dword [ecx + 0xf36e8]
mov ecx, dword [edx + eax + 4]
push esi
call fcn.00430610
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 4
call fcn.0044c4d0
add esp, 4
test eax, eax
je 0x471bbf
mov dword [eax], 0
mov ecx, eax
jmp 0x471bc1
xor ecx, ecx
push esi
mov dword [ebp - 0x304], ecx
call fcn.00430610
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov dword [ebp - 0xb8], eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x308]
push eax
add ecx, 0xf36d8
call fcn.00460b00
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0x10
push esi
call dword [sym.imp.GDI32.dll_AddFontResourceExW]
test eax, eax
jne 0x471cac
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471c26
sub eax, edx
sar eax, 1
lea edi, [eax + 0x64]
push 2
push edi
call fcn.0044c490
add esp, 8
push str.Cant_register_font:_n
mov esi, eax
push edi
push esi
call fcn.00401730
mov ecx, dword [ebp + 8]
push ecx
push edi
push esi
call fcn.004017b0
push str._nContinue_
push edi
push esi
call fcn.004017b0
mov ecx, dword [0x52fe2c]
push 1
push 0xffffffffffffffff
call fcn.00409d20
push eax
push 0x11
push esi
call fcn.004262f0
push esi
mov edi, eax
call fcn.0044c4f0
add esp, 0x18
cmp edi, 2
jne 0x471f3f
mov edx, dword [ebp - 4]
pop edi
pop esi
mov dword [edx + 0xf36ec], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 8], eax
test eax, eax
je 0x471ef0
mov ebx, dword [sym.imp.GDI32.dll_CreateFontW]
lea eax, [ebp - 0xf8]
push eax
push 0
push 3
push 0
push 4
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x12
mov dword [ebp + 0xc], 0
call ebx
mov esi, eax
xor ecx, ecx
mov word [ebp - 0xb08], cx
test esi, esi
je 0x471d71
push esi
push ecx
mov ecx, dword [0x52fe34]
call fcn.0045c070
mov edi, eax
test edi, edi
je 0x471e02
mov eax, dword [edi + 0xc8]
lea edx, [ebp - 0xf8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x471d5e
mov ecx, dword [edi + 0xc8]
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xf8]
push edx
push eax
lea ecx, [ebp - 0xb08]
push str.____RegFont_failed:__s._Req:__s__Created:__s_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov dword [ebp + 0xc], 1
push edi
call fcn.0044c4f0
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x471e02
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x471e02
test esi, esi
je 0x471d91
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x50]
push ecx
push 0
push 3
push 0
push 4
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x12
call ebx
mov ecx, dword [0x52fe34]
mov esi, eax
push esi
push 0
call fcn.0045c070
mov edi, eax
test edi, edi
je 0x471e02
mov eax, dword [edi + 0xc8]
lea edx, [ebp - 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x471df9
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0xf8]
push edx
call fcn.00401a00
add esp, 8
mov dword [ebp + 0xc], 0
push edi
call fcn.0044c4f0
add esp, 4
test esi, esi
je 0x471e15
cmp dword [ebp + 0xc], 0
je 0x471e32
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x471e32
cmp word [ebp - 0xb08], 0
je 0x471e32
lea eax, [ebp - 0xb08]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x471ee6
mov edi, dword [ebp - 8]
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_GetFontUnicodeRanges]
mov ebx, eax
test ebx, ebx
je 0x471ed1
push 1
push ebx
call fcn.0044c490
mov edi, eax
add esp, 8
test edi, edi
je 0x471ed1
mov ecx, dword [ebp - 8]
push edi
push ecx
mov dword [edi], ebx
call dword [sym.imp.GDI32.dll_GetFontUnicodeRanges]
test eax, eax
je 0x471ec8
xor eax, eax
cmp dword [edi + 4], 1
setne al
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x471ec8
xor ecx, ecx
cmp dword [edi + 0xc], ecx
jbe 0x471ec8
lea eax, [edi + 0x10]
mov edx, 0x2554
cmp word [eax], dx
jae 0x471eb3
movzx edx, word [eax + 2]
movzx ebx, word [eax]
lea edx, [edx + ebx - 1]
cmp edx, 0x2554
jg 0x471ebe
inc ecx
add eax, 4
cmp ecx, dword [edi + 0xc]
jb 0x471e96
jmp 0x471ec8
mov dword [ebp - 0xb4], 1
push edi
call fcn.0044c4f0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [ebp - 4]
add esi, 0xf36d8
cmp dword [esi], 0
je 0x471f3f
mov eax, dword [esi + 8]
cmp eax, dword [esi + 4]
jg 0x471f1a
cmp eax, 0x100
jge 0x471f12
mov eax, 0x100
push eax
mov ecx, esi
call fcn.00445bd0
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea ecx, [eax + 1]
imul eax, eax, 0x25c
add eax, dword [esi + 0x10]
mov dword [esi + 4], ecx
push edx
lea ecx, [ebp - 0x308]
push ecx
push eax
call fcn.004c9f70
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8