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

Disassembly:
push 0xffffffffffffffff
push 0x5d28e7
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x613ad0]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x144]
mov edx, dword [esp + 0x150]
mov esi, dword [esp + 0x138]
mov edi, dword [esp + 0x140]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x158]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], edx
mov dword [esp + 0x5c], eax
call fcn.00413700
xor ebx, ebx
lea ecx, [esp + 0x88]
mov dword [esp + 0x130], ebx
call fcn.00442960
cmp dword [0x615428], ebx
mov byte [esp + 0x130], 1
jne 0x46b062
lea ecx, [edi + 0xcc]
mov dword [esp + 0x28], ecx
jmp 0x46b103
cmp esi, ebx
je 0x46b0c2
push edi
mov ecx, esi
call fcn.0045f2f0
mov esi, eax
cmp esi, ebx
je 0x46b0c2
mov edx, dword [esi + 0x23c]
push 1
push edx
call sym.LectoraViewer.exe__TerSetModify_8
mov ecx, dword [esi + 0x23c]
push ebx
lea eax, [esp + 0xa0]
push eax
push ecx
call sym.LectoraViewer.exe__GetTerBuffer_12
cmp eax, ebx
je 0x46b0a8
push eax
lea ecx, [esp + 0x8c]
call fcn.00442bc0
mov eax, dword [esi + 0x23c]
push ebx
lea edx, [esp + 0x8c]
push eax
mov dword [esp + 0x30], edx
call sym.LectoraViewer.exe__TerSetModify_8
jmp 0x46b103
mov eax, dword [edi + 0xe0]
push eax
lea ecx, [esp + 0x8c]
call fcn.00442ce0
lea ecx, [esp + 0x88]
call fcn.00442540
test eax, eax
je 0x46b0f8
lea ecx, [edi + 0xcc]
push ecx
lea ecx, [esp + 0x8c]
call fcn.00443050
lea edx, [esp + 0x88]
mov dword [esp + 0x28], edx
push ebx
mov ecx, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0041ce00
push ebx
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.0041ce20
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
call fcn.004146c0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x64]
push 0xff0062
push ecx
mov ecx, dword [eax + 4]
push edx
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
xor esi, esi
cmp dword [edi + 0x128], ebx
je 0x46b199
mov edx, dword [edi + 0x124]
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.GDI32.dll_GetNearestColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 4]
push esi
lea edx, [esp + 0x1c]
push edx
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, 1
mov ebp, dword [edi + 0x118]
cmp ebp, ebx
jbe 0x46b2cb
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
add eax, esi
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x120]
add ebx, esi
sub ecx, esi
sub edx, esi
and eax, 3
cmp eax, 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
jne 0x46b1e4
push eax
jmp 0x46b1eb
cmp eax, 2
jne 0x46b21e
push 0
movzx edx, byte [edi + 0x11e]
movzx ecx, byte [edi + 0x11d]
movzx eax, byte [edi + 0x11c]
push edx
mov edx, dword [esp + 0x6c]
push ecx
push eax
mov eax, dword [edx + 4]
push ebp
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.00469530
add esp, 0x1c
jmp 0x46b2c5
mov ecx, dword [edi + 0x11c]
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 4]
push ecx
push eax
shr ebp, 1
call dword [sym.imp.GDI32.dll_GetNearestColor]
mov ecx, dword [edi + 0x118]
push eax
push ecx
push 0
lea ecx, [esp + 0x38]
call fcn.0058f703
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x134], 2
call fcn.0058f669
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
add eax, ebp
add ebx, ebp
test ebp, ebp
je 0x46b284
mov ecx, 1
sub ecx, ebp
add dword [esp + 0x44], ecx
mov edx, 1
sub edx, ebp
add dword [esp + 0x48], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
push ebx
push eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x64]
push edx
call fcn.0058f669
lea ecx, [esp + 0x2c]
mov byte [esp + 0x130], 1
mov dword [esp + 0x2c], vtable.CPen.0
call fcn.0042f060
add esi, dword [edi + 0x118]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0xe4]
add edx, esi
cmp eax, 0xffffffff
je 0x46b337
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x64]
add ecx, esi
sub ebp, esi
sub ebx, esi
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_GetNearestColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x64]
mov ebp, eax
mov eax, dword [edx + 4]
push ebp
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.USER32.dll_FillRect]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x46b385
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea ebp, [esi + ebx]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x14c]
push 0xcc0020
add ebx, esi
push ebx
mov ebx, dword [esp + 0x150]
add ebx, esi
push ebx
mov ebx, dword [esp + 0x64]
mov ebx, dword [ebx + 4]
push ebx
sub ecx, esi
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x78]
sub eax, esi
sub eax, ebp
push eax
push edx
mov edx, dword [ecx + 4]
push ebp
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
add esi, dword [edi + 0x114]
cmp dword [esp + 0x154], 0
mov ebx, dword [esp + 0x14]
jne 0x46b68e
mov ebp, dword [esp + 0x28]
push 0
push str._rtf
mov ecx, ebp
call fcn.00442570
test eax, eax
je 0x46b510
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xcc]
push ecx
push edx
call fcn.0042d130
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push 0x5a
push ebp
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
mov eax, dword [esp + 0xcc]
push 0x48
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push ebp
push 0
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
xor ebp, ebp
cmp dword [esp + 0xd8], 0x2bc
jl 0x46b416
mov ebp, 2
cmp byte [esp + 0xdc], 0
je 0x46b423
or ebp, 4
cmp byte [esp + 0xdd], 0
je 0x46b430
or ebp, 1
lea ecx, [esp + 0x3c]
call fcn.00442960
lea ecx, [esp + 0xe4]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x134], 3
call fcn.00442ce0
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x46b460
mov ecx, dword [0x60f8d4]
mov edx, dword [esp + 0x50]
movzx eax, byte [esp + 0xdf]
push 1
push edx
push eax
mov eax, dword [esp + 0x60]
cdq
push ebp
xor eax, edx
sub eax, edx
push eax
push ecx
push ebx
call sym.LectoraViewer.exe__SetTerDefaultFont_28
mov eax, dword [edi + 0xd0]
test eax, eax
lea ebp, [edi + 0xcc]
jne 0x46b49e
mov ecx, dword [0x60f8d4]
mov dword [esp + 0x14], ecx
jmp 0x46b4a2
mov dword [esp + 0x14], eax
push 0
push 0
mov ecx, ebp
call fcn.00442560
mov edx, dword [esp + 0x1c]
push eax
push edx
push ebx
call sym.LectoraViewer.exe__SetTerBuffer_20
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
test eax, eax
jne 0x46b4c9
mov eax, dword [0x60f8d4]
push eax
mov ecx, ebp
call fcn.004425b0
test eax, eax
je 0x46b4fd
push 0xffffffffffffffff
push 0
push 0xb1
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x28]
call fcn.00442dc0
push eax
push ebx
call sym.LectoraViewer.exe__TerReplaceSelU_8
push 1
push ebx
call sym.LectoraViewer.exe__DeselectTerText_8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x130], 1
call fcn.00442b40
jmp 0x46b53e
mov eax, dword [ebp + 4]
test eax, eax
jne 0x46b523
mov ecx, dword [0x60f8d4]
mov dword [esp + 0x14], ecx
jmp 0x46b527
mov dword [esp + 0x14], eax
push 0
push 0
mov ecx, ebp
call fcn.00442560
mov edx, dword [esp + 0x1c]
push eax
push edx
push ebx
call sym.LectoraViewer.exe__SetTerBuffer_20
cmp dword [edi + 8], 0x424f5743
jne 0x46b570
cmp dword [edi + 0x54], 0
jne 0x46b570
test dword [edi + 0x120], 0x1000
je 0x46b570
mov eax, dword [esp + 0x5c]
push 0
push eax
push ebx
push edi
call fcn.0042b2f0
add esp, 0x10
push ebx
call sym.LectoraViewer.exe__TerQuickRepaint_4
mov ecx, dword [edi + 0xe4]
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetNearestColor]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.00413700
mov eax, esi
neg eax
push eax
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x13c], 4
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.004146c0
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x2c]
push 0xcc0020
push esi
push esi
mov esi, dword [sym.imp.GDI32.dll_BitBlt]
push eax
mov eax, dword [esp + 0xb4]
push ecx
mov ecx, dword [eax + 4]
push edx
push 0
push 0
push ecx
call esi
mov edx, dword [esp + 0xa4]
mov eax, dword [edx + 4]
push 1
push eax
push ebx
call sym.LectoraViewer.exe__TerRenderToBackground_12
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x44]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x40]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [eax + 4]
push ecx
call esi
push 0
lea ecx, [esp + 0xa4]
call fcn.004137c0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x130], 1
call fcn.00413770
mov edx, dword [esp + 0x14c]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x58]
push 0
push 0
push edx
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.00414900
push 0
lea ecx, [esp + 0x64]
call fcn.004137c0
lea ecx, [esp + 0x88]
mov byte [esp + 0x130], 0
call fcn.00442b40
lea ecx, [esp + 0x60]
mov dword [esp + 0x130], 0xffffffff
call fcn.00413770
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005aac48
add esp, 0x120
ret