Function at 0x6a62d3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xcc
mov eax, dword [ebp + 0x74]
test eax, eax
push ebx
mov ebx, ecx
je 0x6a62ee
cmp dword [ebp + 0x78], 0
jne 0x6a62f8
mov eax, 0x8876086c
jmp 0x6a6a01
push esi
push edi
mov dword [ebx + 8], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
cmp dword [0x79d11c], 0
jne 0x6a6536
lea eax, [ebp - 0x28]
push eax
mov dword [0x79d11c], 1
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
cmp dword [ebp - 0x18], 2
sete al
test eax, eax
mov dword [0x79d120], eax
je 0x6a63a7
mov edi, str.gdi32.dll
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0x74], eax
jne 0x6a6364
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 0x74], eax
je 0x6a63a7
push str.GetCharABCWidthsI
push dword [ebp + 0x74]
call esi
test eax, eax
mov dword [0x79d124], eax
je 0x6a639d
push str.GetCharWidthI
push dword [ebp + 0x74]
call esi
test eax, eax
mov dword [0x79d128], eax
je 0x6a639d
push str.GetFontUnicodeRanges
push dword [ebp + 0x74]
call esi
test eax, eax
mov dword [0x79d12c], eax
jne 0x6a63a7
mov eax, 0x8007000e
jmp 0x6a69ff
push str.usp10.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x6a63cd
push str.usp10.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6a6536
push str.ScriptItemize
push edi
mov dword [0x79d130], 1
call esi
test eax, eax
mov dword [0x79d134], eax
je 0x6a639d
push str.ScriptShape
push edi
call esi
test eax, eax
mov dword [0x79d138], eax
je 0x6a639d
push str.ScriptPlace
push edi
call esi
test eax, eax
mov dword [0x79d13c], eax
je 0x6a639d
push str.ScriptBreak
push edi
call esi
test eax, eax
mov dword [0x79d140], eax
je 0x6a639d
push str.ScriptJustify
push edi
call esi
test eax, eax
mov dword [0x79d144], eax
je 0x6a639d
push str.ScriptTextOut
push edi
call esi
test eax, eax
mov dword [0x79d148], eax
je 0x6a639d
push str.ScriptGetProperties
push edi
call esi
test eax, eax
mov dword [0x79d14c], eax
je 0x6a639d
push str.ScriptFreeCache
push edi
call esi
test eax, eax
mov dword [0x79d150], eax
je 0x6a639d
push str.ScriptRecordDigitSubstitution
push edi
call esi
test eax, eax
mov dword [0x79d154], eax
je 0x6a639d
push str.ScriptApplyDigitSubstitution
push edi
call esi
test eax, eax
mov dword [0x79d158], eax
je 0x6a639d
push str.ScriptGetFontProperties
push edi
call esi
test eax, eax
mov dword [0x79d15c], eax
je 0x6a639d
push str.ScriptStringAnalyse
push edi
call esi
test eax, eax
mov dword [0x79d160], eax
je 0x6a639d
push str.ScriptStringOut
push edi
call esi
test eax, eax
mov dword [0x79d164], eax
je 0x6a639d
push str.ScriptStringFree
push edi
call esi
test eax, eax
mov dword [0x79d168], eax
je 0x6a639d
push str.ScriptStringCPtoX
push edi
call esi
test eax, eax
mov dword [0x79d16c], eax
je 0x6a639d
push str.ScriptString_pSize
push edi
call esi
test eax, eax
mov dword [0x79d170], eax
je 0x6a639d
lea eax, [ebp + 0x74]
push eax
push 0x79d180
call dword [0x79d14c]
push 0x79d174
push 0x400
call dword [0x79d154]
xor esi, esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, esi
mov dword [ebx + 0x10], eax
je 0x6a639d
push 1
push eax
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp dword [0x79d120], esi
jne 0x6a6566
push 1
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetTextAlign]
cmp dword [ebp + 0x7c], esi
je 0x6a660e
cmp dword [0x79d120], esi
jne 0x6a65ac
mov eax, dword [ebp + 0x78]
push 6
pop ecx
mov esi, eax
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push ecx
push ecx
push 0x20
lea edx, [ebp - 0x48]
push edx
push 0xffffffffffffffff
add eax, 0x18
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and byte [ebp - 0x29], 0
and dword [ebp + 0x7c], 0
lea eax, [ebp - 0x60]
mov dword [ebp + 0x78], eax
xor esi, esi
cmp dword [ebp + 0x7c], esi
je 0x6a660e
push 0x17
pop ecx
xor eax, eax
lea edi, [ebp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x78]
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 8]
mov dword [ebp + 0x20], ecx
mov cl, byte [eax + 0x10]
mov byte [ebp + 0x24], cl
mov cl, byte [eax + 0x14]
mov byte [ebp + 0x27], cl
mov cl, byte [eax + 0x15]
mov byte [ebp + 0x28], cl
mov cl, byte [eax + 0x16]
mov byte [ebp + 0x2a], cl
mov cl, byte [eax + 0x17]
mov byte [ebp + 0x2b], cl
push 0x10
lea esi, [eax + 0x18]
pop ecx
lea edi, [ebp + 0x2c]
rep movsd dword es:[edi], dword [esi]
test byte [ebp + 0x2a], 7
jne 0x6a6602
or byte [ebp + 0x2a], 4
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x6a6669
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x78]
mov ecx, dword [eax]
mov dword [ebp + 0x30], ecx
mov ecx, dword [eax + 4]
mov dword [ebp + 0x34], ecx
mov ecx, dword [eax + 8]
mov dword [ebp + 0x40], ecx
mov cl, byte [eax + 0x10]
mov byte [ebp + 0x44], cl
mov cl, byte [eax + 0x14]
mov byte [ebp + 0x47], cl
mov cl, byte [eax + 0x15]
mov byte [ebp + 0x48], cl
mov cl, byte [eax + 0x16]
mov byte [ebp + 0x4a], cl
mov cl, byte [eax + 0x17]
mov byte [ebp + 0x4b], cl
push 8
lea esi, [eax + 0x18]
pop ecx
lea edi, [ebp + 0x4c]
rep movsd dword es:[edi], dword [esi]
test byte [ebp + 0x4a], 7
jne 0x6a665f
or byte [ebp + 0x4a], 4
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
test eax, eax
mov dword [ebx + 0x14], eax
je 0x6a639d
push dword [ebx + 0x14]
mov eax, dword [ebp + 0x78]
mov eax, dword [eax + 0xc]
push dword [ebx + 0x10]
mov dword [ebx + 0x500], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
call dword [sym.imp.GDI32.dll_GetFontLanguageInfo]
cmp dword [0x79d120], 0
mov dword [ebx + 0x70], eax
je 0x6a66b3
lea eax, [ebx + 0x34]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x6a66f7
lea eax, [ebp + 0x34]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
movzx ax, byte [ebp + 0x60]
mov word [ebx + 0x60], ax
movzx ax, byte [ebp + 0x61]
push 0xb
mov word [ebx + 0x62], ax
movzx ax, byte [ebp + 0x62]
lea edi, [ebx + 0x34]
pop ecx
lea esi, [ebp + 0x34]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x68]
lea esi, [ebp + 0x64]
movsd dword es:[edi], dword [esi]
mov word [ebx + 0x64], ax
movzx ax, byte [ebp + 0x63]
movsb byte es:[edi], byte [esi]
mov word [ebx + 0x66], ax
mov ecx, dword [ebx + 0x4c]
lea eax, [ebx + 0x24]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x28], ecx
lea ecx, [ebx + 0x2c]
push ecx
push eax
mov ecx, ebx
call fcn.006a5d70
xor esi, esi
cmp eax, esi
mov dword [ebx + 0x1c], eax
je 0x6a639d
push 2
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetBkMode]
push esi
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xffffff
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebx + 0x20], eax
xor eax, eax
mov ecx, 0x100
lea edi, [ebx + 0x94]
mov dword [ebx + 0x90], esi
rep stosd dword es:[edi], eax
inc eax
cmp dword [ebx + 0x34], eax
lea edx, [ebx + 0x4b8]
mov dword [ebx + 0x498], 0x15
mov dword [ebx + 0x49c], esi
mov dword [ebx + 0x4a8], esi
mov dword [ebx + 0x4c4], esi
mov dword [ebx + 0x4b0], eax
mov dword [edx], eax
jbe 0x6a67a8
shl dword [ebx + 0x4b0], 1
inc dword [edx]
mov eax, dword [ebx + 0x4b0]
cmp eax, dword [ebx + 0x34]
jb 0x6a6795
mov eax, dword [ebx + 0x4b0]
mov ecx, dword [edx]
mov dword [ebx + 0x4cc], eax
mov dword [ebx + 0x4d4], ecx
jmp 0x6a67cc
shl dword [ebx + 0x4b0], 1
inc dword [edx]
mov eax, dword [ebx + 0x4b0]
cmp eax, dword [ebx + 0x48]
jb 0x6a67be
jmp 0x6a67df
shl dword [ebx + 0x4cc], 1
inc dword [ebx + 0x4d4]
mov eax, dword [ebx + 0x4cc]
cmp eax, dword [ebx + 0x4c]
jb 0x6a67d3
mov esi, dword [ebx + 0x4cc]
mov ecx, dword [ebx + 0x4b0]
mov edi, esi
mov eax, ecx
imul edi, esi
mov esi, dword [ebx + 0x500]
imul eax, ecx
test esi, esi
mov dword [ebp + 0x7c], eax
mov dword [ebx + 0x4b4], eax
mov dword [ebx + 0x4d0], edi
je 0x6a682b
cmp dword [edx], esi
jbe 0x6a681f
mov dword [edx], esi
lea edi, [ebx + 0x4d4]
cmp dword [edi], esi
jbe 0x6a682b
mov dword [edi], esi
movzx edi, word [ebx + 0x60]
movzx esi, word [ebx + 0x62]
sub esi, edi
push 0x10
inc esi
pop edi
cmp esi, edi
mov dword [ebp + 0x78], esi
jbe 0x6a6843
mov dword [ebp + 0x78], edi
imul eax, dword [ebp + 0x78]
cmp eax, dword [ebp + 0x7c]
lea edi, [ebx + 0x4bc]
mov dword [edi], ecx
mov ecx, dword [ebx + 0x4cc]
lea esi, [ebx + 0x4d8]
mov dword [esi], ecx
jbe 0x6a6882
mov eax, dword [edi]
cmp eax, 0x100
jae 0x6a6882
add eax, eax
mov ecx, eax
imul ecx, eax
mov dword [edi], eax
mov eax, dword [ebx + 0x4b4]
imul eax, dword [ebp + 0x78]
cmp eax, ecx
ja 0x6a6862
mov ecx, dword [edi]
cmp dword [ebx + 0x4cc], ecx
jae 0x6a688e
mov dword [esi], ecx
mov eax, dword [esi]
imul ecx, ecx
imul eax, eax
push 1
mov dword [ebx + 0x4dc], eax
mov dword [ebx + 0x4c8], eax
lea eax, [ebx + 0x498]
push eax
push 0
push edx
push edi
push edi
push dword [ebx + 8]
mov dword [ebx + 0x4c0], ecx
mov dword [ebx + 0x4ac], ecx
call fcn.0069a788
test eax, eax
jl 0x6a69ff
push 1
lea eax, [ebx + 0x498]
push eax
push 0
lea eax, [ebx + 0x4d4]
push eax
push esi
push esi
push dword [ebx + 8]
call fcn.0069a788
test eax, eax
jl 0x6a69ff
cmp dword [ebx + 0x498], 0x15
jne 0x6a69fa
mov eax, dword [edi]
cmp eax, dword [ebx + 0x4b0]
jb 0x6a69fa
mov eax, dword [esi]
cmp eax, dword [ebx + 0x4cc]
jb 0x6a69fa
cmp dword [ebx + 0x4d4], 1
push 7
lea edi, [ebx + 0x4e0]
pop ecx
lea esi, [ebx + 0x4a8]
rep movsd dword es:[edi], dword [esi]
jbe 0x6a6954
mov eax, dword [ebx + 0x4d0]
shl eax, 3
push eax
call fcn.00685d18
xor esi, esi
cmp eax, esi
pop ecx
mov dword [ebx + 0x4fc], eax
jne 0x6a6956
jmp 0x6a639d
xor esi, esi
xor eax, eax
cmp dword [0x79d130], esi
je 0x6a6983
lea ecx, [ebx + 0x78]
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
lea eax, [ebx + 0x74]
push eax
push dword [ebx + 0x10]
mov dword [ecx], 0x10
call dword [0x79d15c]
cmp eax, esi
jge 0x6a69f6
jmp 0x6a69ff
push 9
pop ecx
lea edi, [ebp + 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x7e]
push esi
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x48]
push eax
xor edi, edi
inc edi
cmp dword [0x79d120], esi
push esi
push edi
lea eax, [ebx + 0x64]
push eax
push dword [ebx + 0x10]
mov dword [ebp + 0x48], 0x24
mov dword [ebp + 0x64], edi
je 0x6a69bc
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x6a69c2
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
cmp dword [0x79d120], esi
lea eax, [ebx + 0x7c]
push esi
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x48]
push eax
push esi
push edi
lea eax, [ebx + 0x66]
push eax
push dword [ebx + 0x10]
mov dword [ebp + 0x48], 0x24
mov dword [ebp + 0x64], edi
je 0x6a69f0
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x6a69f6
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
xor eax, eax
jmp 0x6a69ff
mov eax, 0x88760b59
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc