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

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x38]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPClientRect::constructor_class_CWnd_const__
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPHexEdit::GetActualBackColor_void_
mov ebp, dword [esp + 0x15c]
push eax
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CDC::FillSolidRect_1
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
lea ecx, [esi + 0xb0]
mov dword [esp + 0x54], eax
mov eax, dword [ebp]
push ecx
mov ecx, ebp
call dword [eax + 0x30]
mov eax, dword [ebp + 4]
lea edx, [esp + 0x34]
push 8
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBoundsRect]
mov edi, dword [ebp]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPHexEdit::GetActualTextColor_void_
push eax
mov ecx, ebp
call dword [edi + 0x38]
mov eax, dword [esi + 0x88]
test eax, eax
je 0x678e3bac
mov ecx, dword [esi + 0x20]
push 0
push ecx
lea ebx, [esi + 0x60]
call dword [sym.imp.USER32.dll_GetScrollPos]
mov edx, dword [ebp + 8]
push ebx
push 0x30
mov edi, eax
imul edi, dword [ebx]
push 0x30
push edx
call dword [sym.imp.GDI32.dll_GetCharWidthA]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x24]
push eax
push 1
push 0x67a74a18
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esi + 0x84]
mov ebx, dword [ebx]
neg edx
sbb edx, edx
mov eax, dword [esi + 0x78]
and edx, 4
mov ecx, dword [esp + 0x28]
add edx, 5
mov dword [esi + 0x5c], ecx
imul edx, ebx
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esi + 0x80]
test edx, edx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
je 0x678e3b77
mov edx, dword [esi + 0x54]
imul edx, ebx
lea ebx, [eax + edx*2]
add edx, ebx
mov dword [esi + 0x68], edx
mov edx, edi
sub eax, edi
neg edx
mov dword [esi + 0x6c], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x40]
sub eax, edx
mov ebx, dword [esi + 0x68]
cdq
idiv ecx
sub ebx, edi
mov ecx, esi
mov dword [esi + 0x68], ebx
mov dword [esi + 0x88], 0
mov dword [esi + 0x58], eax
call sym.MfcHlpr520.dll_private:_void___thiscall_CMHPHexEdit::UpdateScrollbars_void_
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x678e42c0
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 0x5c]
mov eax, ebx
sub eax, edi
cdq
idiv ecx
imul eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x78]
test eax, eax
je 0x678e3c6f
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x30], ebx
mov ebx, dword [esi + 0x44]
mov dword [esp + 0x24], eax
inc ecx
mov eax, edi
cmp ebx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
jge 0x678e3c6f
cmp eax, dword [esp + 0x1c]
jge 0x678e3c6f
mov edi, dword [esi + 0x84]
mov edx, dword [esi + 0x90]
neg edi
sbb edi, edi
add edx, ebx
and edi, 4
push edx
add edi, 4
lea eax, [esp + 0x5c]
push edi
push str._0lX
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp]
add esp, 0x10
lea eax, [esp + 0x24]
lea ecx, [esp + 0x58]
push 0x820
push eax
push edi
push ecx
mov ecx, ebp
call dword [edx + 0x70]
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x54]
add eax, edx
mov edx, dword [esi + 0x40]
add ebx, ecx
inc edx
mov dword [esp + 0x28], eax
cmp ebx, edx
jl 0x678e3c0a
mov eax, dword [esi + 0x80]
test eax, eax
je 0x678e3fbe
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov edi, dword [esi + 0x64]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
cmp ecx, 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], edi
je 0x678e3f0c
mov ecx, dword [esi + 0xa0]
cmp ecx, 2
je 0x678e3ccc
cmp ecx, 3
jne 0x678e3f0c
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0x1c], ebx
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPHexEdit::GetSel_int___int__
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x678e3d82
jmp 0x678e3cfc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jge 0x678e3d7e
mov edx, dword [esi + 0x9c]
push 3
add eax, edx
xor edx, edx
mov dl, byte [eax]
shr edx, 4
mov dl, byte [edx + 0x679a96a8]
mov byte [esp + 0x5c], dl
mov al, byte [eax]
and eax, 0xf
mov byte [esp + 0x5e], 0x20
mov dl, byte [eax + 0x679a96a8]
mov eax, dword [ebp]
mov byte [esp + 0x5d], dl
lea edx, [esp + 0x5c]
push edx
push ecx
push edi
mov ecx, ebp
call dword [eax + 0x64]
mov eax, dword [esi + 0x60]
inc ebx
lea ecx, [eax + edi]
lea edi, [ecx + eax*2]
mov eax, dword [esi + 0x54]
cmp ebx, eax
jne 0x678e3d69
mov edx, dword [esi + 0x5c]
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0x64]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x678e3cf8
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPHexEdit::GetActualHighlightTextColor_void_
push eax
mov ecx, ebp
call dword [ebx + 0x38]
mov ebx, dword [ebp]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPHexEdit::GetActualHighlightBackColor_void_
push eax
mov ecx, ebp
call dword [ebx + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x678e3e4b
mov ebx, dword [esp + 0x14]
jmp 0x678e3dbc
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x40]
jge 0x678e3e47
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jge 0x678e3e47
mov edx, dword [esi + 0x9c]
push 3
add eax, edx
xor edx, edx
mov dl, byte [eax]
shr edx, 4
mov dl, byte [edx + 0x679a96a8]
mov byte [esp + 0x5c], dl
mov al, byte [eax]
and eax, 0xf
mov byte [esp + 0x5e], 0x20
mov dl, byte [eax + 0x679a96a8]
mov eax, dword [ebp]
mov byte [esp + 0x5d], dl
lea edx, [esp + 0x5c]
push edx
push ecx
push edi
mov ecx, ebp
call dword [eax + 0x64]
mov eax, dword [esi + 0x60]
inc ebx
lea ecx, [eax + edi]
lea edi, [ecx + eax*2]
mov eax, dword [esi + 0x54]
cmp ebx, eax
jne 0x678e3e32
mov edx, dword [esi + 0x5c]
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0x64]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x678e3db8
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPHexEdit::GetActualTextColor_void_
push eax
mov ecx, ebp
call dword [ebx + 0x38]
mov ebx, dword [ebp]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPHexEdit::GetActualBackColor_void_
push eax
mov ecx, ebp
call dword [ebx + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x40]
cmp eax, ecx
jge 0x678e3fbe
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jge 0x678e3fbe
mov edx, dword [esi + 0x9c]
mov eax, dword [esp + 0x10]
add eax, edx
xor edx, edx
push 3
mov dl, byte [eax]
shr edx, 4
mov dl, byte [edx + 0x679a96a8]
mov byte [esp + 0x5c], dl
mov al, byte [eax]
and eax, 0xf
mov byte [esp + 0x5e], 0x20
mov dl, byte [eax + 0x679a96a8]
mov eax, dword [ebp]
mov byte [esp + 0x5d], dl
lea edx, [esp + 0x5c]
push edx
push ecx
push edi
mov ecx, ebp
call dword [eax + 0x64]
mov eax, dword [esi + 0x60]
inc ebx
lea ecx, [eax + edi]
lea edi, [ecx + eax*2]
mov eax, dword [esi + 0x54]
cmp ebx, eax
jne 0x678e3ef3
mov edx, dword [esi + 0x5c]
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0x64]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x40]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x678e3e7e
jmp 0x678e3fbe
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
cmp ebx, ecx
mov dword [esp + 0x24], ebx
jge 0x678e3fbe
cmp eax, dword [esp + 0x1c]
jge 0x678e3fbe
mov edx, dword [esi + 0x54]
xor edi, edi
test edx, edx
lea eax, [esp + 0x58]
jle 0x678e3f74
cmp ebx, dword [esi + 0x40]
jge 0x678e3f74
mov ecx, dword [esi + 0x9c]
add ecx, ebx
xor ebx, ebx
mov bl, byte [ecx]
shr ebx, 4
inc eax
mov bl, byte [ebx + 0x679a96a8]
mov byte [eax - 1], bl
mov cl, byte [ecx]
and ecx, 0xf
mov ebx, dword [esp + 0x24]
inc eax
mov cl, byte [ecx + 0x679a96a8]
mov byte [eax - 1], cl
mov byte [eax], 0x20
inc eax
inc ebx
inc edi
mov dword [esp + 0x24], ebx
cmp edi, edx
jl 0x678e3f35
cmp edi, edx
jge 0x678e3f8b
mov ecx, edx
sub ecx, edi
mov byte [eax], 0x20
inc eax
mov byte [eax], 0x20
inc eax
mov byte [eax], 0x20
inc eax
dec ecx
jne 0x678e3f7c
mov eax, dword [ebp]
lea ecx, [esp + 0x44]
push 0x820
push ecx
lea edx, [edx + edx*2]
lea ecx, [esp + 0x60]
push edx
push ecx
mov ecx, ebp
call dword [eax + 0x70]
mov eax, dword [esp + 0x48]
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x40]
add eax, edx
cmp ebx, ecx
mov dword [esp + 0x48], eax
jl 0x678e3f1e
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x678e42c0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edi, dword [esi + 0x68]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x40]
xor ebx, ebx
cmp ecx, 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], edi
je 0x678e4243
cmp dword [esi + 0xa0], 1
jne 0x678e4243
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x1c], ebx
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPHexEdit::GetSel_int___int__
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x678e40c3
jmp 0x678e403d
mov eax, dword [esp + 0x10]
cmp ebx, dword [esp + 0x1c]
jge 0x678e40bf
mov edx, dword [esi + 0x9c]
xor ecx, ecx
mov cl, byte [eax + edx]
push ecx
call dword [sym.imp.MSVCRT.dll_isprint]
add esp, 4
test eax, eax
je 0x678e406f
mov edx, dword [esi + 0x9c]
mov eax, dword [esp + 0x10]
mov cl, byte [eax + edx]
mov byte [esp + 0x58], cl
jmp 0x678e4074
mov byte [esp + 0x58], 0x2e
mov edx, dword [ebp]
lea eax, [esp + 0x58]
push 1
push eax
push ebx
push edi
mov ecx, ebp
call dword [edx + 0x64]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x54]
add edi, eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jne 0x678e40aa
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x68]
mov dword [esp + 0x14], 0
add ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x678e4039
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPHexEdit::GetActualHighlightTextColor_void_
push eax
mov ecx, ebp
call dword [ebx + 0x38]
mov ebx, dword [ebp]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPHexEdit::GetActualHighlightBackColor_void_
push eax
mov ecx, ebp
call dword [ebx + 0x34]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jge 0x678e4185
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x1c]
jge 0x678e4181
mov edx, dword [esi + 0x9c]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [ecx + edx]
push eax
call dword [sym.imp.MSVCRT.dll_isprint]
add esp, 4
test eax, eax
je 0x678e4131
mov edx, dword [esi + 0x9c]
mov eax, dword [esp + 0x10]
mov cl, byte [eax + edx]
mov byte [esp + 0x58], cl
jmp 0x678e4136
mov byte [esp + 0x58], 0x2e
mov edx, dword [ebp]
lea eax, [esp + 0x58]
push 1
push eax
push ebx
push edi
mov ecx, ebp
call dword [edx + 0x64]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x54]
add edi, eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jne 0x678e416c
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x68]
mov dword [esp + 0x14], 0
add ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x678e40f7
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPHexEdit::GetActualTextColor_void_
push eax
mov ecx, ebp
call dword [ebx + 0x38]
mov ebx, dword [ebp]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPHexEdit::GetActualBackColor_void_
push eax
mov ecx, ebp
call dword [ebx + 0x34]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x40]
cmp ecx, eax
jge 0x678e42c0
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x1c]
jge 0x678e42c0
mov edx, dword [esi + 0x9c]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [ecx + edx]
push eax
call dword [sym.imp.MSVCRT.dll_isprint]
add esp, 4
test eax, eax
je 0x678e41f2
mov edx, dword [esi + 0x9c]
mov eax, dword [esp + 0x10]
mov cl, byte [eax + edx]
mov byte [esp + 0x58], cl
jmp 0x678e41f7
mov byte [esp + 0x58], 0x2e
mov edx, dword [ebp]
lea eax, [esp + 0x58]
push 1
push eax
push ebx
push edi
mov ecx, ebp
call dword [edx + 0x64]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x54]
add edi, eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jne 0x678e422d
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x68]
mov dword [esp + 0x14], 0
add ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x40]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x678e41b8
jmp 0x678e42c0
mov edi, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
cmp edi, ecx
jge 0x678e42c0
cmp eax, dword [esp + 0x1c]
jge 0x678e42c0
mov eax, dword [esi + 0x54]
xor ebx, ebx
test eax, eax
jle 0x678e4294
cmp edi, dword [esi + 0x40]
jge 0x678e4294
mov ecx, dword [esi + 0x9c]
xor edx, edx
mov dl, byte [edi + ecx]
push edx
call dword [sym.imp.MSVCRT.dll_isprint]
add esp, 4
test eax, eax
je 0x678e4285
mov eax, dword [esi + 0x9c]
mov al, byte [edi + eax]
jmp 0x678e4287
mov al, 0x2e
mov byte [esp + ebx + 0x58], al
mov eax, dword [esi + 0x54]
inc edi
inc ebx
cmp ebx, eax
jl 0x678e425c
mov edx, dword [ebp]
lea eax, [esp + 0x44]
push 0x820
push eax
lea ecx, [esp + 0x60]
push ebx
push ecx
mov ecx, ebp
call dword [edx + 0x70]
mov eax, dword [esp + 0x48]
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x40]
add eax, edx
cmp edi, ecx
mov dword [esp + 0x48], eax
jl 0x678e424d
mov eax, dword [esp + 0x54]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret 4