Function at 0x46f3a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
xor ecx, ecx
push edi
mov eax, dword [ebp + 0x148]
mov edx, dword [ebp + 0xd8]
lea esi, [ebp + 0x90]
cmp eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x68], edx
jle 0x46f3f5
cmp dword [ebp + 0x138], ecx
jl 0x46f3ff
cmp eax, ecx
jge 0x46f405
cmp dword [ebp + 0x138], ecx
jle 0x46f405
neg edx
mov dword [esp + 0x68], edx
mov eax, dword [esi + 0x40]
lea edi, [esi + 0x40]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0xa8], eax
jne 0x46f425
mov eax, 0x14d
mov dword [esp + 0xa8], eax
push 0
mov dword [esp + 0xc0], eax
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov ebx, eax
mov dword [esi + 0x48], 0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esi + 0x48], ecx
je 0x46f49d
mov edx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [esp + 0x78], eax
je 0x46f492
lea eax, [esp + 0x1b8]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
je 0x46f486
mov ecx, dword [esp + 0x1bc]
mov dword [esp + 0xbc], ecx
mov edx, dword [esp + 0x78]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
push edi
push 0
mov word [ebp + 0x19c], 1
call sub.CDRFNT110.dll_CFMBeginFontAccessFromLogfont
push edi
mov dword [esp + 0x24], eax
call sub.CRLI18N110.dll__CorIsFarEastFont_4
mov ecx, dword [ebp + 0x48]
lea edx, [esp + 0x100]
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x46f4ec
push esi
call fcn.0046f0b0
add esp, 4
mov eax, dword [esp + 0x21c]
mov dx, word [eax + 4]
mov ecx, edx
and ecx, 0xffff
cmp ecx, 0x521
je 0x46f513
cmp ecx, 0xa32
jne 0x470078
cmp dx, 0x521
jne 0x46f578
lea ecx, [eax + 8]
xor ebx, ebx
mov bx, word [eax + 6]
mov dword [esp + 0x1c], ecx
mov cl, byte [esi + 4]
mov dword [esp + 0x9c], ebx
test cl, 1
je 0x46f557
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x98]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
jmp 0x46f631
mov ecx, dword [eax]
mov dword [esp + 0x2c], 0
movsx edx, word [eax + ecx*2 - 2]
mov dword [esp + 0x24], edx
movsx eax, word [eax + ecx*2 - 4]
mov dword [esp + 0x28], eax
jmp 0x46f631
mov dx, word [eax + 0xc]
xor ebx, ebx
mov bx, word [eax + 0xa]
mov ecx, edx
and ecx, 0x10
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x2c], ecx
mov cl, byte [esi + 4]
test cl, 1
je 0x46f5ac
mov ecx, dword [esi + 0x94]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x98]
jmp 0x46f5b8
movsx ecx, word [eax + 8]
mov dword [esp + 0x24], ecx
movsx ecx, word [eax + 6]
test dx, dx
mov dword [esp + 0x28], ecx
je 0x46f5fe
lea ecx, [eax + 0x16]
mov dword [esp + 0x48], 8
mov dword [esp + 0x1c], ecx
movsx ecx, word [eax + 0xe]
mov dword [esp + 0x100], ecx
movsx ecx, word [eax + 0x10]
mov dword [esp + 0x104], ecx
movsx ecx, word [eax + 0x12]
movsx eax, word [eax + 0x14]
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], eax
jmp 0x46f60d
add eax, 0xe
mov dword [esp + 0x48], 4
mov dword [esp + 0x1c], eax
test dl, 2
je 0x46f631
mov word [ebp + 0x820], 1
mov ecx, dword [esi + 0x90]
lea edx, [ebp + 0x1a0]
push ecx
push edx
call fcn.004758a0
add esp, 8
test ebx, ebx
je 0x470633
lea eax, [ebx*4 + 4]
lea ecx, [esp + 0x70]
push eax
lea edx, [esp + 0x90]
push ecx
push edx
call sub.CRLUTL110.dll__MEMMANAllocLock_12
test eax, eax
jne 0x46f664
mov dword [esp + 0x18], 3
jmp 0x470633
cmp ebx, dword [ebp + 0x4c]
jbe 0x46f689
lea eax, [ebx + 0x14]
push ebp
push eax
call fcn.0046f280
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x470633
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x34], ecx
cmp ebx, 1
jb 0x46f8e7
lea edx, [ebx + ebx + 2]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x78]
push eax
push ecx
call sub.CRLUTL110.dll__MEMMANAllocLock_12
test eax, eax
jne 0x46f6b7
mov dword [esp + 0x18], 3
jmp 0x470633
call sub.CRLI18N110.dll__CorIsFarEastWindow_0
test eax, eax
jne 0x46fa76
mov al, byte [esi + 0x57]
cmp al, 0xb1
je 0x46f6d7
cmp al, 0xb2
je 0x46f6d7
cmp al, 0xb3
jne 0x46fa4f
mov edx, dword [ebp + 0x198]
push edx
call fcn.0040e750
cmp eax, 0xc
je 0x46fa4f
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], 3
test eax, eax
jne 0x46f89b
push 0
call sub.CRLUTL110.dll__CgiCreateCompatibleDC_4
mov edx, dword [esp + 0x20]
mov edi, eax
lea eax, [esp + 0xcc]
lea ecx, [esp + 0xb4]
push eax
push ecx
push edx
mov dword [esp + 0x24], edi
call sub.CDRFNT110.dll_CFMGetIndexAndStyle
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xb4]
push 0
push 0
push 0
push 0xa
push eax
push ecx
push edi
call sub.CDRFNT110.dll_CFMBeginFontAccess
mov dword [esp + 0x7c], eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x110]
lea ebp, [ebx*4]
rep stosd dword es:[edi], eax
push ebp
mov dword [esp + 0x114], 0x24
mov dword [esp + 0x130], ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x12c], edi
push ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x124], edi
add esp, 8
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46f7c5
mov eax, dword [eax]
jmp 0x46f7c7
xor eax, eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x110]
push 0x32
push ecx
push 0
push ebx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
mov eax, dword [esi + 0xa4]
mov ebx, dword [esp + 0x12c]
xor edi, edi
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0xb4]
cdq
shl ecx, 1
idiv ecx
xor esi, esi
mov dword [esp + 0x6c], edi
test ebx, ebx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
jbe 0x46f866
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x14]
mov ax, word [edx + esi*2]
mov word [ecx + esi*2], ax
mov edx, dword [esp + 0x14]
cmp word [edx + esi*2], 3
je 0x46f842
mov eax, dword [esp + 0x11c]
fild dword [eax + esi*4]
fmul st(1)
call sub.MSVCRT.dll__ftol
add edi, eax
jmp 0x46f859
mov ecx, dword [esp + 0x11c]
xor edi, edi
fild dword [ecx + esi*4]
fmul st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x70]
inc esi
cmp esi, ebx
mov dword [edx + esi*4 - 4], edi
jb 0x46f80f
mov eax, dword [esp + 0x7c]
push eax
fstp st(0)
call sub.CDRFNT110.dll_CFMEndFontAccess
mov ecx, dword [esp + 0x18]
push ecx
call sub.CRLUTL110.dll__CgiDeleteDC_4
mov edx, dword [esp + 0x128]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push edx
call esi
mov eax, dword [esp + 0x120]
push eax
call esi
add esp, 8
jmp 0x46f8df
xor eax, eax
test ebx, ebx
jbe 0x46f8b8
mov ecx, dword [esp + 0x1c]
movsx dx, byte [eax + ecx]
mov esi, dword [esp + 0x14]
inc eax
cmp eax, ebx
mov word [esi + eax*2 - 2], dx
jb 0x46f8a5
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
push eax
push ebx
push ecx
push esi
call sub.CDRFNT110.dll_CFMGetCharPositions
lea edx, [esp + 0x6c]
lea eax, [esp + 0x10]
push edx
push 1
push eax
push esi
call sub.CDRFNT110.dll_CFMGetCharWidths
mov dword [esp + 0x2c], 1
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
cmp eax, esi
jne 0x46f913
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x14]
push 1
push edx
push eax
call sub.CDRFNT110.dll_CFMGetCharWidths
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [esp + 0x21c]
mov dword [esp + 0x18], esi
cmp word [eax + 4], 0xa32
jne 0x46faf1
mov ecx, dword [esp + 0x48]
lea edi, [ebx + 1]
shr edi, 1
lea edx, [edi + ebx]
lea edx, [edx + ecx + 3]
mov ecx, dword [eax]
cmp ecx, edx
jne 0x46faf1
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x46faf1
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
push edx
push 1
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esp + 0x24]
movzx cx, byte [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.CDRFNT110.dll_CFMGetCharExtents
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x21c]
mov dword [esp + 0x4c], edx
neg eax
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x48]
add edi, eax
mov dword [esp + 0x54], edx
lea ebp, [ecx + edi*2 + 6]
mov edi, 1
cmp ebx, edi
jbe 0x46fdc0
mov edx, dword [esp + 0x34]
lea esi, [edx + 8]
movsx eax, word [ebp]
mov ecx, dword [esi - 8]
mov edx, dword [esp + 0x1c]
add ecx, eax
add ebp, 2
mov dword [esi], ecx
mov dword [esi + 4], 0
movzx ax, byte [edi + edx]
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push 1
push edx
push eax
call sub.CDRFNT110.dll_CFMGetCharExtents
mov ecx, dword [esi]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
add edx, ecx
mov dword [esp + 0x38], edx
mov edx, dword [esi]
add eax, edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x4c]
push ecx
neg eax
push edx
mov dword [esp + 0x4c], eax
call sub.CRLUTL110.dll__UTLUnionRect_8
inc edi
add esi, 8
cmp edi, ebx
jb 0x46f9d9
jmp 0x46fdc0
mov ebp, dword [esp + 0x1c]
xor eax, eax
test ebx, ebx
mov dword [esp + 0x30], 0x20
jbe 0x46facb
movzx cx, byte [eax + ebp]
mov edx, dword [esp + 0x14]
inc eax
cmp eax, ebx
mov word [edx + eax*2 - 2], cx
jb 0x46fa61
jmp 0x46facb
mov ebp, dword [esp + 0x1c]
xor esi, esi
xor edi, edi
test ebx, ebx
jbe 0x46fabf
mov al, byte [esi + ebp]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x46faac
mov eax, dword [esp + 0x78]
test eax, eax
je 0x46faac
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [esi + ebp + 1]
mov ch, byte [esi + ebp]
inc esi
mov word [edx + edi*2], cx
jmp 0x46fab9
movzx ax, byte [esi + ebp]
mov ecx, dword [esp + 0x14]
mov word [ecx + edi*2], ax
inc edi
inc esi
cmp esi, ebx
jb 0x46fa82
mov edx, dword [esp + 0x14]
mov ebx, edi
mov word [edx + edi*2], 0
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x46f8eb
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push eax
push ebx
push ecx
push edx
call sub.CDRFNT110.dll_CFMGetCharPositions
jmp 0x46f8eb
mov eax, dword [esp + 0x34]
mov dword [eax], 0
mov dword [eax + 4], 0
call sub.CRLI18N110.dll__CorIsFarEastWindow_0
test eax, eax
jne 0x46fb1e
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x46fb1e
movzx ax, byte [ebp]
mov dword [esp + 0x10], eax
jmp 0x46fb29
mov ecx, dword [esp + 0x14]
mov dx, word [ecx]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call sub.CDRFNT110.dll_CFMGetCharExtents
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x50], edx
neg eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
call sub.CRLI18N110.dll__CorIsFarEastWindow_0
test eax, eax
jne 0x46fcb2
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x46fcb2
cmp ebx, 1
jbe 0x46fdc0
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov eax, 1
mov dword [esp + 0x48], 4
sub eax, ebp
lea edi, [edx + 8]
mov dword [esp + 0x7c], eax
movzx ax, byte [ebp]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
cmp ax, cx
je 0x46fbcf
cmp ax, 0xd
je 0x46fbcf
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + eax - 4]
add edx, esi
mov dword [edi], edx
jmp 0x46fc39
movzx ax, byte [ebp]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
inc esi
cmp ax, cx
mov dword [esp + 0x18], esi
je 0x46fbfe
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call sub.CDRFNT110.dll_CFMGetCharWidths
jmp 0x46fc06
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x220]
mov esi, dword [edi - 8]
add eax, 0x90
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0xc]
add esi, edx
mov edx, dword [esp + 0x5c]
add esi, ecx
mov ecx, dword [esp + 0x6c]
add esi, edx
mov edx, dword [eax + 8]
add esi, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jae 0x46fc37
inc esi
mov dword [edi], esi
mov dword [edi + 4], 0
lea eax, [esp + 0x38]
movzx dx, byte [ebp + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call sub.CDRFNT110.dll_CFMGetCharExtents
mov eax, dword [edi]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
add ecx, eax
mov dword [esp + 0x38], ecx
mov ecx, dword [edi]
add edx, ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x4c]
push eax
neg edx
push ecx
mov dword [esp + 0x4c], edx
call sub.CRLUTL110.dll__UTLUnionRect_8
mov edx, dword [esp + 0x48]
add edi, 8
add edx, 4
inc ebp
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x7c]
add edx, ebp
cmp edx, ebx
jb 0x46fba5
jmp 0x46fdc0
mov ebp, 1
cmp ebx, ebp
jbe 0x46fdc0
mov eax, dword [esp + 0x34]
lea edi, [eax + 8]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov ax, word [edx + ebp*2 - 2]
cmp ax, cx
mov dword [esp + 0x10], eax
je 0x46fcf0
cmp ax, 0xd
je 0x46fcf0
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + ebp*4 - 4]
add edx, esi
mov dword [edi], edx
jmp 0x46fd5a
mov esi, dword [esp + 0x18]
mov ax, word [edx + ebp*2 - 2]
inc esi
cmp ax, cx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
je 0x46fd1f
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call sub.CDRFNT110.dll_CFMGetCharWidths
jmp 0x46fd27
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x220]
mov esi, dword [edi - 8]
add eax, 0x90
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0xc]
add esi, edx
mov edx, dword [esp + 0x5c]
add esi, ecx
mov ecx, dword [esp + 0x6c]
add esi, edx
mov edx, dword [eax + 8]
add esi, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jae 0x46fd58
inc esi
mov dword [edi], esi
mov dword [edi + 4], 0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x38]
mov ax, word [edx + ebp*2]
push ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push 1
push edx
push eax
call sub.CDRFNT110.dll_CFMGetCharExtents
mov ecx, dword [edi]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
add edx, ecx
mov dword [esp + 0x38], edx
mov edx, dword [edi]
add eax, edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x4c]
push ecx
neg eax
push edx
mov dword [esp + 0x4c], eax
call sub.CRLUTL110.dll__UTLUnionRect_8
inc ebp
add edi, 8
cmp ebp, ebx
jb 0x46fcc6
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
neg eax
push eax
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x224]
push eax
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x54]
neg eax
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0xd0]
push eax
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
mov eax, 0x66666667
imul dword [esp + 0x68]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [edx + edx*4]
lea edx, [esp + 0xd0]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edi, [eax + eax*4]
shl edi, 6
push edi
push edx
call sub.CRLUTL110.dll__UTLRotateMatrix_8
mov eax, dword [ebp + 0x148]
test eax, eax
jle 0x46fe43
mov ecx, dword [ebp + 0x138]
test ecx, ecx
jl 0x46fe4f
test eax, eax
jge 0x46fe6e
mov eax, dword [ebp + 0x138]
test eax, eax
jle 0x46fe6e
push 0
push 0
push 0xbff00000
push 0
push 0x3ff00000
lea eax, [esp + 0xe4]
push 0
push eax
call sub.CRLUTL110.dll__UTLStretchMatrix_28
lea ecx, [esp + 0x90]
lea edx, [esp + 0xac]
push ecx
lea eax, [esp + 0xa4]
push edx
lea ecx, [esp + 0xcc]
push eax
lea edx, [esp + 0xdc]
push ecx
push edx
call sub.CRLUTL110.dll__UTLGetMatrixValues_20
mov eax, dword [esp + 0x21c]
cmp word [eax + 4], 0xa32
jne 0x46fef4
test byte [eax + 0xc], 4
je 0x46fef4
lea eax, [esp + 0x100]
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
call dword [sym.imp.USER32.dll_UnionRect]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xa8]
lea esi, [ebp + 0x90]
cmp eax, 2
jne 0x46ff33
mov ecx, dword [esp + 0x21c]
cmp word [ecx + 4], 0xa32
je 0x46ff33
mov edx, dword [esi + 0x90]
lea eax, [ebp + 0x1a0]
push edx
push eax
call fcn.004758a0
add esp, 8
mov word [ebp + 0x820], 1
call sub.CRLI18N110.dll__CorIsFarEastWindow_0
test eax, eax
jne 0x46ff54
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x46ff54
mov ecx, dword [esp + 0x1c]
movzx dx, byte [ecx + ebx - 1]
mov dword [esp + 0x10], edx
jmp 0x46ff61
mov eax, dword [esp + 0x14]
mov cx, word [eax + ebx*2 - 2]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x14]
push 1
push eax
push ecx
call sub.CDRFNT110.dll_CFMGetCharWidths
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
mov eax, dword [edx + ebx*8 - 8]
add eax, ecx
mov dword [esp + 0x30], eax
mov al, byte [esi + 4]
test al, 6
je 0x470060
lea eax, [esp + 0xd0]
push eax
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
lea ecx, [esp + 0xd0]
push edi
push ecx
call sub.CRLUTL110.dll__UTLRotateMatrix_8
mov eax, dword [ebp + 0x148]
test eax, eax
jle 0x46ffc5
mov ecx, dword [ebp + 0x138]
test ecx, ecx
jl 0x46ffd1
test eax, eax
jge 0x46fff0
mov eax, dword [ebp + 0x138]
test eax, eax
jle 0x46fff0
push 0
push 0
push 0xbff00000
push 0
push 0x3ff00000
lea edx, [esp + 0xe4]
push 0
push edx
call sub.CRLUTL110.dll__UTLStretchMatrix_28
lea eax, [esp + 0x90]
lea ecx, [esp + 0xac]
push eax
lea edx, [esp + 0xa4]
push ecx
lea eax, [esp + 0xcc]
push edx
lea ecx, [esp + 0xdc]
push eax
push ecx
call sub.CRLUTL110.dll__UTLGetMatrixValues_20
mov edx, dword [esi + 4]
and edx, 6
cmp dl, 6
jne 0x470034
fild dword [esp + 0x30]
fmul qword [0x51be90]
jmp 0x470038
fild dword [esp + 0x30]
fld st(0)
fmul qword [esp + 0xa0]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x28]
fmul qword [esp + 0xc4]
add edx, eax
mov dword [esp + 0x28], edx
call sub.MSVCRT.dll__ftol
sub dword [esp + 0x24], eax
test byte [esi + 4], 1
je 0x47007c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov dword [esi + 0x94], eax
jmp 0x47007c
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x220]
mov edx, dword [esi + 0x8c]
push edx
lea eax, [edi + 0x1a0]
push eax
call fcn.004758a0
add esp, 8
lea ecx, [esp + 0xd0]
push ecx
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
mov eax, 0x66666667
lea ecx, [esp + 0xd0]
imul dword [esp + 0x68]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0xb4], edx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ebp, [eax + eax*4]
lea ebp, [ebp + ebp*4]
shl ebp, 6
push ebp
push ecx
call sub.CRLUTL110.dll__UTLRotateMatrix_8
mov eax, dword [edi + 0x148]
test eax, eax
jle 0x4700fa
mov ecx, dword [edi + 0x138]
test ecx, ecx
jl 0x470106
test eax, eax
jge 0x470125
mov eax, dword [edi + 0x138]
test eax, eax
jle 0x470125
push 0
push 0
push 0xbff00000
push 0
push 0x3ff00000
lea edx, [esp + 0xe4]
push 0
push edx
call sub.CRLUTL110.dll__UTLStretchMatrix_28
lea eax, [esp + 0x90]
lea ecx, [esp + 0xac]
push eax
lea edx, [esp + 0xa4]
push ecx
lea eax, [esp + 0xcc]
push edx
lea ecx, [esp + 0xdc]
push eax
push ecx
call sub.CRLUTL110.dll__UTLGetMatrixValues_20
test byte [esi + 4], 0x18
jne 0x470187
fild dword [esp + 0xbc]
fld st(0)
fmul qword [esp + 0x90]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x28]
fmul qword [esp + 0xa0]
add edx, eax
mov dword [esp + 0x28], edx
call sub.MSVCRT.dll__ftol
add dword [esp + 0x24], eax
add esi, 0xc8
mov ecx, 0xc
lea edi, [esp + 0x160]
lea edx, [esp + 0xd0]
mov dword [esp + 0x7c], esi
push edx
rep movsd dword es:[edi], dword [esi]
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
lea edx, [esp + 0xd4]
push ecx
push edx
call sub.CRLUTL110.dll__UTLTranslateMatrix_12
mov eax, dword [esp + 0x220]
mov eax, dword [eax + 0x148]
test eax, eax
jle 0x4701e7
mov ecx, dword [esp + 0x220]
mov edx, dword [ecx + 0x138]
test edx, edx
jl 0x4701fa
test eax, eax
jge 0x470207
mov edx, dword [esp + 0x220]
mov eax, dword [edx + 0x138]
test eax, eax
jle 0x470207
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebp
jmp 0x47023a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
mov eax, 0x99999999
imul dword [esp + 0x6c]
sar edx, 2
mov eax, edx
push ecx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 6
push ecx
lea edx, [esp + 0xdc]
push edx
call sub.CRLUTL110.dll__UTLRotateMatrixAround_16
lea eax, [esp + 0x160]
lea ecx, [esp + 0xd0]
push eax
push ecx
call sub.CRLUTL110.dll__UTLTransformMatrix_8
lea edx, [esp + 0x60]
lea eax, [esp + 0x190]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x6c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00438de0
lea ecx, [esp + 0xd0]
push 5
lea edx, [esp + 0x194]
push ecx
push edx
call sub.CRLUTL110.dll__UTLTransformPoint_12
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x98]
lea ecx, [esp + 0x15c]
push eax
push ecx
push edx
call sub.CDRFNT110.dll_CFMGetIndexAndStyle
mov eax, dword [esp + 0x98]
and eax, 0x1c0000
cmp eax, 0x40000
je 0x4702dd
cmp eax, 0xc0000
jne 0x47037c
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x144], ecx
lea ecx, [eax + 1]
mov dword [esp + 0x138], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x134], edx
mov dword [esp + 0x148], ecx
mov dword [esp + 0x14c], edx
mov dword [esp + 0x150], ecx
mov dword [esp + 0x154], edx
mov byte [esp + 0x60], 0x44
mov eax, 1
mov cl, byte [esp + 0x60]
mov byte [esp + eax + 0x60], cl
inc eax
cmp eax, 5
jb 0x47033d
mov al, byte [esp + 0x60]
mov dl, byte [esp + 0x64]
and al, 0x3f
and dl, 0xfb
or al, 8
push 5
mov byte [esp + 0x64], al
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x138]
or dl, 8
push eax
push ecx
mov byte [esp + 0x70], dl
call sub.CRLUTL110.dll__UTLTransformPoint_12
lea edx, [esp + 0x4c]
lea eax, [esp + 0x190]
push edx
push 5
push eax
call sub.CRLUTL110.dll__UTLGetBBox_12
mov ecx, dword [esp + 0x7c]
push 1
lea edx, [esp + 0x28]
push ecx
push edx
call sub.CRLUTL110.dll__UTLTransformPoint_12
mov edi, 1
cmp ebx, edi
jbe 0x4703e2
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x1d0]
lea esi, [eax + 8]
mov edx, dword [esi]
mov ecx, dword [esi - 8]
mov eax, edx
sub eax, ecx
sub ecx, edx
cmp eax, ecx
jge 0x4703c9
mov eax, ecx
cmp eax, ebp
jg 0x4703d7
inc edi
add esi, 8
cmp edi, ebx
jb 0x4703b8
jmp 0x4703e2
mov dword [esp + 0xc0], 1
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0xd0]
push ebx
push ecx
push edx
call sub.CRLUTL110.dll__UTLTransformPoint_12
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x4704a8
mov ebx, dword [esp + 0x9c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x74]
lea eax, [ebx + ebx + 2]
push eax
push ecx
push edx
call sub.CRLUTL110.dll__MEMMANAllocLock_12
test eax, eax
jne 0x47042d
mov dword [esp + 0x18], 3
jmp 0x470633
call sub.CRLI18N110.dll__CorIsFarEastWindow_0
test eax, eax
jne 0x470453
test ebx, ebx
jbe 0x4704a8
mov ecx, dword [esp + 0x1c]
movzx dx, byte [eax + ecx]
mov esi, dword [esp + 0x14]
inc eax
cmp eax, ebx
mov word [esi + eax*2 - 2], dx
jb 0x47043e
jmp 0x4704a8
xor esi, esi
xor edi, edi
test ebx, ebx
jbe 0x47049c
mov ebp, dword [esp + 0x1c]
mov al, byte [esi + ebp]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x470489
mov eax, dword [esp + 0x78]
test eax, eax
je 0x470489
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [esi + ebp + 1]
mov ch, byte [esi + ebp]
inc esi
mov word [edx + edi*2], cx
jmp 0x470496
movzx ax, byte [esi + ebp]
mov ecx, dword [esp + 0x14]
mov word [ecx + edi*2], ax
inc edi
inc esi
cmp esi, ebx
jb 0x47045f
mov edx, dword [esp + 0x14]
mov ebx, edi
mov word [edx + edi*2], 0
fild dword [esp + 0xb4]
mov eax, dword [esp + 0x220]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0xbfe00000
fst qword [esp + 0xb4]
fcomp qword [0x51be98]
lea edi, [eax + 0x820]
mov word [edi], 1
fnstsw ax
test ah, 1
jne 0x4704f3
mov dword [esp + 0x80], 0x3fe00000
lea ecx, [esp + 0x90]
lea edx, [esp + 0xac]
push ecx
push edx
push 0
lea eax, [esp + 0xdc]
push 0
push eax
call sub.CRLUTL110.dll__UTLGetMatrixValues_20
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__hypot]
fimul dword [esp + 0xb8]
add esp, 0x10
fabs
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x160]
mov ebp, eax
push edx
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
fld qword [esp + 0xb4]
fmul qword [0x51cf38]
mov eax, dword [esp + 0xc0]
push eax
fadd qword [esp + 0x80]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov edx, dword [esp + 0x230]
lea eax, [esp + 0x170]
push ebx
lea ecx, [esp + 0x60]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
lea esi, [edx + 0x19c]
push edi
push esi
lea eax, [esp + 0x214]
push ebp
push eax
mov eax, edx
push ecx
mov edx, dword [eax + 0x198]
push edx
call dword [eax + 0x8ac]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x98]
and eax, 0x1c0000
cmp eax, 0x40000
je 0x4705de
cmp eax, 0xc0000
jne 0x470633
mov ebx, dword [esp + 0x220]
mov eax, dword [ebx + 0x198]
push eax
call fcn.0040e750
cmp eax, 0xc
je 0x470633
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x134]
push ecx
push 5
push edx
call sub.CRLUTL110.dll__UTLGetBBox_12
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x60]
push eax
mov eax, dword [ebx + 0x198]
push 0
push edi
push esi
lea edx, [esp + 0x144]
push ecx
push edx
push 5
push eax
call dword [ebx + 0x8a8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x470645
lea ecx, [esp + 0x74]
push ecx
call sub.CRLUTL110.dll__MEMMANUnlockFree_4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x470653
push eax
call sub.CDRFNT110.dll_CFMEndFontAccess
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x47066b
lea edx, [esp + 0x8c]
push edx
call sub.CRLUTL110.dll__MEMMANUnlockFree_4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret