Function at 0x41b8ce
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [ebp + 8]
test eax, eax
push ebx
mov ebx, ecx
je 0x41b8e9
cmp dword [ebp + 0xc], 0
jne 0x41b8f3
mov eax, 0x8876086c
jmp 0x41c006
push esi
push edi
mov dword [ebx + 8], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
cmp dword [0x53d224], 0
jne 0x41bb2e
mov dword [0x53d224], 1
call fcn.0040269a
cmp dword [0x53d210], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x41b98f
mov edi, str.gdi32.dll
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 8], eax
jne 0x41b94a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 8], eax
je 0x41b98f
push str.GetCharABCWidthsI
push dword [ebp + 8]
call esi
test eax, eax
mov dword [0x53d228], eax
je 0x41bf4f
push str.GetCharWidthI
push dword [ebp + 8]
call esi
test eax, eax
mov dword [0x53d22c], eax
je 0x41bf4f
push str.GetFontUnicodeRanges
push dword [ebp + 8]
call esi
test eax, eax
mov dword [0x53d230], eax
je 0x41bf4f
push str.usp10.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x41b9b5
push str.usp10.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41bb2e
push str.ScriptItemize
push edi
mov dword [0x53d234], 1
call esi
test eax, eax
mov dword [0x53d238], eax
je 0x41bf4f
push str.ScriptShape
push edi
call esi
test eax, eax
mov dword [0x53d23c], eax
je 0x41bf4f
push str.ScriptPlace
push edi
call esi
test eax, eax
mov dword [0x53d240], eax
je 0x41bf4f
push str.ScriptBreak
push edi
call esi
test eax, eax
mov dword [0x53d244], eax
je 0x41bf4f
push str.ScriptJustify
push edi
call esi
test eax, eax
mov dword [0x53d248], eax
je 0x41bf4f
push str.ScriptTextOut
push edi
call esi
test eax, eax
mov dword [0x53d24c], eax
je 0x41bf4f
push str.ScriptGetProperties
push edi
call esi
test eax, eax
mov dword [0x53d250], eax
je 0x41bf4f
push str.ScriptFreeCache
push edi
call esi
test eax, eax
mov dword [0x53d254], eax
je 0x41bf4f
push str.ScriptRecordDigitSubstitution
push edi
call esi
test eax, eax
mov dword [0x53d258], eax
je 0x41bf4f
push str.ScriptApplyDigitSubstitution
push edi
call esi
test eax, eax
mov dword [0x53d25c], eax
je 0x41bf4f
push str.ScriptGetFontProperties
push edi
call esi
test eax, eax
mov dword [0x53d260], eax
je 0x41bf4f
push str.ScriptStringAnalyse
push edi
call esi
test eax, eax
mov dword [0x53d264], eax
je 0x41bf4f
push str.ScriptStringOut
push edi
call esi
test eax, eax
mov dword [0x53d268], eax
je 0x41bf4f
push str.ScriptStringFree
push edi
call esi
test eax, eax
mov dword [0x53d26c], eax
je 0x41bf4f
push str.ScriptStringCPtoX
push edi
call esi
test eax, eax
mov dword [0x53d270], eax
je 0x41bf4f
push str.ScriptString_pSize
push edi
call esi
test eax, eax
mov dword [0x53d274], eax
je 0x41bf4f
lea eax, [ebp + 8]
push eax
push 0x53d284
call dword [0x53d250]
push 0x53d278
push 0x400
call dword [0x53d258]
xor esi, esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, esi
mov dword [ebx + 0x10], eax
je 0x41bf4f
push 1
push eax
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp dword [0x53d210], esi
jne 0x41bb5e
push 1
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetTextAlign]
cmp dword [ebp + 0x10], esi
je 0x41bc0c
cmp dword [0x53d210], esi
jne 0x41bbaa
mov eax, dword [ebp + 0xc]
push 6
pop ecx
mov esi, eax
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push ecx
push ecx
push 0x20
lea edx, [ebp - 0x7c]
push edx
push 0xffffffffffffffff
add eax, 0x18
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and dword [ebp + 0x10], 0
lea eax, [ebp - 0x94]
mov byte [ebp - 0x5d], 0
mov dword [ebp + 0xc], eax
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x41bc0c
push 0x17
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x58], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x4c], ecx
mov cl, byte [eax + 0x10]
mov byte [ebp - 0x48], cl
mov cl, byte [eax + 0x14]
mov byte [ebp - 0x45], cl
mov cl, byte [eax + 0x15]
mov byte [ebp - 0x44], cl
mov cl, byte [eax + 0x16]
mov byte [ebp - 0x42], cl
mov cl, byte [eax + 0x17]
mov byte [ebp - 0x41], cl
push 0x10
lea esi, [eax + 0x18]
pop ecx
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x42], 7
jne 0x41bc00
or byte [ebp - 0x42], 4
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x41bc67
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov cl, byte [eax + 0x10]
mov byte [ebp - 0x28], cl
mov cl, byte [eax + 0x14]
mov byte [ebp - 0x25], cl
mov cl, byte [eax + 0x15]
mov byte [ebp - 0x24], cl
mov cl, byte [eax + 0x16]
mov byte [ebp - 0x22], cl
mov cl, byte [eax + 0x17]
mov byte [ebp - 0x21], cl
push 8
lea esi, [eax + 0x18]
pop ecx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x22], 7
jne 0x41bc5d
or byte [ebp - 0x22], 4
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
test eax, eax
mov dword [ebx + 0x14], eax
je 0x41bf4f
push dword [ebx + 0x14]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push dword [ebx + 0x10]
mov dword [ebx + 0x4fc], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
call dword [sym.imp.GDI32.dll_GetFontLanguageInfo]
mov dword [ebx + 0x6c], eax
cmp dword [0x53d210], 0
je 0x41bcb1
lea eax, [ebx + 0x30]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x41bcf5
lea eax, [ebp - 0x38]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
movzx ax, byte [ebp - 0xc]
mov word [ebx + 0x5c], ax
movzx ax, byte [ebp - 0xb]
push 0xb
mov word [ebx + 0x5e], ax
movzx ax, byte [ebp - 0xa]
lea edi, [ebx + 0x30]
pop ecx
lea esi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x64]
lea esi, [ebp - 8]
movsd dword es:[edi], dword [esi]
mov word [ebx + 0x60], ax
movzx ax, byte [ebp - 9]
movsb byte es:[edi], byte [esi]
mov word [ebx + 0x62], ax
mov ecx, dword [ebx + 0x48]
lea eax, [ebx + 0x24]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 0x28], ecx
lea ecx, [ebx + 0x2c]
push ecx
push eax
mov ecx, ebx
call fcn.0041b353
xor esi, esi
cmp eax, esi
mov dword [ebx + 0x1c], eax
je 0x41bf4f
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 + 0x90]
mov dword [ebx + 0x8c], esi
rep stosd dword es:[edi], eax
inc eax
cmp dword [ebx + 0x30], eax
lea edx, [ebx + 0x4b4]
mov dword [ebx + 0x494], 0x15
mov dword [ebx + 0x498], esi
mov dword [ebx + 0x4a4], esi
mov dword [ebx + 0x4c0], esi
mov dword [ebx + 0x4ac], eax
mov dword [edx], eax
jbe 0x41bda6
shl dword [ebx + 0x4ac], 1
inc dword [edx]
mov eax, dword [ebx + 0x4ac]
cmp eax, dword [ebx + 0x30]
jb 0x41bd93
mov eax, dword [ebx + 0x4ac]
mov ecx, dword [edx]
mov dword [ebx + 0x4c8], eax
mov dword [ebx + 0x4d0], ecx
jmp 0x41bdca
shl dword [ebx + 0x4ac], 1
inc dword [edx]
mov eax, dword [ebx + 0x4ac]
cmp eax, dword [ebx + 0x44]
jb 0x41bdbc
jmp 0x41bddd
shl dword [ebx + 0x4c8], 1
inc dword [ebx + 0x4d0]
mov eax, dword [ebx + 0x4c8]
cmp eax, dword [ebx + 0x48]
jb 0x41bdd1
mov esi, dword [ebx + 0x4c8]
mov ecx, dword [ebx + 0x4ac]
mov edi, esi
mov eax, ecx
imul edi, esi
mov esi, dword [ebx + 0x4fc]
imul eax, ecx
test esi, esi
mov dword [ebp + 0x10], eax
mov dword [ebx + 0x4b0], eax
mov dword [ebx + 0x4cc], edi
je 0x41be29
cmp dword [edx], esi
jbe 0x41be1d
mov dword [edx], esi
lea edi, [ebx + 0x4d0]
cmp dword [edi], esi
jbe 0x41be29
mov dword [edi], esi
movzx edi, word [ebx + 0x5c]
movzx esi, word [ebx + 0x5e]
sub esi, edi
inc esi
mov edi, 0x80
cmp esi, edi
mov dword [ebp + 0xc], esi
jbe 0x41be43
mov dword [ebp + 0xc], edi
imul eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
lea edi, [ebx + 0x4b8]
mov dword [edi], ecx
mov ecx, dword [ebx + 0x4c8]
lea esi, [ebx + 0x4d4]
mov dword [esi], ecx
jbe 0x41be82
mov eax, dword [edi]
cmp eax, 0x100
jae 0x41be82
add eax, eax
mov ecx, eax
imul ecx, eax
mov dword [edi], eax
mov eax, dword [ebx + 0x4b0]
imul eax, dword [ebp + 0xc]
cmp eax, ecx
ja 0x41be62
mov ecx, dword [edi]
cmp dword [ebx + 0x4c8], ecx
jae 0x41be8e
mov dword [esi], ecx
mov eax, dword [esi]
imul ecx, ecx
imul eax, eax
push 1
mov dword [ebx + 0x4d8], eax
mov dword [ebx + 0x4c4], eax
lea eax, [ebx + 0x494]
push eax
push 0
push edx
push edi
push edi
push dword [ebx + 8]
mov dword [ebx + 0x4bc], ecx
mov dword [ebx + 0x4a8], ecx
call fcn.0040173a
test eax, eax
jl 0x41c004
push 1
lea eax, [ebx + 0x494]
push eax
push 0
lea eax, [ebx + 0x4d0]
push eax
push esi
push esi
push dword [ebx + 8]
call fcn.0040173a
test eax, eax
jl 0x41c004
cmp dword [ebx + 0x494], 0x15
jne 0x41bfff
mov eax, dword [edi]
cmp eax, dword [ebx + 0x4ac]
jb 0x41bfff
mov eax, dword [esi]
cmp eax, dword [ebx + 0x4c8]
jb 0x41bfff
cmp dword [ebx + 0x4d0], 1
push 7
lea edi, [ebx + 0x4dc]
pop ecx
lea esi, [ebx + 0x4a4]
rep movsd dword es:[edi], dword [esi]
jbe 0x41bf59
mov eax, dword [ebx + 0x4cc]
shl eax, 3
push eax
call fcn.0049e639
xor esi, esi
cmp eax, esi
pop ecx
mov dword [ebx + 0x4f8], eax
jne 0x41bf5b
mov eax, 0x8007000e
jmp 0x41c004
xor esi, esi
xor eax, eax
cmp dword [0x53d234], esi
je 0x41bf88
lea ecx, [ebx + 0x74]
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 + 0x70]
push eax
push dword [ebx + 0x10]
mov dword [ecx], 0x10
call dword [0x53d260]
cmp eax, esi
jge 0x41bffb
jmp 0x41c004
push 9
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x7a]
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
xor edi, edi
inc edi
cmp dword [0x53d210], esi
push esi
push edi
lea eax, [ebx + 0x60]
push eax
push dword [ebx + 0x10]
mov dword [ebp - 0x24], 0x24
mov dword [ebp - 8], edi
je 0x41bfc1
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x41bfc7
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
cmp dword [0x53d210], esi
lea eax, [ebx + 0x78]
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
lea eax, [ebx + 0x62]
push eax
push dword [ebx + 0x10]
mov dword [ebp - 0x24], 0x24
mov dword [ebp - 8], edi
je 0x41bff5
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x41bffb
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
xor eax, eax
jmp 0x41c004
mov eax, 0x88760b59
pop edi
pop esi
pop ebx
leave
ret 0xc