Function at 0x4649c0
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 + 0xf38c0], ebx
je 0x4649e4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0xf38b0], ebx
push edi
jle 0x464a27
xor edi, edi
nop
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xf38bc]
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 0x464af5
mov eax, dword [ebp - 4]
inc ebx
add edi, 0x25c
cmp ebx, dword [eax + 0xf38b0]
jl 0x4649f0
mov esi, eax
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
push 0x258
lea edx, [ebp - 0x304]
push ebx
push edx
mov dword [ebp - 0x308], ecx
call fcn.004b03e0
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.004625a0
test eax, eax
jne 0x464b1c
mov eax, edi
lea edx, [eax + 2]
jmp 0x464a70
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x464a70
sub eax, edx
sar eax, 1
lea edi, [eax + 0x64]
push 2
push edi
call fcn.004412c0
add esp, 8
push str.Cant_retrieve_font_family_from_file:_n
mov esi, eax
push edi
push esi
call fcn.00401800
mov edx, dword [ebp + 8]
push edx
push edi
push esi
call fcn.00401880
push str._nContinue_
push edi
push esi
call fcn.00401880
mov ecx, dword [0x50b39c]
push 0x11
call fcn.004059f0
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
mov edi, eax
call fcn.00441300
add esp, 4
cmp edi, 2
jne 0x465159
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [eax + 0xf38c0], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x465159
cmp dword [esi], 0
jne 0x465159
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 0x464b37
cmp word [ebp - 0xf6], bx
je 0x46515e
xor edi, edi
cmp dword [esi + 0xf38b0], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0xffffffff
jle 0x464ba1
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov esi, dword [ecx + 0xf38bc]
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 0x464c3d
lea eax, [ebp - 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x464c3d
mov ecx, dword [ebp - 4]
add dword [ebp - 8], 0x25c
inc edi
cmp edi, dword [ecx + 0xf38b0]
jl 0x464b51
xor ebx, ebx
push 0x58
lea eax, [ebp - 0xa8]
push ebx
push eax
mov dword [ebp - 0xac], ebx
call fcn.004b03e0
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.0040ee90
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 0x464c72
mov ecx, dword [0x50b3a4]
push edi
push 0
call fcn.00450930
mov esi, eax
test esi, esi
je 0x464c63
mov edx, dword [esi + 0xc8]
lea ecx, [ebp - 0xf8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x464c55
mov dword [ebp + 0xc], 1
jmp 0x464c5a
mov edx, dword [esi + 0x258]
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], edi
jmp 0x464cff
mov ebx, 1
push esi
call fcn.00441300
add esp, 4
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
je 0x464cff
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x464cff
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.0040ee90
add esp, 8
lea ecx, [ebp - 0xac]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [0x50b3a4]
mov ebx, eax
push ebx
push 0
call fcn.00450930
mov edi, eax
test edi, edi
je 0x464cf8
mov eax, dword [edi + 0xc8]
lea edx, [ebp - 0xf8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x464cef
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0xf8]
push edx
call fcn.0040ee90
add esp, 8
mov dword [ebp + 0xc], 1
push edi
call fcn.00441300
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.0040f0b0
push 0x2e
push esi
call fcn.004b135e
add esp, 0x10
test eax, eax
je 0x464e1d
push str..bdf
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x464e1d
mov ebx, esi
push ebx
call fcn.00429550
mov esi, eax
add esp, 4
test esi, esi
jne 0x464d86
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464d55
sub eax, edx
sar eax, 1
lea edi, [eax + 0x64]
push 2
push edi
call fcn.004412c0
add esp, 8
push str.Cant_load_BDF_font:_n
mov esi, eax
push edi
push esi
call fcn.00401800
push ebx
jmp 0x464e64
cmp dword [ebp - 0x10], 0
je 0x464db6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
imul eax, eax, 0x25c
mov edx, dword [ecx + 0xf38bc]
mov ecx, dword [edx + eax + 4]
push esi
call fcn.00429610
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 4
call fcn.004412a0
add esp, 4
test eax, eax
je 0x464dce
mov dword [eax], 0
mov ecx, eax
jmp 0x464dd0
xor ecx, ecx
push esi
mov dword [ebp - 0x304], ecx
call fcn.00429610
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, 0xf38ac
call fcn.00454ce0
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 0x464eba
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464e35
sub eax, edx
sar eax, 1
lea edi, [eax + 0x64]
push 2
push edi
call fcn.004412c0
add esp, 8
push str.Cant_register_font:_n
mov esi, eax
push edi
push esi
call fcn.00401800
mov ecx, dword [ebp + 8]
push ecx
push edi
push esi
call fcn.00401880
push str._nContinue_
push edi
push esi
call fcn.00401880
mov ecx, dword [0x50b39c]
push 0x11
call fcn.004059f0
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
mov edi, eax
call fcn.00441300
add esp, 4
cmp edi, 2
jne 0x465159
mov edx, dword [ebp - 4]
pop edi
pop esi
mov dword [edx + 0xf38c0], 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 0x46510a
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 0x464f7f
push esi
push ecx
mov ecx, dword [0x50b3a4]
call fcn.00450930
mov edi, eax
test edi, edi
je 0x465010
mov eax, dword [edi + 0xc8]
lea edx, [ebp - 0xf8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x464f6c
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.00441300
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x465010
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x465010
test esi, esi
je 0x464f9f
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 [0x50b3a4]
mov esi, eax
push esi
push 0
call fcn.00450930
mov edi, eax
test edi, edi
je 0x465010
mov eax, dword [edi + 0xc8]
lea edx, [ebp - 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x465007
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0xf8]
push edx
call fcn.0040ee90
add esp, 8
mov dword [ebp + 0xc], 0
push edi
call fcn.00441300
add esp, 4
test esi, esi
je 0x465023
cmp dword [ebp + 0xc], 0
je 0x465040
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x465040
cmp word [ebp - 0xb08], 0
je 0x465040
lea eax, [ebp - 0xb08]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x465100
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 0x4650eb
push 1
push ebx
call fcn.004412c0
mov edi, eax
add esp, 8
test edi, edi
je 0x4650eb
mov ecx, dword [ebp - 8]
push edi
push ecx
mov dword [edi], ebx
call dword [sym.imp.GDI32.dll_GetFontUnicodeRanges]
test eax, eax
je 0x4650e2
xor eax, eax
cmp dword [edi + 4], 1
setne al
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x4650e2
xor ecx, ecx
cmp dword [edi + 0xc], ecx
jbe 0x4650e2
lea eax, [edi + 0x10]
jmp 0x4650b0
mov edx, 0x2554
cmp word [eax], dx
jae 0x4650cd
movzx edx, word [eax + 2]
movzx ebx, word [eax]
lea edx, [edx + ebx - 1]
cmp edx, 0x2554
jg 0x4650d8
inc ecx
add eax, 4
cmp ecx, dword [edi + 0xc]
jb 0x4650b0
jmp 0x4650e2
mov dword [ebp - 0xb4], 1
push edi
call fcn.00441300
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, 0xf38ac
cmp dword [esi], 0
je 0x465159
mov eax, dword [esi + 8]
cmp eax, dword [esi + 4]
jg 0x465134
cmp eax, 0x100
jge 0x46512c
mov eax, 0x100
push eax
mov ecx, esi
call fcn.00403b80
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.004b0bb0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8