Function at 0x4821e2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
mov dword [ebp - 8], 1
push 0x52d740
push 0x52d74c
push 0x52d758
push 0x53cdbc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0xc], eax
call fcn.0040883f
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x482229
xor eax, eax
jmp 0x482487
mov eax, dword [ebp - 0xc]
push eax
push 0x53cdbc
call fcn.004089d2
cmp eax, dword [ebp - 0xc]
jae 0x482260
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x482254
push str._RCP__Write_error___FSFONTINFO
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], 0
jmp 0x482485
push 0x1000
push 0
push 0x53bdbc
call fcn.004cf390
add esp, 0xc
push 0x1000
push 0x53bdbc
call fcn.00408a86
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
push str._RCP__FSFONTINFO_read_bytes___d
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0xc], 2
jl 0x4822bb
cmp dword [ebp - 0xc], 0x1000
jle 0x4822e5
mov dword [ebp - 8], 0
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x4822e0
mov eax, dword [ebp - 0xc]
push eax
push str.F_GetFontInfo_:_nSize___d
call fcn.0044e760
add esp, 8
jmp 0x482483
xor ecx, ecx
mov cl, byte [0x53bdbc]
shl ecx, 8
xor edx, edx
mov dl, byte [0x53bdbd]
add ecx, edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x1a
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
mov dword [0x53df08], ecx
cmp dword [ebp - 0x1c], 0
jle 0x48239f
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x14]
jge 0x482376
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x53bdbc
push ecx
call fcn.00408a86
mov dword [ebp - 0xa0], eax
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x482376
mov eax, dword [ebp - 0xa0]
push eax
push 0x52d7d4
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x1e
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x53df00], eax
cmp dword [0x53df00], 0
jne 0x48239f
mov dword [ebp - 8], 0
jmp 0x482481
mov dword [ebp - 4], 0x53bdbe
mov dword [ebp - 0x18], 0
jmp 0x4823b8
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x1c]
jge 0x48246a
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x1a
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x1e
mov edx, dword [0x53df00]
mov esi, dword [ebp - 4]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x1a
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + ecx + 1]
shl eax, 8
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x1a
mov edx, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [edx + ecx + 2]
add eax, ebx
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x1e
mov edx, dword [0x53df00]
mov word [edx + ecx + 2], ax
push 0x14
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x1a
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 3]
push edx
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x1e
mov ecx, dword [0x53df00]
lea edx, [ecx + eax + 4]
push edx
call fcn.004cfe40
add esp, 0xc
push 3
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x1a
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x17]
push edx
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x1e
mov ecx, dword [0x53df00]
lea edx, [ecx + eax + 0x19]
push edx
call fcn.004cfe40
add esp, 0xc
jmp 0x4823af
call fcn.00408962
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48247c
xor eax, eax
jmp 0x482487
mov eax, dword [ebp - 8]
jmp 0x482487
jmp 0x48246a
jmp 0x48246a
jmp 0x48246a
pop esi
pop ebx
mov esp, ebp
pop ebp
ret